Hello,
How can I bind these 2 codes togheter?
---------------------------------------------------------------------------------------
#include <GUIConstantsEx.au3>
GUICreate("GUICtrlSetData", 200,100)
GUISetState(@SW_SHOW)
$button = GUICtrlCreateButton("Start",60, 30, 80, 20)
$count = 0
While 1
Switch GUIGetMsg()
Case $button
If $count = 1 Then
GUICtrlSetData($button, "Start")
$count = 0
ElseIf $count = 0 Then
GUICtrlSetData($button, "Stop")
$count = 1
EndIf
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
---------------------------------------------------------------------------------------
GUICtrlCreateLabel("Key", 8, 10)
$key1 = GUICtrlCreateInput("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)
$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $startbutton
$send1 = GUICtrlRead($key1)
$sleep1 = GUICtrlRead($time1)
While 1
Send($send1)
Sleep($sleep1)
WEnd
Case $msg = $GUI_EVENT_CLOSE
EndSelect
WEnd
---------------------------------------------------------------------------------------
I want to make a Spambot with start and stop button , but i dont know where i need to write in..(I'm a autoit beginner) AND THESE CODES ARE NOT MINE!
How can I bind these 2 codes togheter?
---------------------------------------------------------------------------------------
#include <GUIConstantsEx.au3>
GUICreate("GUICtrlSetData", 200,100)
GUISetState(@SW_SHOW)
$button = GUICtrlCreateButton("Start",60, 30, 80, 20)
$count = 0
While 1
Switch GUIGetMsg()
Case $button
If $count = 1 Then
GUICtrlSetData($button, "Start")
$count = 0
ElseIf $count = 0 Then
GUICtrlSetData($button, "Stop")
$count = 1
EndIf
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
---------------------------------------------------------------------------------------
GUICtrlCreateLabel("Key", 8, 10)
$key1 = GUICtrlCreateInput("", 35, 8, 120)
GUICtrlCreateLabel("Time", 8, 44)
$time1 = GUICtrlCreateInput("", 35, 40, 120)
$startbutton = GUICtrlCreateButton("Start", 190, 8, 60)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $startbutton
$send1 = GUICtrlRead($key1)
$sleep1 = GUICtrlRead($time1)
While 1
Send($send1)
Sleep($sleep1)
WEnd
Case $msg = $GUI_EVENT_CLOSE
EndSelect
WEnd
---------------------------------------------------------------------------------------
I want to make a Spambot with start and stop button , but i dont know where i need to write in..(I'm a autoit beginner) AND THESE CODES ARE NOT MINE!