_FFWindowSelect - Einfachste Anwendung klappt nicht!?

  • 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

    [autoit]


    #include <FF.au3>

    [/autoit] [autoit][/autoit] [autoit]

    AutoItSetOption("MouseCoordMode", 2)
    AutoItSetOption("WinTitleMatchMode", 2)

    [/autoit] [autoit][/autoit] [autoit]

    _FFStart("file:///" & @ScriptDir & "\webseite.html")

    [/autoit] [autoit][/autoit] [autoit]

    Sleep(1000)
    MouseClick("", 215, 170, 1, 0)
    Sleep(2000)
    MsgBox(0, "warte", "3 sekunden", 3)

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & "### Begin _FFWindowSelect(""P"") ###")
    ConsoleWrite(@CRLF & "Ausgabe: " & @CRLF)
    ;_FFDisConnect()
    ;_FFConnect()
    $a = _FFWindowSelect("Popup")
    ConsoleWrite($a)
    ConsoleWrite(@CRLF & "### End _FFWindowSelect(""P"") ###" & @CRLF)

    [/autoit]


    _FFDisConnect() mit anschließendem _FFConnect() hat auch nichts gebracht :(

    Web Dateien
    webseite.html
    iframe.html
    HTML
    <html>
    	<head>
    		<title>Webseite - Iframe</title>
    		<script src="things.js" type="text/javascript"></script>
    	</head>
    	<body>
    		<div><a id="link" href="" onclick="popup('popup.html');return false">Ein Javascript Link (im Iframe)!</a></div>
    	</body>
    </html>
    popup.html
    HTML
    <html>
    	<head>
    		<title>Popup</title>
    	</head>
    	<body>
    		<div id="textfeld">Das Popup-Fenster</div>
    	</body>
    </html>
    things.js
    Code
    function popup(URL) {
    	Popup = window.open(URL, "", "width=200,height=200,left=200,top=200");
    	Popup.focus();
    }
    Konsolenausgabe