hi,
habe ein Script geschrieben, aber irgendwie beendet sich das immer von selbst.
Script:
hoffe ihr könnt mir helfen.
mfg. einkeks95
habe ein Script geschrieben, aber irgendwie beendet sich das immer von selbst.
Script:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$GUI = GUICreate("macrophono Faker 1.0", 141, 932, 1118, 0)
$Input = GUICtrlCreateInput(" Telefonnummer:", 0, 280, 137, 24)
$Button = GUICtrlCreateButton("Start!", 24, 344, 97, 49, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Hotkey: F9", 40, 392, 68, 20)
GUISetState(@SW_SHOW)
Dim $GUI_AccelTable[1][2] = [["{F1}", $Button]]
GUISetAccelerators($GUI_AccelTable)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Input
Case $Button
GUICtrlRead ($Input)
Call ("read")
If $Url = "http://www.marcophono.net/flatrate_13_b.html" Then
MsgBox (1, "Anruf getätigt", "Anruf an die Nummer: & $Input & getätigt") Else
Call ("write")
EndIf
EndSwitch
WEnd
Func read()
Opt("WinTitleMatchMode", 2)
$Url = ControlGetText("Internet Explorer", "", "Edit1")
EndFunc
Func write()
MouseClick("left",33,85,1)
Sleep (50)
MouseClick("left",364,648,1)
Sleep (50)
Send($Input)
Sleep (50)
MouseClick("left",198,768,1)
EndFunc
mfg. einkeks95