Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 06:21

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

Advertisement



[AutoIt] Frage

Discussion on [AutoIt] Frage within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 737
Received Thanks: 311
Smile [AutoIt] Frage

#deleted
Turundeth is offline  
Old 07/04/2010, 18:51   #2
 
elite*gold: 0
Join Date: Nov 2009
Posts: 328
Received Thanks: 364
du musst noch ne while schleife einfügen:
PHP Code:
Global $Active 

HotKeySet
("{ö}""_StartBot"
HotKeySet("{ä}""_PauseBot"
HotKeySet("{ü}""_EndeBot"


While 
1
Sleep
(100)
WEnd

Func _StartBot
() 
    
$Active 
EndFunc 

Func _PauseBot
() 
    
$Active 
EndFunc 

Func _EndeBot
() 
    Exit 
EndFunc 

If $Active 1 Then 
     
    Send
"{1}" 
    
Sleep (1000
    
Send"{1}" 
    
Sleep (1000
    
Send"{2}" 
    
Sleep (1000
    
Send"{3}" 
    
Sleep (1000
    
Send"{4}" 
    
Sleep (1000
    
Send"{5}" 
    
Sleep (1000
    
Send"{7}" 
    
Sleep (1000
     
    
$coord PixelSearch(  0,  0144574,  x1B53C8 
    If 
Not @error Then 
            Send
"{1}" 
            
Sleep (1000
            
Send"{1}" 
            
Sleep (1000
            
Send"{2}" 
            
Sleep (1000
            
Send"{3}" 
            
Sleep (1000
            
Send"{4}" 
            
Sleep (1000
            
Send"{5}" 
            
Sleep (1000
            
Send"{7}" 
            
Sleep (1000
        Else 
            
Send"8" 
            
Sleep (1000
            
Send"9" 
            
Sleep (1000
            
Send"0" 
            
Sleep (1000
    EndIf 
EndIf 
der bot hat sich beendet weil keine if bedinung zutraf
killeeer111 is offline  
Thanks
1 User
Old 07/04/2010, 19:02   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 737
Received Thanks: 311
#deleted
Turundeth is offline  
Old 07/04/2010, 19:12   #4
 
elite*gold: 0
Join Date: Nov 2009
Posts: 328
Received Thanks: 364
was die while schleife oder der "ganze" Bot?
killeeer111 is offline  
Old 07/04/2010, 19:56   #5
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
hast da was vergessen...: 0x1B53C8
und für das "unendlich laufen" muss du in dem bereich was du laufen lassen willst While 1 einfügen und am ende WEnd.
zb so:
PHP Code:
Global $Active 0

HotKeySet
("{ö}""_StartBot")
HotKeySet("{ä}""_PauseBot")
HotKeySet("{ü}""_EndeBot")

Func _StartBot()
    
$Active 1
EndFunc

Func _PauseBot
()
    
$Active 0
EndFunc

Func _EndeBot
()
    Exit
EndFunc

While 1
If $Active 1 Then
    Send
"{1}" )
    
Sleep (1000)
    
Send"{1}" )
    
Sleep (1000)
    
Send"{2}" )
    
Sleep (1000)
    
Send"{3}" )
    
Sleep (1000)
    
Send"{4}" )
    
Sleep (1000)
    
Send"{5}" )
    
Sleep (1000)
    
Send"{7}" )
    
Sleep (1000)

    
$coord PixelSearch(  0,  0144574,  0x1B53C8 )
    If 
Not @error Then
            Send
"{1}" )
            
Sleep (1000)
            
Send"{1}" )
            
Sleep (1000)
            
Send"{2}" )
            
Sleep (1000)
            
Send"{3}" )
            
Sleep (1000)
            
Send"{4}" )
            
Sleep (1000)
            
Send"{5}" )
            
Sleep (1000)
            
Send"{7}" )
            
Sleep (1000)
        Else
            
Send"8" )
            
Sleep (1000)
            
Send"9" )
            
Sleep (1000)
            
Send"0" )
            
Sleep (1000)
    EndIf
EndIf
WEnd 
omer36 is offline  
Old 07/04/2010, 22:14   #6
 
elite*gold: 0
Join Date: Oct 2008
Posts: 737
Received Thanks: 311
#deleted
Turundeth is offline  
Reply




All times are GMT +2. The time now is 06:21.


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.