Quote:
Originally Posted by swords
ooka or clinton... (I ask you ooka cause you said you made a background leveling bot... So maybe you had some idea on how to do it :P)
Never used ControlClick before or ControlSend...
But I guess you can't send the F keys through ControlSend in AutoIt?... Is this true?
My 2nd method of doing it was to ControlClick on the F keys on conquer to use the pots... Well how do I achieve the controlid?
Autoit Help file states:
ControlClick ( "title", "text", controlID [, button [, clicks [, x [, y ]]]] )
Well I can fill in all of those (leave text blank)... EXCEPT for the controlID position...
Do you have any idea how to
1. ControlSend F keys to Conquer
2. ControlClick on the F keys on Conquer
Thanks ><
P.S. - Btw clinton I got the auto-potter to work with your code. The #include file is working correctly now and it is potting accordingly... As well as using boxes, etc. I just need to get those 2 problems (or just 1) solved so I can make it completely background auto-potting :D.
|
for pressing F-keys in the background... look at clint's other thread...
[Only registered and activated users can see links. Click Here To Register...]
i haven't tested it, but i know it works since thats what he used :p... and as far as i can remember, u can't send keyboard clicks in the background, only foreground... that is if your going to use autoit to send clicks and not do it through memory... and i think ControlClick is for the mouse only which will work in the background for CO, but left click will send u to click jail... not sure how to do a keyboard press w/ autoit, i litterally just started using autoit maybe 2 weeks ago :p ne other language i've worked with i'd be able to tell u ;) but again as i said, it won't work in the background...
EDIT: i found the function u need...
[Only registered and activated users can see links. Click Here To Register...] that one, though as i've said, it won't work in the background, i haven't tested it though :p
so for a simple example it'd be...
Code:
While 1
[color=white].....[/color]If $health < 400 Then
[color=white].....[/color][color=white].....[/color]Send("{F1}")
[color=white].....[/color]EndIf
[color=white].....[/color]Sleep(200)
WEnd