Quote:
Originally Posted by Struppi
Also das ist mein Skript:
PHP Code:
#include <FF.au3> #include <GUIConstants.au3>
$Form2 = GUICreate("Daten", 413, 305, 294, 210) $Id = GUICtrlCreateInput("Id", 40, 16, 273, 21) $Passwort = GUICtrlCreateInput("Passwort", 40, 56, 273, 21) $Weiter = GUICtrlCreateButton("Weiter", 80, 168, 217, 49, 0) GUISetState(@SW_SHOW)
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Weiter Start() EndSwitch WEnd
Func Start() if GuiCtrlRead($Passwort)<>"" and GuiCtrlRead($Id)<>"" then Startbot () ; Starte Skript EndIf
_FFStart("www.elitepvpers.com") If _FFIsConnected() Then sleep(1000) _FFSetValue($Id, "username", "name") _FFSetValue($Passwort, "password", "name") _FFFormSubmit() ; Bestätigt das Formular Else MsgBox(64, "Tut mir leid", "Ist deine Account Id Richtig?") EndIf If _FFIsConnected() Then sleep(2000) _FFLinkClick("Forum","text") Else MsgBox(64, "Pech gehabt", "Geht nicht") EndIf MsgBox(64, "Viel Spaß", "Beim Surfen")
HotKeySet("{ESC}", "Terminate") Func Terminate() Exit 0 EndFunc
Geht leider nicht, kann Jemand mal schauen?
|
Ist doch klar ,dass das so nicht geht ...
Du lässt ja irgendetwas überprüfen und wenn es nicht wahr ist , dann machst du trotzdem mit dem normalen Skript weiter ...
PHP Code:
#include <FF.au3>
#include <GUIConstants.au3>
HotKeySet("{ESC}", "Terminate")
$Form2 = GUICreate("Daten", 413, 305, 294, 210)
$Id = GUICtrlCreateInput("Id", 40, 16, 273, 21)
$Passwort = GUICtrlCreateInput("Passwort", 40, 56, 273, 21)
$Weiter = GUICtrlCreateButton("Weiter", 80, 168, 217, 49, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Weiter
Start()
EndSwitch
WEnd
Func Start()
if GuiCtrlRead($Passwort)<>"" and GuiCtrlRead($Id)<>"" then
_FFStart("www.elitepvpers.com")
If _FFIsConnected() Then
sleep(1000)
_FFSetValue($Id, "username", "name")
_FFSetValue($Passwort, "password", "name")
_FFFormSubmit() ; Bestätigt das Formular
Else
MsgBox(64, "Tut mir leid", "Ist deine Account Id Richtig?")
EndIf
If _FFIsConnected() Then
sleep(2000)
_FFLinkClick("Forum","text")
Else
MsgBox(64, "Pech gehabt", "Geht nicht")
EndIf
MsgBox(64, "Viel Spaß", "Beim Surfen")
EndIf
EndFunc
Func Terminate()
Exit 0
EndFunc
Du solltest dir echt nocheinmal die Grundlagen etwas genauer anschauen ...