Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:31

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

Advertisement



[GER]AutoIt Bot help?

Discussion on [GER]AutoIt Bot help? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 108
Received Thanks: 41
Question [GER]AutoIt Bot help?

PHP Code:
#include <GUIConstantsEx.au3>

GUICreate("4Story EG GE Bot by IZEROI"335100)

GUICtrlCreateLabel("Taste: "410)
$key1 GUICtrlCreateInput("1"358120)
GUICtrlCreateLabel("Zeit:"544)
$time1 GUICtrlCreateInput("10000"3540120)

$startbutton GUICtrlCreateButton("Start"190860)
$stopbutton GUICtrlCreateButton("Stopp",190 4060)

GUISetState(@SW_SHOW)

While 
1
    $msg 
GUIGetMsg()
    
    
Select
        
        
Case $msg $startbutton
                
                $send1 
GUICtrlRead($key1)
                
$sleep1 GUICtrlRead($time1)
                
        Case 
$Msg $stopbutton
  MsgBox
(0,"Stopp","Stopp geklickt..")
  
$stopbuttonLoop False
  GUICtrlSetState
($startbutton$GUI_ENABLE)
  
GUICtrlSetState($stopbutton$GUI_DISABLE)
  
GUICtrlSetData($label1"All Done")
        
            While 
1    
                Send
($send1)
                
Sleep($sleep1)
            
WEnd
            
        
Case $msg $GUI_EVENT_CLOSE
            GUIDelete
()
            
ExitLoop
            
    EndSelect
        
WEnd 
Das ist der source code von meinem Bot Funktionen des Bots sollten eigentlich sein das er wenn ich start drücke er die taste schreibt wo ich bei tase reinschreibe und der zeitabschtand bei zeit..wenn ich dann aber den stopbutton drücken will kommt ein fehler und der schließt sich..könnt ihr mir da helfen???

€dit: Hier der Fehler:
GUICtrlSetData($label1, "All Done")
GUICtrlSetData(^ ERROR
>Exit code: 1 Time: 1.901
checker0899 is offline  
Old 06/16/2010, 22:32   #2
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
PHP Code:
GUICtrlSetData($label1"All Done"
Wo hast du $Label1 definiert?
Du musst ein GUI Element mit dem Namen $Label1 erst erstellen. Dann klappt es

PHP Code:
$Label1 GUICtrlCreateLabel("Zeit:"544
HardCore.1337 is offline  
Thanks
1 User
Old 06/17/2010, 14:52   #3
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
@foalyyy.: Das ist nicht dein Thread!
Aber schau dir mal GuiCtrlRead an.
HardCore.1337 is offline  
Old 06/17/2010, 18:28   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 108
Received Thanks: 41
okay mach ich thx @ hardcore

€€€dit: Jz habe ich folgendes Problem:
Wenn ich start drücke dann passiert nichts, und wenn ich stopp klicke dann startet er!! aber ich kannn ihn dann nicht mehr anhalten!
Das ist mein jetztiger code:
PHP Code:
#include <GUIConstantsEx.au3>

#Region ### START Koda GUI section ### Form=c:\users\philipp\desktop\koda\forms\4story eg bot ge.kxf
$Form1_1 GUICreate("4Story EG Bot"397125193125)
$Tastenfeld GUICtrlCreateInput(""324012121)
$startbutton GUICtrlCreateButton("Start"1844075250)
$Zeitfeld GUICtrlCreateInput(""328012121)
$stoppbutton GUICtrlCreateButton("Stopp"1848075250)
$Label1 GUICtrlCreateLabel("Taste:"32163417)
$Label2 GUICtrlCreateLabel("Zeit:"32642517)
$Label3 GUICtrlCreateLabel("Createt by IZEROI"296169117)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
    $msg 
GUIGetMsg()
    
    
Select
        
        
Case $msg $startbutton
                
                $send1 
GUICtrlRead($Tastenfeld)
                
$sleep1 GUICtrlRead($Zeitfeld)
                
        Case 
$Msg $stoppbutton
  MsgBox
(0,"Stopp","Stopp geklickt..")
  
$stopbuttonLoop False
  GUICtrlSetState
($startbutton$GUI_ENABLE)
  
GUICtrlSetState($stoppbutton$GUI_DISABLE)
  
GUICtrlSetData($label1"All Done")
  
GUICtrlSetData($label2"All Done")
        
            While 
1    
                Send
($send1)
                
Sleep($sleep1)
            
WEnd
            
        
Case $msg $GUI_EVENT_CLOSE
            GUIDelete
()
            
ExitLoop
            
    EndSelect
        
WEnd 
PS: ya ich habe die GUI geändert..
checker0899 is offline  
Reply

Tags
autoit, bot




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


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.