my .ahk script not working what i expect, please correct the code I have below script for on and off monitor using AutoHotKeys. It should work on Windows 7 and Windows 2008 server. need to rewrite the code, please help me.
If I press ctrl+1 it should off the monitor (and it goes to full black screen,I use the GUI,COLOR,0X000000) and all the keyboard keys disable (except for ctrl+1 key). If I press ctrl+1 it should show up the windows 7/ Windows 2008 lock screen which is ctrl+alt+delete screen, and also enable all keyboard keys. If press cntrl+alt+delete it goes to windows logon page (username and password page). This process toggle every time I hit ctrl+1.
I tested below code:
I don't have problem with turnoff monitor using ctrl+1(it works perfect). If I press random keys and press the ctrl+1 it does not show up ctrl+alt+delete screen instead it still black screen.