|
You last visited: Today at 17:18
Advertisement
Script sendet Input nicht
Discussion on Script sendet Input nicht within the AutoIt forum part of the Coders Den category.
11/13/2012, 05:55
|
#1
|
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
|
Script sendet Input nicht
Das Script soll einfach das Passwort in einem Browser eingeben.
So hier mal die wichtigen Teile des Scripts:
Der Send Befehl gibt einfach nicht den Inhalt der InputBox aus.
Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=D:\Eigene Dateien\LS\gui.kxf
$Form1 = GUICreate("LS Bot", 381, 215, 215, 124)
GUISetFont(10, 800, 0, "MS Sans Serif")
$AccInput = GUICtrlCreateInput("", 168, 16, 145, 24)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$PWInput = GUICtrlCreateInput("", 168, 48, 145, 24, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Start = GUICtrlCreateButton("Start", 168, 168, 73, 25)
GUICtrlSetOnEvent($Start, "_Main")
$Stop = GUICtrlCreateButton("Stop", 261, 168, 73, 25)
$Acc = GUICtrlCreateLabel("Accountname", 16, 16, 97, 20)
$PW = GUICtrlCreateLabel("Password", 16, 48, 72, 20)
$PWOutput = GUICtrlRead($PWInput)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start ;StartButton
_Main () ;Funktion
EndSwitch
WEnd
Func _Main ()
MouseClick("left",700,482,2)
Sleep(1000)
Send(""&$PWOutput)
Sleep(2000)
EndFunc
Ich habe auch schon folgendes versucht:
Code:
MouseClick("left",700,482,2)
Sleep(1000)
GUICtrlRead($PWOutput)
Send(""&$PWOutput)
Sleep(2000)
|
|
|
11/13/2012, 06:12
|
#2
|
elite*gold: 0
Join Date: Aug 2011
Posts: 263
Received Thanks: 177
|
So müsste es gehen:
Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=D:\Eigene Dateien\LS\gui.kxf
$Form1 = GUICreate("LS Bot", 381, 215, 215, 124)
GUISetFont(10, 800, 0, "MS Sans Serif")
$AccInput = GUICtrlCreateInput("", 168, 16, 145, 24)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$PWInput = GUICtrlCreateInput("", 168, 48, 145, 24, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Start = GUICtrlCreateButton("Start", 168, 168, 73, 25)
GUICtrlSetOnEvent($Start, "_Main")
$Stop = GUICtrlCreateButton("Stop", 261, 168, 73, 25)
$Acc = GUICtrlCreateLabel("Accountname", 16, 16, 97, 20)
$PW = GUICtrlCreateLabel("Password", 16, 48, 72, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start ;StartButton
_Main () ;Funktion
EndSwitch
WEnd
Func _Main ()
MouseClick("left",700,482,2)
Sleep(1000)
Send(GUICtrlRead ($PWInput))
Sleep(2000)
EndFunc
|
|
|
11/13/2012, 06:24
|
#3
|
elite*gold: 250
Join Date: Mar 2010
Posts: 840
Received Thanks: 184
|
ich hab so gut wie alle Varianten ausprobiert, aber das natürlich nicht -.-
Vielen herzlichen Dank!!!
|
|
|
11/13/2012, 06:25
|
#4
|
elite*gold: 0
Join Date: Aug 2011
Posts: 263
Received Thanks: 177
|
Immer gerne, wenn noch Probleme sind PN oder hier Posten ^^
|
|
|
11/13/2012, 17:39
|
#5
|
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
|
Quote:
Originally Posted by FoGzone
Ich habe auch schon folgendes versucht:
Code:
MouseClick("left",700,482,2)
Sleep(1000)
GUICtrlRead($PWOutput)
Send(""&$PWOutput)
Sleep(2000)
|
Code:
MouseClick("left",700,482,2)
Sleep(1000)
GUICtrlRead($PWOutput)
Send(""&$PWOutput)
Sleep(2000)
Du liest hier den Wert aus dem Input aus. Den speicherst du aber nirgendwo.
Dann sendest du einen leeren String und das Handle des Controls, des Inputfelds.
Code:
MouseClick("left",700,482,2)
Sleep(1000)
$sRead=GUICtrlRead($PWOutput)
Send($sRead)
Sleep(2000)
Hier wird nun der Wert, der im Inputfeld steht, in der Variable $sRead gespeichert. Danach wird der Inhalt der Variable $sRead gesendet.
MfG
|
|
|
 |
Similar Threads
|
Disable XSS(Script execution from input)
04/14/2012 - Web Development - 2 Replies
I saw a lot of old search scripts and some register pages that get XSS so easy.
So, to disable in script the tags that can be added, sended from GET or POST, you can use the following code into your PHP Code.
if(isset($_GET)) $_GET = array_map("strip_tags", $_GET);
if(isset($_POST)) $_POST = array_map("strip_tags", $_POST);
|
Z8Games sendet nicht an GMX
12/10/2010 - CrossFire - 11 Replies
Hey liebe Com,
Undzwar spiele ich seit knapp 2 Jahren Crossfire und das auch gut hab dort 2 Accounts.Mein Großer ist alles okay aber bei meinem Kleinen stimmt was nicht...undzwar, Er läuft auf eine GMX Email adresse.Nun das Problem ich bekomme keine e-mail auf GMX bei keinem Account Spamordner alles geguckt,Support angeschrieben doch die kommen mit sowas wie Account Sharing jemand noch ne Idee was ich tun kann?
Lg
Darko
|
AutoIT sendet nicht
02/28/2010 - AutoIt - 24 Replies
Hi,ich wollte mir mal einen einfachen Farm Bot für 4Story erstellen
aber irgendwie sendet AutoIT keine Tasten zu 4Story vielleicht hab ich ja was falsch gemacht.
Allerdings bei anderen Spielen z.b. FlashGames klappt das ganz gut.
#cs -------------------------------------------------- --------------------------
AutoIt Version: 3.3.4.0
Author: Arrow
Simpler AutoFarmer
|
All times are GMT +1. The time now is 17:20.
|
|