Gianlu-thebest |
|
| Ho fato questo programmino per windows perchč su ubuntu c'č questa funzionalitą invece su win no... WinKill..Per chiudere una finestra basta cliccarci col tasto centrale del mouse ( la rotellina ) e lei si chiude, per uscire c'č il tasto esc ho fatto in modo che il desktop non si chiude ma non per la barra delle applicazioni. CODICE #include <Misc.au3> #notrayicon $esci = 0
HotKeySet("{ESC}","EXIT_EXIT")
While $esci = 0 Sleep(100) If _IsPressed("04") = 1 Then _Tras() EndIf WEnd
Func Exit_EXIT() $esci = 1 EndFunc
Func _Tras($active = 1) If $active = 1 Then If WinActive("Program Manager") = 0 Then WinKill(WinGetTitle("[ACTIVE]")) If @error Then Return -1 Else Return 1 EndIf EndIf EndIf EndFunc
|
| |