Spambot Frage

02/28/2009 21:25 plachta1234#1
Hey ich bin grad einen Spambot am Schreiben. Hier der bisherige Code
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

HotKeySet("{F8}""_end")

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Spambot by plachta1234 v.0.0.1.4487"354211193125)
$Button1 GUICtrlCreateButton("Start!!!"003531290)
GUICtrlSetFont(-1404000"MS Sans Serif")
$Input1 GUICtrlCreateInput("Fenstername"015214521)
$Input2 GUICtrlCreateInput("Spamnachricht"018414521)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _start
()
    EndSwitch
WEnd

Func _start
()
    While 
1
        ControlSend 
($Input1,"","",$Input2)
        
Sleep (100)
        
ControlSend ($Input1,"","","{Enter}")
        
Sleep (100)
    
WEnd
EndFunc   
;==>_start

Func _end
()
    Exit
EndFunc 
Nur will er keine Nachrichten schreiben?! Wo liegt denn bitte der Fehler
02/28/2009 21:41 Specter cason#2
im backgrund lässt er doch abundzu buchstanben aus und so versuchs doch einfach mal mit send das es nicht im background läuft
02/28/2009 22:02 plachta1234#3
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

HotKeySet("{F8}""_end")

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Spambot by plachta1234 v.0.0.1.4487"354211193125)
$Button1 GUICtrlCreateButton("Start!!!"003531290)
GUICtrlSetFont(-1404000"MS Sans Serif")
$Input2 GUICtrlCreateInput("Spamnachricht"018414521)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _start
()
    EndSwitch
WEnd

Func _start
()
        
Sleep (5000)
    While 
1
        Send 
($Input2)
        
Sleep (100)
        
Send ("{Enter}")
        
Sleep (100)
    
WEnd
EndFunc   
;==>_start

Func _end
()
    Exit
EndFunc   ;==>_end 
So sieht es aktuell aus. Nur wenn ich es teste spammt er "4".
02/28/2009 22:15 NBA#4
Du darfst nicht die $inputs schreiben, dann komm die control ID
du musst
Code:
Func _start()
        Sleep (5000)
    While 1
$read2 = GuiCtrlRead($input2)
        Send ($read2)
        Sleep (100)
        Send ("{Enter}")
        Sleep (100)
    WEnd
EndFunc   ;==>_start
es so machen
02/28/2009 23:34 plachta1234#5
Dankeschön das hat mir sehr geholfen nur bei dem ersten send musste ich $Input2 mit $read2 vertauschen. aktuell sieht es so aus:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

HotKeySet("{F8}""_end")

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Spambot by plachta1234 v.0.0.1.4487"354211193125)
$Button1 GUICtrlCreateButton("Start!!!"003531290)
GUICtrlSetFont(-1404000"MS Sans Serif")
$Input2 GUICtrlCreateInput("Spamnachricht"018414521)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            _start
()
    EndSwitch
WEnd

Func _start
()
        
Sleep (4000)
    While 
1
$read2 
GuiCtrlRead($Input2)
        
Send ($read2)
        
Sleep (20)
        
Send ("{Enter}")
        
Sleep (20)
    
WEnd
EndFunc   
;==>_start

Func _end
()
    Exit
EndFunc   ;==>_end 
Ich hab einfach mal rumprobiert und "$read1 = GuiCtrlRead($Input1)" dazugefügt wobei Input1 eine InputBox war wo man den Fenster namen einträgt. Das ControlSend sah so aus:
PHP Code:
ControlSend ($read1,"","",$read2
Doch leider hat es nicht funktioniert.
02/28/2009 23:49 NBA#6
versuch mal "Guild Wars" (bzw. dein spiel) mit den "" einzutragen...
03/01/2009 13:31 plachta1234#7
Eigentlich könnte ich doch die KeySend func benutzen von der tt6 oder? nur bezieht die sich nicht nur auf GW?
03/01/2009 14:48 NBA#8
eigentlich schon
03/01/2009 16:22 plachta1234#9
Dankeschön für deine Hilfe als Danke hab ich dein YhnB mal 10 Lvl gepusht :)
@NBA: ich kann dein YhnB weiter pushen :) später helf ich dir vll ein bisschen so ca. 40 Lvl^^
03/01/2009 18:56 NBA#10
:D thx