Code:
Func stop ()
Exit
EndFunc
HotKeySet("{F3}","stop")
while 1
MouseClick("left" ,836,635 )
Sleep (500)
WEnd
i need it to siple reveive me for exp selling
Thank you
Func stop ()
Exit
EndFunc
HotKeySet("{F3}","stop")
while 1
MouseClick("left" ,836,635 )
Sleep (500)
WEnd
I noticed you don't tell it to make HERO.EXE active, like this:Quote:
this works fine outside hero but when i activate hero then the bot doesn't work.Code:Func stop () Exit EndFunc HotKeySet("{F3}","stop") while 1 MouseClick("left" ,836,635 ) Sleep (500) WEnd
i need it to siple reveive me for exp selling
Thank you
thx but , isn't this the same as clicking on hero online?Quote:
I noticed you don't tell it to make HERO.EXE active, like this:
WinActivate("Hero","")
While 1
MouseClick("left" ,836,635 )
Sleep (500)
Wend
This tells the app to focus on Hero game and then send the mouseclick to the Hero Game.
i have this now:Quote:
if the game is not the active window, the mouseclicks will be sent to whichever window is active. The WinActivate command tells the game to become the active window so the mouseclicks will go to it..
I think the problem for this might be in your mouseclick command line, not telling it how many clicks to use.
try this:
mouseclick("left",836,635,1) <--tells it to click once, 2 for double-click, etc
Func stop ()
Exit
EndFunc
HotKeySet("{F3}","stop")
WinActivate("Hero","")
while 1
MouseClick("left" ,836,635,1 )
Sleep (500)
WEnd
The code as-is works tho I do have one question that might afffect this. Is this mouseclick used for moving the char or for clicking on the revival menu?Quote:
i have this now:
still doesn't click, it does move the mouse but i think hero is protected for such "auto-clicks", you need to use pointers .Code:Func stop () Exit EndFunc HotKeySet("{F3}","stop") WinActivate("Hero","") while 1 MouseClick("left" ,836,635,1 ) Sleep (500) WEnd
some1 help me
are you allowing for the 10-second delay that is now in the revive menu? None of the keys will work until the delay runs down. You might have to add in a delay into yours to sit and wait until the keys are active before clicking on the button.Quote:
clicking on the reveive-menu.
it doesn't work with me, only moves the mouse doesn't click
the bot clicks every 500ms right?Quote:
are you allowing for the 10-second delay that is now in the revive menu? None of the keys will work until the delay runs down. You might have to add in a delay into yours to sit and wait until the keys are active before clicking on the button.
there ought to be a delay command you could use:Quote:
the bot clicks every 500ms right?
so if i just wait for it to count down 10sec. then it must be able to click.
clicking before 10 sec countdown = no bad right?
Quote:
there ought to be a delay command you could use:
10 seconds = 10,000 milliseconds
in Delphi, it's SLEEP(milliseconds)
in autoIt, it's SLEEP(milliseconds)
in VB, it's SLEEP(milliseconds)
in Basic, it's DELAY(milliseconds)
in Pascal, it's WAIT(milliseconds)
in RPG3, it's HOLD(milliseconds)