With a simple tweak you can program you Windows PC to launch specified programs at start-up that depends on the combination of keys turned on or off. To be more specific; the combination of Caps Lock, Num Lock and Scroll Lock turned on trigger the launch of specific applications. Whitson Gordan (Lifehacker user) has devised a simple AutoHotkey script that checks the status of Caps Lock, Num Lock and Scroll Lock to trigger the launch of specific applications. All you have to do is paste the given below script to a text file and change the application combo (if you want to).
NOTE: In the given below code for example if you want NumOnCapsOffScrollOff to trigger Notepad application, replace iexplore.exe with Notepad.exe. Same can be done to set other application launch sequence of your choice.
The code:
; Auto-Execute:
GoTo CheckKeyboardStatus
; On startup, this script checks the status of Numlock, Capslock, and Scrolllock.
; Depending on the unique combination of these 3 variables, 1 of 8 commands will be executed.
; The status is then reset (Numlock on, Capslock off, Scrolllock off)
;
; To use this script, place it in your startup folder.
; Then, every time you power up your computer, toggle the keyboard status
; to specify which apps you want to run at startup.
NumOffCapsOffScrollOff: ; Looks like: . . .
Run Notepad.exe
Run firefox.exe
Return
NumOnCapsOffScrollOff: ; Looks like: o . . (Default)
Run firefox.exe
Return
NumOffCapsOnScrollOff: ; Looks like: . o .
Run iexplore.exe
Return
NumOnCapsOnScrollOff: ; Looks like: o o .
Return
NumOffCapsOffScrollOn: ; Looks like: . . o
Return
NumOnCapsOffScrollOn: ; Looks like: o . o
Return
NumOffCapsOnScrollOn: ; Looks like: . o o
Return
NumOnCapsOnScrollOn: ; Looks like: o o o
Return
CheckKeyboardStatus:
; Read the keyboard status:
Status =
Status .= “Num” . (GetKeyState(”Numlock”, “T”) ? “On” : “Off”)
Status .= “Caps” . (GetKeyState(”Capslock”, “T”) ? “On” : “Off”)
Status .= “Scroll” . (GetKeyState(”Scrolllock”, “T”) ? “On” : “Off”)
; Reset the keyboard status:
SetNumLockState On
SetCapsLockState Off
SetScrollLockState Off
; Execute the appropriate script:
If (IsLabel(Status))
GoTo %Status%
Return
Now when you log into your computer with the key combo turned on or turned off, the specified application will launch.
Launch different application combinations on Windows startup
|
|
Get Free Email Updates Daily! |
Follow us! |
Related Posts with Labels: Technology
Author : Unknown Posting Time: 11:04 AM Labels: Technology
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment