Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 01:35

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

Advertisement



Hilfe!!!

Discussion on Hilfe!!! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
meddi's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 188
Received Thanks: 87
Question Hilfe!!!

Ich frage mich was an dem Script falsch ist hier ist er ma :
Code:
GuiCreate("Spambot_by_Meddi",677,441,296,179)
$button1=GuiCtrlCreateButton("Start Bot",113,78,475,296)
$button2=GuiCtrlCreateButton("Exit",312,425,56,21)
$label1=GuiCtrlCreateLabel("F1=Start",110,37,59,15)
$label2=GuiCtrlCreateLabel("F2=Pause",288,35,87,15)
$label3=GuiCtrlCreateLabel("F3=Exit",534,36,145,15)
GuiSetState()

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
Wend




Func button1()
HotKeySet("{F1}","_start")
HotKeySet("{F2}","_pause")
HotKeySet("{F3}","_ende")
$word = InputBox("Wort","Bitte gib das Wort ein das gespammt werden soll:")
Func _start()
	While 2
send($word)
	sleep(1)
	send("{ENTER}")
	sleep(1)
	Wend
EndFunc

Func _pause()
	While 3
Sleep(2000)
WEnd
EndFunc

Func _ende()
	While 4
		Exit
	Wend
	EndFunc

Func button2()
	Exit
EndFunc
da kommt dann immer wenn ich den starten will:

Line 24 (File"C:\Users\Meddi\Desktop\Versuch.au3"):

Func _start()

Error: "Func" statement has no matching "EndFunc".

Bitte um Hilfe
meddi is offline  
Old 08/08/2010, 00:31   #2
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by meddi View Post
Ich frage mich was an dem Script falsch ist hier ist er ma :
Code:
GuiCreate("Spambot_by_Meddi",677,441,296,179)
$button1=GuiCtrlCreateButton("Start Bot",113,78,475,296)
$button2=GuiCtrlCreateButton("Exit",312,425,56,21)
$label1=GuiCtrlCreateLabel("F1=Start",110,37,59,15)
$label2=GuiCtrlCreateLabel("F2=Pause",288,35,87,15)
$label3=GuiCtrlCreateLabel("F3=Exit",534,36,145,15)
GuiSetState()

While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
Wend




Func button1()
HotKeySet("{F1}","_start")
HotKeySet("{F2}","_pause")
HotKeySet("{F3}","_ende")
$word = InputBox("Wort","Bitte gib das Wort ein das gespammt werden soll:")
Func _start()
	While 2
send($word)
	sleep(1)
	send("{ENTER}")
	sleep(1)
	Wend
EndFunc

Func _pause()
	While 3
Sleep(2000)
WEnd
EndFunc

Func _ende()
	While 4
		Exit
	Wend
	EndFunc

Func button2()
	Exit
EndFunc
da kommt dann immer wenn ich den starten will:

Line 24 (File"C:\Users\Meddi\Desktop\Versuch.au3"):

Func _start()

Error: "Func" statement has no matching "EndFunc".

Bitte um Hilfe
PHP Code:
GuiCreate("Spambot_by_Meddi",677,441,296,179)
$button1=GuiCtrlCreateButton("Start Bot",113,78,475,296)
$button2=GuiCtrlCreateButton("Exit",312,425,56,21)
$label1=GuiCtrlCreateLabel("F1=Start",110,37,59,15)
$label2=GuiCtrlCreateLabel("F2=Pause",288,35,87,15)
$label3=GuiCtrlCreateLabel("F3=Exit",534,36,145,15)
GuiSetState()

While 
1
$msg
=GuiGetMsg()
If 
$msg=-3 Then Exit
If 
$msg=$button1 Then button1()
If 
$msg=$button2 Then button2()
Wend




Func button1
()
HotKeySet("{F1}","_start")
HotKeySet("{F2}","_pause")
HotKeySet("{F3}","_ende")
$word InputBox("Wort","Bitte gib das Wort ein das gespammt werden soll:")
_start()
EndFunc

Func _start
()
    While 
2
send
($word)
    
sleep(1)
    
