Hallo zusammen,
ich benutzte IE7 und den Switchmodus:
#include <Constants.au3>
Opt("WinTitleMatchMode", 2)
Opt("TrayOnEventMode", 1)
Opt("TrayMenuMode", 1)
TraySetOnEvent($TRAY_EVENT_PRIMARYDOWN, "_switch")
Do
sleep(500)
UntilWinExists(" - Windows Internet Explorer")
WinSetState(" - Windows Internet Explorer", "", @SW_HIDE)
$state = 0
While 1
sleep(100)
IfNotProcessExists("iexplore.exe") Thenexit ;Wenn der IE geschlossen wird, Script schließen
WEnd
Func _switch()
If$state = 1 Then
WinSetState(" - Windows Internet Explorer", "", @SW_HIDE)
$state = 0
ElseIf$state = 0 Then
WinSetState(" - Windows Internet Explorer", "", @SW_SHOW)
$state = 1
EndIf
EndFunc
Leider minimiert sich das Fenster nicht zum Try-Icon. Wenn ich anschließend auf das Try-Icon clicke, um den Internet-Explorer zu minimieren,
dann bekomme ich eine Fehlermeldung. Die Fehlermeldung lautet: Error - Variable used without being declared
Was muss ich abändern, unter IE6 hatte ich bisher keine Probleme mit dem Script...
Danke für Eure Hilfe...Gruß, Seiwa