Tailor Made Tools/Programs for You - AHK

02/21/2009 09:56 Evan Lim#226
pepejovi@
its a good suggestion, but i have no idea how to edit itemtype.dat in order to display the quality items.
if u also dont mind skipping this function, then it will be exactly = ELSEpath
CO is dying out and i quit it long time ago, i just have no interest to re-create a couple thousand codes program. if ELSEpath works, stick with it, the max i can do is to modify it
02/21/2009 17:33 pepejovi#227
Quote:
Originally Posted by Evan Lim View Post
pepejovi@
its a good suggestion, but i have no idea how to edit itemtype.dat in order to display the quality items.
if u also dont mind skipping this function, then it will be exactly = ELSEpath
CO is dying out and i quit it long time ago, i just have no interest to re-create a couple thousand codes program. if ELSEpath works, stick with it, the max i can do is to modify it
where to find this "elsepath"?
02/21/2009 18:44 Evan Lim#228
pepejovi@
[Only registered and activated users can see links. Click Here To Register...]
02/22/2009 05:05 (GAME)Master#229
hey do u think u could make a auto re log program (i.e out in the password and hit enter)
I think it would need a input box and a method to store the password than click on ok or hit enter key.
02/22/2009 09:43 Evan Lim#230
(GAME)Master@
sending password and hit enter, how do u want to activate it?
by pressing a hotkey?
if yes, then:
Code:
msgbox, Hotkey Ctrl+1-3 to activate 
password1 = 111
password2 = 222
password3 = 333
^1::
send %password1%{enter}
return 

^2::
send %password2%{enter}
return 

^3::
send %password3%{enter}
return
02/23/2009 02:18 stickray#231
Evan Lim,

is there now a way to detect the HP value with a PixelLookup? I mean x,y when it isnt red anymore my HP is 50% lets say. And if this the case, sendKey F1 =) is this kind of stuff possible?

and would this send you to autoclickjail ??

edit:
this is not for background, it can be in foreground too.. and if this would work i would like to know howto find out the pixelpositions? where i can check the colors of this pixel..


thanks
02/23/2009 03:47 Acidburncx#232
Evan Lim works great but only one thing it doesnt sell all gold ore to npc when i have like 7 gold ore it doesnt sell them all u think u can fix it?thanks in advance again
02/23/2009 04:44 Evan Lim#233
vegetasupersaiyan6@
if it doesnt sell, what does the program do?
did it not detect the images?

stickray@
Code:
msgbox, Ctrl + Q to pause
settimer, checkhp, 500

checkhp:
IfWinActive, [Conq
{
PixelSearch, , , 10, 720, 60, 720, 0x0B098F, 10, Fast
if ErrorLevel
{
send {F1}
sleep 1000
}
}
return
^q::pause
02/23/2009 16:48 Darkyy#234
Hey Evan,
Could you please post an example of how to send a click but not like

Code:
click X,Y
but something like

Code:
click X[COLOR="Red"]-[/COLOR]5(co'ords),Y[COLOR="Red"]-[/COLOR]20(co'ords)
- is minus

thanks!
02/23/2009 17:45 Evan Lim#235
Darkyy@
Code:
x-=5
y-=20
click %x%, %y%
02/23/2009 17:47 Darkyy#236
Quote:
Originally Posted by Evan Lim View Post
Darkyy@
Code:
x-=5
y-=20
click %x%, %y%
thanks gotta try now


can you tell me where im wrong :S it doesnt look like im doing it right

Code:
x1=49
y1=72
x2=1010
y2=610
px+=25
py+=34

loop
{
 IfWinActive, [Conquer2.0]
 {
 PixelSearch, Px, Py, x1, y1, x2, y2, 0x0303B8, 10, Fast
 if ErrorLevel = 0
 {
  click %px%,%py%
 }
 }
}
02/23/2009 18:12 Evan Lim#237
Darkyy@
u also need to put rest in between the loop
sleep 0 and sleep 100 does make a huge performance difference on CPU loadage
Code:
x1=49
y1=72
x2=1010
y2=610
loop
{
SLEEP 100
 IfWinActive, [Conquer2.0]
 {
 PixelSearch, Px, Py, %x1%, %y1%, %x2%, %y2%, 0x0303B8, 10, Fast
 if ErrorLevel = 0
 {
px+=25
py+=34
  click %px%,%py%
 }
 }
}
02/23/2009 18:17 Darkyy#238
Quote:
Originally Posted by Evan Lim View Post
Darkyy@
u also need to put rest in between the loop
sleep 0 and sleep 100 does make a huge performance difference on CPU loadage
Code:
x1=49
y1=72
x2=1010
y2=610
loop
{
SLEEP 100
 IfWinActive, [Conquer2.0]
 {
 PixelSearch, Px, Py, %x1%, %y1%, %x2%, %y2%, 0x0303B8, 10, Fast
 if ErrorLevel = 0
 {
px+=25
py+=34
  click %px%,%py%
 }
 }
}
yeh i usually put sleep between each { and } but i dont know why i didnt write it up there :confused: thanks again
02/24/2009 01:58 Acidburncx#239
Evan Lim sorry for late response um when i have full bag of gold ore it does sell to npc but after i have around 5 or 7 gold ore it stops then program cannot detect the images u think u can fix it thanks in advance again
02/24/2009 03:26 CObotter#240
Where is my previous post?
It is gone?

Just want to know how to make AHK could access CO in background, it sound like WinID stuff but i am not really sure how to code it...

Evan, could you provide a simple code that
The programme detect which CO Window i refer to (Chartername check up)
While(not press ^Q)
{
Check HP every 1 sec
if HP < 25%
Send {F1}
}

note: i need to know how to make a programme that works in background.

Thanks