Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 13:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



help with autoit script

Discussion on help with autoit script within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
help with autoit script

Code:
Func stop ()
	Exit
EndFunc

HotKeySet("{F3}","stop")

while 1
	MouseClick("left" ,836,635 )
	Sleep (500)
	
	
WEnd
this works fine outside hero but when i activate hero then the bot doesn't work.

i need it to siple reveive me for exp selling

Thank you
ikjahaa is offline  
Old 07/05/2011, 00:45   #2
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
go to autoit support forum and then read the tutorials on the site
ax5 is offline  
Old 07/05/2011, 01:31   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by ax5 View Post
go to autoit support forum and then read the tutorials on the site
can you please update ur Chami bot.

the one for pvp ep selling ?
ikjahaa is offline  
Old 07/05/2011, 15:59   #4
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by ikjahaa View Post
can you please update ur Chami bot.

the one for pvp ep selling ?
when i have time i will
ax5 is offline  
Old 07/06/2011, 03:06   #5
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
Quote:
Originally Posted by ikjahaa View Post
Code:
Func stop ()
	Exit
EndFunc

HotKeySet("{F3}","stop")

while 1
             MouseClick("left" ,836,635 )
	Sleep (500)
WEnd
this works fine outside hero but when i activate hero then the bot doesn't work.

i need it to siple reveive me for exp selling

Thank you
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.
karraksc is offline  
Old 07/07/2011, 01:22   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by karraksc View Post
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.
ikjahaa is offline  
Old 07/07/2011, 07:36   #7
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
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
karraksc is offline  
Old 07/07/2011, 11:59   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by karraksc View Post
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
i have this now:
Code:
Func stop ()
	Exit
EndFunc

HotKeySet("{F3}","stop")
WinActivate("Hero","")
while 1
	MouseClick("left" ,836,635,1 )
	Sleep (500)
	
	
WEnd
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
ikjahaa is offline  
Old 07/08/2011, 03:50   #9
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
Quote:
Originally Posted by ikjahaa View Post
i have this now:
Code:
Func stop ()
	Exit
EndFunc

HotKeySet("{F3}","stop")
WinActivate("Hero","")
while 1
	MouseClick("left" ,836,635,1 )
	Sleep (500)
	
	
WEnd
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?
karraksc is offline  
Old 07/08/2011, 10:37   #10
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by karraksc View Post
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
ikjahaa is offline  
Old 07/08/2011, 20:27   #11
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
Quote:
Originally Posted by ikjahaa View Post
clicking on the reveive-menu.

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.
karraksc is offline  
Old 07/08/2011, 21:49   #12
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by karraksc View Post
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?
ikjahaa is offline  
Old 07/08/2011, 23:08   #13
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
Quote:
Originally Posted by ikjahaa View Post
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)
karraksc is offline  
Old 07/08/2011, 23:25   #14
 
elite*gold: 0
Join Date: May 2010
Posts: 42
Received Thanks: 1
Quote:
Originally Posted by karraksc View Post
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)

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 ?
ikjahaa is offline  
Old 07/08/2011, 23:56   #15
 
karraksc's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 447
Received Thanks: 296
Try it like this:

func Died()
WinActivate("Hero","")
sleep(10000) ;10 sec delay
MouseClick("left" ,836,635,1,1) ; add a 10ms delay to move mouse
endfunc

While 1
if HP=0 then died() ; use any method to find out if you are dead and handle it
Wend
karraksc is offline  
Reply


Similar Threads Similar Threads
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...



All times are GMT +2. The time now is 13:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.