Ich hätte eine Frage zum Thema AutoIT und die wäre:
Ich habe hier dieses Script:
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=C:\system.space\Icons\Attention2.ico
#AutoIt3Wrapper_outfile=boss.exe
#AutoIt3Wrapper_Res_Comment=http://glilabors.de
#AutoIt3Wrapper_Res_Description=GLi Boss
#AutoIt3Wrapper_Res_Fileversion=0.1.0.1
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=http://glilabors.de
#AutoIt3Wrapper_Res_Field=Made by|L3viathan
#AutoIt3Wrapper_Res_Field=Company|GLi Labors inrternational
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <Array.au3>
HotkeySet("{Numpad7}","_hide")
global $array[1]
func _hide()
$var = WinList()
For $i = 1 to $var[0][0]
If $var[$i][0] <> "" AND IsVisible($var[$i][1]) AND $var[$i][0] <> "Program manager" Then
WinSetState($var[$i][0],"",@SW_HIDE)
_Arrayadd($array,$var[$i][0])
EndIf
Next
HotKeySet("{Numpad2}","_q")
EndFunc
Func IsVisible($handle)
If BitAnd( WinGetState($handle), 2 ) Then
Return 1
Else
Return 0
EndIf
EndFunc
func _q()
for $b in $array
WinSetState($b,"",@SW_SHOW)
next
Exit
EndFunc
while True
sleep(100)
WEnd
Also wenn ich Numpad7 drücke verschwinden alle fenster.
Und wenn ich Numpad2 drücke erscheinen sie wieder.
Klappt super.
ABER wenn man das einmal gemacht hat,
Muss man das Script neu starten damit es wieder funktioniert.
Meine Frage ist:
Was kann ich ins Script schreiben, damit man es so oft machen kann wie man will?
THX im vorraus.
Phil.






