#NoTrayIcon
HotKeySet("+!e", "_exit") ;Shift-Alt-e
$dupa = true
While $dupa
WinWaitActive("Facebook - Mozilla Firefox")
Sleep(1500)
ProcessClose("firefox.exe")
Sleep(500)
#region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Critical
MsgBox(16, "Anty Facebook", "Blokada fejsika." & @CRLF & " Masz pozdrowienia od Mateusza.")
#endregion --- CodeWizard generated code Start ---
WEnd
Func _exit()
$dupa = false
EndFunc
to samo ale już bardziej uniwersalnie
To wyłącza pętelke
ew.
#NoTrayIcon
HotKeySet("+!e", "_exit") ;Shift-Alt-e
$dupa = true
while 1
While $dupa
WinWaitActive("Facebook - Mozilla Firefox")
Sleep(1500)
ProcessClose("firefox.exe")
Sleep(500)
#region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Critical
MsgBox(16, "Anty Facebook", "Blokada fejsika." & @CRLF & " Masz pozdrowienia od Mateusza.")
#endregion --- CodeWizard generated code Start ---
WEnd
sleep(30)
wend
Func _exit()
$dupa =Not $dupa
EndFunc
To włącza i wyłącza pętelke za jednym hotkeyem