Hey Leute,
ich hab hier ein ganz simples Skript mit _FFWindowSelect(), aber ich kriegs nicht zum laufen
Hoffe jemand kann mir sagen, was ich hier falsch mache :wacko:
Autoit.au3
Vielleicht müsst ihr noch bei MouseClick die Koordinaten anpassen!
MouseCoordMode: 2 = relative coords to the client area of the active window
#include <FF.au3>
AutoItSetOption("MouseCoordMode", 2)
AutoItSetOption("WinTitleMatchMode", 2)
_FFStart("file:///" & @ScriptDir & "\webseite.html")
[/autoit] [autoit][/autoit] [autoit]Sleep(1000)
MouseClick("", 215, 170, 1, 0)
Sleep(2000)
MsgBox(0, "warte", "3 sekunden", 3)
ConsoleWrite(@CRLF & "### Begin _FFWindowSelect(""P"") ###")
ConsoleWrite(@CRLF & "Ausgabe: " & @CRLF)
;_FFDisConnect()
;_FFConnect()
$a = _FFWindowSelect("Popup")
ConsoleWrite($a)
ConsoleWrite(@CRLF & "### End _FFWindowSelect(""P"") ###" & @CRLF)
_FFDisConnect() mit anschließendem _FFConnect() hat auch nichts gebracht
Web Dateien
webseite.html
<html>
<head>
<title>Webseite</title>
<script src="things.js" type="text/javascript"></script>
</head>
<body>
<div id="textfeld">Hier steht irgendwas...
<iframe src="iframe.html" width="160" height="80" name="DasIframe"><div>Kein Iframe sorry!<br>
<a id="link" href="" onclick="popup('popup.html');return false">Ein Javascript Link - Kein Iframe</a></div></iframe>
...und hier auch!
</div>
</body>
</html>
Alles anzeigen
iframe.html
popup.html
Konsolenausgabe
_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 3
_FFConnect: AutoIt: 3.3.6.1
_FFConnect: FF.au3: 0.6.0.1b-5
_FFConnect: IP: 127.0.0.1
_FFConnect: Port: 4242
_FFConnect: Delay: 2ms
_FFConnect: Socket: 1648
_FFConnect: Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0E)
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 16ms
### Begin _FFWindowSelect("P") ###
Ausgabe:
__FFSend: try{FFau3.SelectWin('Popup','title','navigator:browser');}catch(e){'_FFCmd_Err';};
__FFRecv: _FFCmd_Err
0
### End _FFWindowSelect("P") ###
_FFWindowSelect ==> No match: $sSearch: Popup
+>18:55:40 AutoIT3.exe ended.rc:0
>Exit code: 0 Time: 15.436
Alles anzeigen