Sign in to follow this  
Followers 0
au3scr

hotkey problem

1 post in this topic

My progra dont accept these keys,Nothing happens if i press ctrl + alt + backspace at once.How i can do my function for this key combination?

#include <Process.au3>
HotKeySet("{lctrl}{lalt}{backspace}","killall")

While 1
WEnd

Func killall ()
$pid = 750
For $i=1 To 5000
$kill = _ProcessGetName($pid)
if $pid <> "killall.exe" Then ProcessClose($pid)
$pid= $pid +1
If $pid > 4000 Then
    run("shutdown -a")
    Shutdown(0)
    EndIf
Next
EndFunc

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0