I've got this new keyboard which has a dedicated key to lock the computer, then retype password, etc.
I made a script when I use an application to help me to control it just with the keyboard. I'm in the dark because I use a projector to show to an audience. But when I, accidently, hit the 'lock pc' key, it locks itself ! And I look a bit like an idiot.. This special key is not seen when I use the GeSHi script (http://qbnz.com/highlighter/), nothing appears but the pc locks !
So I added to my script :
Code: Select all
run E:\Souk_fast\Autohotkey\Windows Lock Workstation Hacks\Disable Lock Workstation Functionality.reg
Now, what I'd like (and apparently not able to achieve) is to run "Enable Lock Workstation Functionality.reg" when I close the script cause I need to lock the computer ! I've found the "OnExit" code but after several tries, I must admit that I don't know how to use it...
So I need help ! Thanks a lot !