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.
thx but , isn't this the same as clicking on hero online?
if i click on hero online while the script is running, then the mouse moves to the right spot but it doesn't click.
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
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
still doesn't click, it does move the mouse but i think hero is protected for such "auto-clicks", you need to use pointers .
some1 help me
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?
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?
clicking on the reveive-menu.
it doesn't work with me, only moves the mouse doesn't click
it doesn't work with me, only moves the mouse doesn't click
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.
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.
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?
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?
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)
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)
i know, i use
sleep(500)
but it works on all programs exept hero online.
on hero it only moves the mouse but doesn't click.
why doesn't it click on hero and does on other programs ?
Autoit Script als nicht Autoit erkennbar machen 02/22/2013 - AutoIt - 22 Replies Hallo
es haben wiele bestimmt schon gesehn das w0uter mal eine Anleitung gepostet hat wie man ein Autoit script so umbaut das es keins mehr ist.
Die anleitung ist aber leider weg :(
Dann habe ich mich selber rangesetz und was ausprobiert aber hat nichts gebracht.
Dann habe ich geguckt bis wohin sein script geht als ... (kA wie man das nent halt das im hex editor ganz links diese 0x zahlen) und davor habe ich ein ha genauso eins gemacht und verglichen.
Am anfang habe ich bemerkt es fengt...