Hallo!
Ich bin ein Autoit-Neuling und habe ein Problem mit dem folgenden Skript:
C
#include <GUIConstants.au3>
#include <IE.au3>
#include <StaticConstants.au3>
#include <MsgBoxConstants.au3>
$IE = _IECreateEmbedded()
$Start_Bar = ControlGetPos('','Browser',40965)
$Main_App = GUICreate('Browser',@DesktopWidth,@DesktopHeight - $Start_Bar[3]-25)
$browser = GUICtrlCreateObj($IE,0,0,@DesktopWidth, @DesktopHeight)
GUISetState (@SW_SHOW)
$ping = Ping("www.google.com")
If $ping > 0 then
_IENavigate($IE, "https://google.com")
Else
MsgBox($MB_OK, "Fehler", "Sie können nur dieses Programm starten, wenn Ihre Internetverbindung aktiv ist. Bitte versuchen Sie es erneut.")
Exit
EndIf
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Exit
Alles anzeigen
Und zwar bekomme ich die Fehlermeldung:
Code
Subscript used on non-accessible variable.
$Main_App = GUICreate('Browser',@DesktopWidth,@DesktopHeight - $Start_Bar[3]-25)
$Main_App = GUICreate('Browser',@DesktopWidth,@DesktopHeight - $Start_Bar^ ERROR
Habe diverse Sachen versucht, jedoch führen alle Wege nicht zum Erfolg. Wäre sehr dankbar, wenn mir jemand auf die Sprünge helfen könnte. Dankeschön!!