send("{ENTER}")
    
sleep(1)
    
Wend
EndFunc

Func _pause
()
    While 
3
Sleep
(2000)
WEnd
EndFunc

Func _ende
()
    While 
4
        
Exit
    
Wend
    EndFunc

Func button2
()
    Exit
EndFunc 
Shadow992 is offline  
Old 08/08/2010, 00:34   #3
 
meddi's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 188
Received Thanks: 87
kommt nomma fehler

send($word)
send(^ ERROr

Error:Variable used without being declared
meddi is offline  
Old 08/08/2010, 00:59   #4
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by meddi View Post
kommt nomma fehler

send($word)
send(^ ERROr

Error:Variable used without being declared
Ja du wirst es doch wohl schaffen das auszubessern...
Shadow992 is offline  
Old 08/08/2010, 13:06   #5
 
meddi's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 188
Received Thanks: 87
Ich bin Autoit Anfänger
meddi is offline  
Old 08/08/2010, 13:32   #6
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by meddi View Post
Ich bin Autoit Anfänger
Dann schau dir nochmal die Grundlagen an.
Und schau mal genau was der Fehler sagt, "Variable used without beeing declared" erklärt doch alles.
Shadow992 is offline  
Old 08/08/2010, 14:47   #7
 
bladerofdarknes's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
der variable ist kein wert zugewiesen, steht doch da :S

Code:
send(GuiCtrlRead($word))
ein bisschen resourcen sparender wäre es wenn du nur einmal lesen lassen würdest und das auch wieder als variable ablegst
bladerofdarknes is offline  
Thanks
1 User
Old 08/08/2010, 18:54   #8
 
meddi's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 188
Received Thanks: 87
geht aber immer noch net -.-
meddi is offline  
Old 08/12/2010, 03:36   #9
 
Anna<3's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 353
Received Thanks: 285
So müste es gehen aller dings muste ich das rote X
raus nehmen also geht es net aber der Bot geht


PHP Code:
  GuiCreate("Spambot_by_Meddi",677,441,296,179)
$button1=GuiCtrlCreateButton("Start Bot",113,78,475,296)
$button2=GuiCtrlCreateButton("Exit",312,425,56,21)
$label1=GuiCtrlCreateLabel("F1=Start",110,37,59,15)
$label2=GuiCtrlCreateLabel("F2=Pause",288,35,87,15)
$label3=GuiCtrlCreateLabel("F3=Exit",534,36,145,15)
GuiSetState()
HotKeySet("{F1}","_start")
HotKeySet("{F2}","_pause")
HotKeySet("{F3}","_ende")

While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
            
        
Case $Button1
            $word 
InputBox("Wort","Bitte gib das Wort ein das gespammt werden soll:")
              
_Start()
        Case 
$Button2
            
Exit
    EndSwitch
WEnd







Func _start
()
    While 
2
send
($word)
    
sleep(1)
    
send("{ENTER}")
    
sleep(1)
    
Wend
EndFunc

Func _pause
()
    While 
3
Sleep
(2000)
WEnd
EndFunc

Func _ende
()
    While 
4
        
Exit
    
Wend
    EndFunc

Func button2
()
    Exit
EndFunc 
Anna<3 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Hilfe Hilfe Pls Gucken Brauche Hilfe
04/04/2010 - Technical Support - 3 Replies
Ja wegen der Signatur sieht es euch ma an in pics /http://img641.imageshack.us/img641/6070/unbenann t790kjkh.png http://img444.imageshack.us/img444/6981/unbenannt kjhghzuijhbh.png kann mir pls einer HELFEN...
HILFE HILFE HILFE MIT SjSro Startproblem
12/14/2009 - SRO Private Server - 4 Replies
Hi Leute hab ein Problem mit SjSro wenn ich auf starten klicke kommt diese Meldung Sorry.Failed to execute Silkroad. bitte helfen hab anti virus aus geht immer noch nicht wo liegt das problem thx schon mal im voraus BITTE HELFEN BITTE WILL UMBEDINGT ZOCKEN!!



All times are GMT +1. The time now is 01:36.


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.