Quote:
Originally Posted by BladeTiger12
Also z.b so:
[...]
Das geht aber auch nicht :D
|
Und wo rufst du die _Stop() funktion auf?
Btw.
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Hotkeyset("{F5}","_Stop")
Global $Switch = True
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Spamm", 180, 58, 312, 231)
$Input1 = GUICtrlCreateInput("", 24, 0, 121, 21)
$Button1 = GUICtrlCreateButton("Start", 0, 32, 75, 25)
$Button2 = GUICtrlCreateButton("Stop", 104, 32, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Spamm()
EndSwitch
WEnd
Func _Spamm()
$Text1 = GUICtrlRead($Input1)
If $Text1 = "" Then
MsgBox(16 , "Fehler!" , "Fehler! TextBox ist leer!")
Else
While $Switch = True
Send($Text1)
If NOT $Switch = True then Exitloop
Sleep(1000)
WEnd
Endif
EndFunc
Func _Stop()
$Switch = False
EndFunc