Hi ich habe hier.
Eine GUI und wollte Fragen wie den inhalt von diesen Inputboxen
in ein Send befehl schreiben kann?
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 436, 88, 192, 154)
$BN = GUICtrlCreateInput("", 8, 8, 337, 21)
$PW = GUICtrlCreateInput("", 8, 32, 337, 21)
$Button_Go = GUICtrlCreateButton("GO", 8, 56, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Benutzername", 352, 8, 72, 17)
$Label2 = GUICtrlCreateLabel("PW", 352, 32, 22, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button_Go
Sleep(2000)
Send($BN)
Send($PW)
EndSwitch
WEnd
PHP Code:
$BN = GUICtrlCreateInput("", 8, 8, 337, 21)
$PW = GUICtrlCreateInput("", 8, 32, 337, 21)