Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › General Coding
You last visited: Today at 21:25

  • 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: 130
Join Date: Oct 2008
Posts: 739
Received Thanks: 311
Smile [AutoIt] Frage

#deleted
Tanoths is offline  
Old   #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 = 0 

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


While 
1
Sleep
(100)
WEnd

Func _StartBot
() 
    
$Active = 1 
EndFunc 

Func _PauseBot
() 
    
$Active = 0 
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,  0, 144, 574,  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   #3

 
elite*gold: 130
Join Date: Oct 2008
Posts: 739
Received Thanks: 311
#deleted
Tanoths is offline  
Old   #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   #5
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
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,  0, 144, 574,  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   #6

 
elite*gold: 130
Join Date: Oct 2008
Posts: 739
Received Thanks: 311
#deleted
Tanoths is offline  
Reply




All times are GMT +1. The time now is 21:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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