Neuling sucht Hilfe :)

04/21/2010 16:39 arisha#1
Also.... habe das bis jetzt von einem anderen übernommen:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("SpammBot V1.1", 296, 131, 192, 124)
$Input1 = GUICtrlCreateInput("Text", 8, 8, 281, 21)
$Label1 = GUICtrlCreateLabel("Hier den Text", 8, 32, 100, 17)
$Input2 = GUICtrlCreateInput("Zeit", 8, 56, 281, 21)
$Label2 = GUICtrlCreateLabel("Wie schnell?", 8, 80, 100, 17)
$Button1 = GUICtrlCreateButton("Spamm", 160, 80, 121, 41, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

HotKeySet("{F2}", "ToggleStop")
Global $Stop
While 1
$nMsg = GUIGetMsg()
Switch $nMsg

Case $Button1
spamm()

Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd


Func spamm()
MsgBox(0, "Hinweis!", "Zum Stoppen drücke F2!")
While 1
Send(GUICtrlRead($Input1))
Send ("{enter}")
Sleep(GUICtrlRead($Input2))
WEnd
EndFunc

Func ToggleStop()

$Stop = NOT $Stop
MsgBox(0, "Information", "Das Programm beendet sich jetzt")
Exit
EndFunc

Nun will ich aber das er in den editor(engl.notepad?) etwas schreiben kann...habe mir die tut's angesehen...aber da funzt bei mir net einer!!!
04/21/2010 17:41 FrEakY.#2
WTF das is mein Spammbot o.ô aber keyyyy~
€dit: einfach noch vor dem while, nach der masg box, ShellExecute("notepad.exe") :facepalm:
04/21/2010 19:45 arisha#3
Funzzzzztt...Danke:)...
04/21/2010 20:03 FrEakY.#4
*hust* gimme thx :rolleyes:*hust*