Ohne anklicken??

04/22/2010 13:25 arisha#1
Hallo...Habe einen simplen spamm-bot erstellt...der kann auf das notepad zugreifen...aber man muss erst einmal in das notepad klicken...das soll er aber von aleine machen..geht das???Hier mein script bis jetzt:

#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("Hier den Text hinein schreiben", 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!")
ShellExecute("notepad.exe")
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



Hoffe man kann das machen ...
Thx for Help:)
04/22/2010 14:05 FrEakY.#2
Ich würde es mal so probieren..

PHP Code:
Func spamm()
MsgBox(0"Hinweis!""Zum Stoppen drücke F2!"
ShellExecute("notepad.exe")
Mouseclick("left")
While 
1
Send
(GUICtrlRead($Input1))
Send ("{enter}")
Sleep(GUICtrlRead($Input2))
WEnd
EndFunc 
04/22/2010 14:10 Koriyume#3
Quote:
Originally Posted by FrEakY. View Post
Ich würde es mal so probieren..

PHP Code:
Func spamm()
MsgBox(0"Hinweis!""Zum Stoppen drücke F2!"
ShellExecute("notepad.exe")
Mouseclick("left")
While 
1
Send
(GUICtrlRead($Input1))
Send ("{enter}")
Sleep(GUICtrlRead($Input2))
WEnd
EndFunc 
Jo!
Da musste auch MsgBox(1 hab ich gemacht aba hör auf ihn!
04/22/2010 16:10 .nAno#4
das geht sogar hidden :o

Setz mal vor das Send ein Control --> ControlSend :awesome:
Schau dir das mal in der Helpdatei an ;)