Tailor Made Tools/Programs for You - AHK

01/10/2009 18:37 Zune#121
:handsdown:
01/10/2009 22:20 Evan Lim#122
Zune@
it should both work in 800x600 and 1024x768 mode
if u are running the script, make sure u drag the BMPs to C:\ folder
and make sure u need to activate the client to top-most and open bag
try this:
01/10/2009 23:07 Zune#123
Quote:
Originally Posted by Evan Lim View Post
Zune@
it should both work in 800x600 and 1024x768 mode
if u are running the script, make sure u drag the BMPs to C:\ folder
and make sure u need to activate the client to top-most and open bag
try this:
Hmm iI did what u said and its not working right. instead of dropping ores it moves off my screen and down on my task bar clicking. on the bottom left corner.
01/11/2009 00:30 Evan Lim#124
Zune:
try this update script:
Code:
FileInstall, C:\image1.bmp, C:\image1.bmp, 1
FileInstall, C:\image2.bmp, C:\image2.bmp, 1
FileInstall, C:\image3.bmp, C:\image3.bmp, 1
FileInstall, C:\image4.bmp, C:\image4.bmp, 1

msgbox, Checks every 1 min`nCtrl+Q to pause
WinActivate, [C
WinGetActiveStats, Title, Width, Height, X, Y 



loop
{
sleep 60000
WinActivate, [C
ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image1.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image2.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image3.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image4.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


}

^q::pause
01/11/2009 01:21 Zune#125
Quote:
Originally Posted by Evan Lim View Post
Zune:
try this update script:
Code:
FileInstall, C:\image1.bmp, C:\image1.bmp, 1
FileInstall, C:\image2.bmp, C:\image2.bmp, 1
FileInstall, C:\image3.bmp, C:\image3.bmp, 1
FileInstall, C:\image4.bmp, C:\image4.bmp, 1

msgbox, Checks every 1 min`nCtrl+Q to pause
WinActivate, [C
WinGetActiveStats, Title, Width, Height, X, Y 



loop
{
sleep 60000
WinActivate, [C
ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image1.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%, %Height%, *5 C:\image2.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image3.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


ImageSearch, FoundX, FoundY, 300 ,20, %Width%,%Height%, *5 C:\image4.bmp
if ErrorLevel = 0
{
click %FoundX%,%FoundX%
sleep 1000
click 110, 300
sleep 1000
}


}

^q::pause
i tired to use it in AutoIt. but i get an error saying :

FileInstall, Line1 (File "C:\image1.bmp, C:\image1.bmp,1
FileInstall^ ERROR

Error: Missing separator character after keyword. :

I tried changing the FileInstalls with other codes... but i Failed... Im no good at this:(
If its too much you don't have to worry about this request
01/11/2009 06:53 barns2011#126
I was wondering if you could make a ani edit or itemtype for Elsepath since it is now up and running again this way it picks up the items while bot is working including all supers elites for all chars and met and db pickup if possible
01/11/2009 13:43 Evan Lim#127
Zune@
the script is not for autoit but for autohotkey

barns2011@
method to detect quality items?
01/11/2009 16:38 Zune#128
Quote:
Originally Posted by Evan Lim View Post
Zune@
the script is not for autoit but for autohotkey

barns2011@
method to detect quality items?
you said that it can run in 1024x768 mode, but does it have to be full screen? that could be my problem bc im using window
01/11/2009 16:44 Evan Lim#129
Zune:
nope, shouldnt be a problem
go check ur C:\
see if there are 4 images there

actually, what exactly is going on
not clicking? clicking wrong thing?
01/11/2009 20:32 Zune#130
Quote:
Originally Posted by Evan Lim View Post
Zune:
nope, shouldnt be a problem
go check ur C:\
see if there are 4 images there

actually, what exactly is going on
not clicking? clicking wrong thing?
Yes there's 4 images in my C:\ i event made copies and put them in the same folder as the script. It clicks, but clicks the wrong thing. It goes to my taskbar and clicks on the first window that's there. I been testing it on qonquer does that matter?
01/12/2009 04:45 Evan Lim#131
Zune@
of course it does matter, u have to change all the "[C" in the script to whatever qonquer client window title name is
01/16/2009 16:35 sanar40#132
hey, can you make a auto potter at half hp? Background if possible also can you compile it as well thanks.... Please tell me if its background or not lol
01/16/2009 17:30 Evan Lim#133
sanar40@
background not possible for color searching function
still want it?

if u want the program base on memory (need to find the correct address and modify the client by urself for every patch), seems like Hiyoal said he can make one - [Only registered and activated users can see links. Click Here To Register...]
01/17/2009 21:39 1111111111#134
Hello Evan Lim,

You seem to know what you are doign with AHK and i have a problem.

Can you take a look at this [Only registered and activated users can see links. Click Here To Register...] that I made, I just don't want to copy paste it to mess up your thread. Thanks in advance.
01/20/2009 20:32 Alexisppp12345#135
Hi Evan! It has been a while since I last posted here :D
I have one question. I started making some programs in AHK and I have a problem/or I have done something wrong.
Click/pixel search/image search and all the stuff that have to do with coordinates, are working but they work with the coordinates of the window and not of the screen.
I do not know if I explained it well so I will give an exapmle:

I wrote the following code:
Code:
loop, 39
{
Sleep, 1000 ; Wait 1 seconds
Click 540, 383; Click CoachLi
Sleep, 300 ; Wait 0.3 seconds
Click 540, 383; Click CoachLi
Sleep, 2000 ; Wait 2 seconds
Click 434, 222; Click at 1st Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 434, 222; Click at 2nd Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 434, 222; Click at 3rd Dialog
Sleep, 1200 ; Wait 1.2 seconds
Click 931, 159; Click at Letter(1st slot)
Sleep, 500 ; Wait 0.5 seconds
Click 623, 185; Drop the Letter
Sleep, 500 ; Wait 0.5 seconds
Click 689, 487; Confirm to drop the letter
Sleep, 200 ; Wait 0.2 seconds
Click 631, 245; Just click somewhere
}
and instead of clicking at 540, 383 in my screen, it clicks at 540,383 in Active Window which is at 668, 501 in my screen. The same happens with image/pixel searching.

Code:
loop
{
ImageSearch, FoundX, FoundY, 953 ,140, 994, 181, *5 C:\ore1.bmp
if ErrorLevel = 0
MsgBox, Found
}
If I have clicked on CO or another program and it is "Active Window" is does not finds that image but if I click at Desktop it finds the image.
Is there any solution so I mustn't searching for the coordinates in Active Window?

oh and something else I wanted. Is there any way to make the program clicks(or anything else) at x,y if CO is active window?

Thanks in advance,
Alex.