wie kann ich einen spambot usw. pausieren, wenn ich einen button drück? was für ne funktion brauch ich da? THX im vorraus
MFG xEr0r :mofo:
MFG xEr0r :mofo:
While 1
...
Switch GUIGetMsg()
Case $Button
Exitloop
EndSwitch
WEnd
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=Beta
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstantsEx.au3>
;==========================================GUI-Einstellungen=================================================================
GUICreate("Spambot v1.3 By xEr0r", 600, 300)
GUISetState(@SW_SHOW)
$ID_input = GUICtrlCreateInput("", 30, 50)
$input1 = GUICtrlCreateInput("", 30, 130)
$ID_button = GUICtrlCreateButton("Start", 420, 50)
$ID_button2 = GUICtrlCreateButton("Stop", 470, 50)
GUICtrlCreateLabel("Spams eingeben ", 10, 10)
GUICtrlCreateLabel("Copyright by xEr0r", 500, 250)
GUICtrlCreateLabel("Spamzeit einstellen", 10, 90)
;===========================================While-Schleifen================================================================
While 1
$msg = GUIGetMsg()
Select
Case $msg = $ID_button
$send1 = GUICtrlRead($ID_input)
$sleep1 = GUICtrlRead($input1)
While 1
Send($send1)
Sleep($sleep1)
WEnd
Case $msg = $GUI_EVENT_CLOSE
HotKeySet("{ESC}", "_exit")
Exit
sleep(20)
EndSelect
WEnd
;===========================================================================================================
while 1
Check()
Wend
; Guckt was gedrückt wurde und ordnet es zu
Func Check()
$msg=GuiGetMsg()
If $msg=$button1 Then button1()
If $msg=$button2 Then button2()
If $msg=$button3 Then button3()
EndFunc
Func button2()
$Pause = 0
While $Pause == 0
$msg=guiGetMsg()
If $msg=$button1 Then $Pause = 1
If $msg=$button2 Then $Pause = 1
If $msg=$button3 Then Exit
Wend
EndFunc
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=Beta
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstantsEx.au3>
;==========================================GUI-Einstellungen=================================================================
GUICreate("Spambot v1.3 By xEr0r", 600, 300)
GUISetState(@SW_SHOW)
GUISetBkColor(0x00FF00)
$ID_input = GUICtrlCreateInput("", 30, 50)
$input1 = GUICtrlCreateInput("", 30, 130)
$ID_button = GUICtrlCreateButton("Start", 420, 50)
$ID_button2 = GUICtrlCreateButton("Stop", 470, 50)
GUICtrlCreateLabel("Spams eingeben ", 10, 10)
GUICtrlCreateLabel("Copyright by xEr0r", 500, 250)
GUICtrlCreateLabel("Spamzeit einstellen", 10, 90)
GUICtrlCreateLabel("Info:", 10, 200)
GUICtrlCreateLabel("leider hat dieser bot noch keine stopfunktion d.h. ihr müsst ihn mit der kleinen Leiste",10, 220)
GUICtrlCreateLabel("unten links schließen. :P . Update folgt bald", 10, 240)
;===========================================While-Schleifen================================================================
While 1
$msg = GUIGetMsg()
Select
Case $msg = $ID_button
$send1 = GUICtrlRead($ID_input)
$sleep1 = GUICtrlRead($input1)
While 1
Send($send1)
Send("{enter}")
Sleep($sleep1)
WEnd
Case $msg =$GUI_EVENT_CLOSE
HotKeySet("{ESC}", "_exit")
sleep(20)
Exit
EndSelect
WEnd
;===========================================================================================================
ich baue das ma hier ein und gucke ob es funkt^^Quote:
danke^^
@BladerOfDarkness
deins ging iwie nit^^
hier ma das script:
PHP Code:#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Version=Beta
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstantsEx.au3>
;==========================================GUI-Einstellungen=================================================================
GUICreate("Spambot v1.3 By xEr0r", 600, 300)
GUISetState(@SW_SHOW)
$ID_input = GUICtrlCreateInput("", 30, 50)
$input1 = GUICtrlCreateInput("", 30, 130)
$ID_button = GUICtrlCreateButton("Start", 420, 50)
$ID_button2 = GUICtrlCreateButton("Stop", 470, 50)
GUICtrlCreateLabel("Spams eingeben ", 10, 10)
GUICtrlCreateLabel("Copyright by xEr0r", 500, 250)
GUICtrlCreateLabel("Spamzeit einstellen", 10, 90)
;===========================================While-Schleifen================================================================
While 1
$msg = GUIGetMsg()
Select
Case $msg = $ID_button
$send1 = GUICtrlRead($ID_input)
$sleep1 = GUICtrlRead($input1)
While 1
Send($send1)
Sleep($sleep1)
WEnd
Case $msg = $GUI_EVENT_CLOSE
HotKeySet("{ESC}", "_exit")
Exit
sleep(20)
EndSelect
WEnd
;===========================================================================================================
schau dir seine gui an und du weisst was er will... 2 buttons, 2labelsQuote:
€: dein bot macht mir kopfschmerzen
sag mir was rein soll ich mach dir einen
Switch GUIGetMsg()
Case Button
Exitloop
EndSwitch
Func _start()
While 1
Send("{G}")
Switch GUIGetMsg()
Case $ID_Button2
Exitloop
EndSwitch
WEnd
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet("{ESC}", "_Exit")
Global $bPaused = False
GUICreate("Spambot v1.3 By xEr0r", 600, 300)
$ID_input = GUICtrlCreateInput("", 30, 50)
$input1 = GUICtrlCreateInput("", 30, 130)
$ID_button = GUICtrlCreateButton("Start", 420, 50)
$ID_button2 = GUICtrlCreateButton("Pause", 470, 50)
GUICtrlCreateLabel("Spams eingeben ", 10, 10)
GUICtrlCreateLabel("Copyright by xEr0r", 500, 250)
GUICtrlCreateLabel("Spamzeit einstellen", 10, 90)
GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $ID_button
_Send()
EndSwitch
WEnd
Func _Exit()
Exit
EndFunc ;==>_Exit
Func _Send()
$Send = GUICtrlRead($ID_input)
$Sleep = GUICtrlRead($input1)
If $Sleep = "" Then $Sleep = 10 ;Um CPU Auslustung niedrig zu halten
If Not $Send = "" Then
While 1
Send($Send)
Sleep($Sleep)
WEnd
Else
MsgBox(0, "Error", " Please fill something in the send box.")
EndIF
EndFunc ;==>_Send
Func WM_COMMAND($hWnd, $nMsg, $wParam, $lParam)
Local $hButton = $ID_button2
$hButton = GUICtrlGetHandle($hButton)
If $lParam = $hButton Then
$bPaused = Not $bPaused
AdlibRegister("_Stop", 10)
EndIf
EndFunc ;==>WM_COMMAND
Func _Stop()
AdlibUnRegister("_Stop")
While $bPaused And Sleep(10)
If GUIGetMsg() = -3 Then Exit
WEnd
EndFunc ;==>_Stop