Loginbot geht nicht

02/28/2010 18:05 ´Romka#1
Hallo
ich wolte mal einen loginbot für spiele machen.
Ich will das er das "sendet" was in den Imputboxen steht.
ich kann den fehler nicht finden.
Vllt findet ihr den fehler
Code :
Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("LoginBot by .FreakY", 300, 200, 200, 200)
$Button1 = GUICtrlCreateButton("Einloggen", 70, 80, 161, 35, 0)
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetFont(-1, 17, 400, 0, "Rosewood Std Regular")
GUICtrlSetCursor (-1, 0)
$Button3 = GUICtrlCreateButton("ENDE", 100, 120, 100, 0)
GUICtrlSetFont(-1, 17, 400, 0, "Rosewood Std Regular")
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetCursor (-1, 0)
$Button4 = GUICtrlCreateButton("INFO", 5, 160, 75, 30)
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetFont(-1, 17, 400, 0, "Rosewood Std Regular")
GUICtrlSetCursor (-1, 0)
$Button5 = GUICtrlCreateButton("E*PvP", 220, 160, 75, 30)
GUICtrlSetBkColor(-1, 0x00FFFF)
GUICtrlSetFont(-1, 17, 400, 0, "Rosewood Std Regular")
GUICtrlSetCursor (-1, 0)
GUISetBkColor(0x008000)
GUICtrlSetFont(-1, 16, 400, 0, "Rosewood Std Regular")
$Input1 = GUICtrlCreateInput("", 75, 10, 200, 21)
$Input2 = GUICtrlCreateInput("", 75, 40, 200, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$id = GUICtrlCreateLabel("ID", 16, 16, 44, 17)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$pw = GUICtrlCreateLabel("PW", 16, 40, 36, 17)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW) 
guictrlsetstate($button1,$gui_enable)
guictrlsetstate($button3,$gui_enable)
$state = false 
While 1
	$nMsg = GUIGetMsg() 
	Switch $nMsg 
		Case $GUI_EVENT_CLOSE 
		case $button3
			guictrlsetstate($button3,$gui_enable)
			Exit
		case $button4
			MsgBox(0, "Info", _ 
		@CRLF & _
		@CRLF & _
		"Infos" & @CRLF & _
		"" & @CRLF & _
		"Dieser Bot ist hilfreich wenn man kb hat" & @CRLF & _
		"seine Daten immer einzugeben" & @CRLF & _
		"Das ist zu 100% kein Keylogger" & @CRLF & _
		@CRLF & _
		"Powert by .FreakY for ElitePvPers")
		case $button5
		ShellExecute("http://www.elitepvpers.com/", 1)
		EndSwitch
		if $state = false then 
			send (GUICtrlRead("{$id}"))
			send ("{Enter}")
			send (GUICtrlRead($pw))
			send ("{Enter}")
			sleep(10000)
			EndIf
		WEnd
und ich will das alles ohne den "While " Befehl
02/28/2010 18:44 KDeluxe#2
PHP Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 GUICreate("LoginBot by .FreakY"300200200200)
$Button1 GUICtrlCreateButton("Einloggen"7080161350)
GUICtrlSetBkColor(-10x00FFFF)
GUICtrlSetFont(-1174000"Rosewood Std Regular")
GUICtrlSetCursor (-10)
$Button3 GUICtrlCreateButton("ENDE"1001201000)
GUICtrlSetFont(-1174000"Rosewood Std Regular")
GUICtrlSetBkColor(-10x00FFFF)
GUICtrlSetCursor (-10)
$Button4 GUICtrlCreateButton("INFO"51607530)
GUICtrlSetBkColor(-10x00FFFF)
GUICtrlSetFont(-1174000"Rosewood Std Regular")
GUICtrlSetCursor (-10)
$Button5 GUICtrlCreateButton("E*PvP"2201607530)
GUICtrlSetBkColor(-10x00FFFF)
GUICtrlSetFont(-1174000"Rosewood Std Regular")
GUICtrlSetCursor (-10)
GUISetBkColor(0x008000)
GUICtrlSetFont(-1164000"Rosewood Std Regular")
$Input1 GUICtrlCreateInput(""751020021)
$Input2 GUICtrlCreateInput(""754020021BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$id GUICtrlCreateLabel("ID"16164417)
GUICtrlSetFont(-1124000"MS Sans Serif")
$pw GUICtrlCreateLabel("PW"16403617)
GUICtrlSetFont(-1124000"MS Sans Serif")
GUISetState(@SW_SHOW)

While 
True
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            
einloggen
        
case $button3
            
Exit
        case 
$button4
            MsgBox
(0"Info"_
            
@CRLF _
            
@CRLF _
            
"Infos" & @CRLF _
            
"" & @CRLF _
            
"Dieser Bot ist hilfreich wenn man kb hat" & @CRLF _
            
"seine Daten immer einzugeben" & @CRLF _
            
"Das ist zu 100% kein Keylogger" & @CRLF _
            
@CRLF _
            
"Powert by .FreakY for ElitePvPers")
        case 
$button5
            ShellExecute
("http://www.elitepvpers.com/"1)
    EndSwitch
WEnd 
Ohne weitere Infos kann man nicht mehr machen
03/01/2010 14:45 ´Romka#3
Ja aber er soll doch das "senden" was in den Inputboxen steht
03/01/2010 14:56 KDeluxe#4
Quote:
Originally Posted by KillerDeluxe
Ohne weitere Infos kann man nicht mehr machen
- reicht TAB aus, um vom ID Input zum PW Input zu wechseln
(- Fenstername)

Man kann nicht erwarten, wenn man nichts sagt
03/01/2010 21:01 ´Romka#5
So also nochmal ;
ICh wollte das er das sendet, was in den Imut boxen steht
das heisst
1. send (Impud1)
2. Enter
send (Imput2)
Enter
dan soller aufhören, aber nihct ausgehen !!!!
Das senden soll ermache, wenn ichden Button "Einloggen" drücke :)
Fenstername = METIN2
03/01/2010 21:05 KDeluxe#6
Schau dir mal "GUICtrlRead" an
03/01/2010 21:22 ´Romka#7
habe ich aber verstehe nur banhoff
03/01/2010 21:54 KDeluxe#8
Bemühst du dich auch?

PHP Code:
Send(GUICtrlRead($Input1))
Send("{ENTER}")
Send(GUICtrlRead($Input2))