FF.au3 öffnet falsche URL

  • Hallo,

    Habe folgenden Code:

    Spoiler anzeigen
    [autoit]

    Dim $ooliveid = 2721 ;Ocelote Live ID
    Dim $oaliveid = 42146 ;Athene Live ID

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

    Func _CheckOwn3dStatus($oliveid)

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

    $ourl = "http://api.own3d.tv/rest/live/status.xml?liveid=" & $oliveid

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

    _FFStart ($ourl, "default")
    _FFLoadWait ()
    $ostatushtml = _FFReadHTML () ;Own3d Status auslesen
    _FFQuit ()

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

    Global $ostatus[4]
    Local $aRead[1]

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

    $onamestart = ">live_name</span>&gt;</a>"
    $onameend = "<span xmlns="
    $oviewerstart = ">live_viewer</span>&gt;</a>"
    $oviewerend = "<span xmlns="
    $ogamestart = ">game_short</span>&gt;</a>"
    $ogameend = "<span xmlns="
    $ostatusstart = ">live_is_live</span>&gt;</a>"
    $ostatusend = "<span xmlns="

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

    $aRead = _StringBetween ($ostatushtml, $onamestart, $onameend) ;Name
    If Not @error Then $ostatus[0] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $oviewerstart, $oviewerend) ;Viewer
    If Not @error Then $ostatus[1] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $ogamestart, $ogamestart) ;Game
    If Not @error Then $ostatus[2] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $ostatusstart, $ostatusend) ;Status
    If Not @error Then $ostatus[3] = $aRead[0]

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

    EndFunc

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

    $ooverviewlist = GUICtrlCreateListView ("Stream | Viewer |Game", 1600, 470, 300, 450) ;own3d Stream Liste

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

    Func _CreateListViewItemIfLive()
    If $ostatus[3] = 1 Then

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

    GUICtrlCreateListViewItem ($ostatus[0] & "|" & $ostatus[1] & "|" & $ostatus[2], $ooverviewlist)

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

    EndIf
    EndFunc

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

    ;_CheckOwn3dStatus ausführen und ListViewItem erstellen
    _CheckOwn3dStatus($ooliveid) ;Ocelote Live ID
    _CreateListViewItemIfLive()
    _CheckOwn3dStatus($oaliveid) ;Athene Live ID
    _CreateListViewItemIfLive()

    [/autoit]

    Mein Problem ist, dass sich Firefox zweimal öffnet. Einmal öffnet es die URL mit der "Ocelote Live ID" (siehe Code) und einmal öffnet sich die URL "4242". Ohne http oder irgendwas anderes. Einfach nur "4242" in der URL Leiste. Außerdem schließt sich Firefox trotz _FFQuit () nicht mehr.
    Ich hoffe ihr könnt mir helfen :)

    MfG ExChill

  • Vielen Dank, das erste Problem ist schonmal gelöst :)

    Nochmal der komplette Code mit GUI:

    Spoiler anzeigen
    [autoit]


    #include <GuiConstants.au3>
    #include <GuiComboBoxEx.au3>
    #include <GuiListView.au3>
    #include <Array.au3>
    #include <IE.au3>
    #include <String.au3>
    #include <FF.au3>

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

    $gui = GUICreate("Programm", 1905, 1000)

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

    $tab = GUICtrlCreateTab (0, 0, 1920, 20)

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

    $tstreamsitem = GUICtrlCreateTabItem ("Streams") ;Tab Streams Item

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

    Dim $ooliveid = 2721 ;Ocelote Live ID
    Dim $oaliveid = 42146 ;Athene Live ID

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

    Func _CheckOwn3dStatus($oliveid)

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

    $ourl = "http://api.own3d.tv/rest/live/status.xml?liveid=" & $oliveid

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

    _FFStart ($ourl, "default", 1, "true")
    _FFLoadWait ()
    $ostatushtml = _FFReadHTML () ;Own3d Status auslesen
    _FFQuit ()

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

    Global $ostatus[4]
    Local $aRead[1]

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

    $onamestart = ">live_name</span>&gt;</a>"
    $onameend = "<span xmlns="
    $oviewerstart = ">live_viewer</span>&gt;</a>"
    $oviewerend = "<span xmlns="
    $ogamestart = ">game_short</span>&gt;</a>"
    $ogameend = "<span xmlns="
    $ostatusstart = ">live_is_live</span>&gt;</a>"
    $ostatusend = "<span xmlns="

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

    $aRead = _StringBetween ($ostatushtml, $onamestart, $onameend) ;Name
    If Not @error Then $ostatus[0] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $oviewerstart, $oviewerend) ;Viewer
    If Not @error Then $ostatus[1] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $ogamestart, $ogamestart) ;Game
    If Not @error Then $ostatus[2] = $aRead[0]
    $aRead = _StringBetween ($ostatushtml, $ostatusstart, $ostatusend) ;Status
    If Not @error Then $ostatus[3] = $aRead[0]

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

    EndFunc

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

    $ooverviewlist = GUICtrlCreateListView ("Stream | Viewer |Game", 1600, 470, 300, 450) ;own3d Stream Liste

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

    Func _CreateListViewItemIfLive()
    If $ostatus[3] = 1 Then

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

    GUICtrlCreateListViewItem ($ostatus[0] & "|" & $ostatus[1] & "|" & $ostatus[2], $ooverviewlist)

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

    EndIf
    EndFunc

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

    ;_CheckOwn3dStatus ausführen und ListViewItem erstellen
    _CheckOwn3dStatus($ooliveid) ;Ocelote Live ID
    _CreateListViewItemIfLive()
    _CheckOwn3dStatus($oaliveid) ;Athene Live ID
    _CreateListViewItemIfLive()

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

    GUISetState(@SW_SHOW)

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

    While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
    Exit
    EndSelect
    WEnd

    [/autoit]

    1. Firefox startet sichtbar.
    2. Firefox schließt sich nicht wieder.
    3. Das eigentliche Programm (GUI) startet nicht.