How To Remove Refrigerant Locking Caps Without Key
The Caps Lock key takes up prime keyboard real estate, and it isn't pulling its weight. This piece of cake AutoHotkey script will plough Caps Lock into a modifier key so you can employ it for customizable shortcuts.
The Basics
This script will let y'all press Caps Lock+Yard to quickly Google text from anywhere in Windows or press Caps Lock+D to wait upwardly the dictionary definition of a word. These shortcuts are customizable, of course.
Best of all, this clever script still lets you apply Caps Lock normally. Yous can toggle Caps Lock on and off by rapidly pressing information technology twice. If y'all don't, Caps Lock will part every bit a modifier cardinal for shortcuts.
AutoHotkey 101
AutoHotkey is a complimentary Windows awarding that sits in the groundwork and runs scripts. You tin write these scripts yourself or download them. Scripts by and large look for a keypress and perform an activity. In this way, AutoHotkey is a quick way of remapping keys in Windows or assigning different actions to keys.
For example, nosotros've shown how you lot can utilise AutoHotkey to disable the Windows fundamental, preventing it from opening the Get-go menu and taking you lot out of full-screen PC games. No need to pry the keycap off the keyboard.
Install AutoHotkey and Get the Script
Download AutoHotkey and install it to begin. Next, download the CapsLock Modifier script.
Excerpt the AHK script file from the Zilch archive file and place information technology in whatever folder on your computer. To run information technology with AutoHotkey, correct-click the script and select "Run Script."
The script is now running in the background. To toggle Caps Lock on and off, speedily double-tap the Caps Lock central.
If you don't double-tap, Caps Lock only functions as a modifier key. With the functions built into the script, you can use the following shortcuts anywhere in Windows:
- Press Caps Lock + d to find the dictionary definition of a selected word.
- Press Caps Lock + thousand to search Google for the selected text anywhere in Windows.
- Printing Caps Lock + t to observe the selected word in a thesaurus.
- Press Caps Lock + westward to search for the selected text on Wikipedia.
Want more than shortcuts? You lot can create your own with a piffling cognition of AutoHotkey scripts.
To control AutoHotkey, look for the AutoHotkey icon in your notification area—information technology has a green background with a white H on it. To end running the script, merely right-click the AutoHotkey icon and select "Exit."
RELATED: How to Write an AutoHotkey Script
How Does Information technology Work?
If you lot'd similar to see what the script does, right-click it and select "Edit Script" instead. This will open the script in Notepad, and you can examine its code. The script is pretty short and easy to understand. Nosotros recommend not downloading and running strange scripts without looking at them and understanding them first.
This script was sent to us by Dave Kellog. Hither's the magic role of the script that makes Caps Lock function every bit a modifier primal if information technology's pressed twice:
CapsLock:: KeyWait, CapsLock ; Wait forever until Capslock is released. KeyWait, CapsLock, D T0.ii ; ErrorLevel = ane if CapsLock not down within 0.ii seconds. if ((ErrorLevel = 0) && (A_PriorKey = "CapsLock") ) ; Is a double tap on CapsLock? { SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On" ; Toggle the state of CapsLock LED } return This bit waits to see if Caps Lock is pressed twice and sets Caps Lock on or off. Otherwise, the script captures Caps Lock and uses information technology for modifier shortcuts.
The residue of the script contains the shortcut actions and a helpful clipboard part that saves the contents of your clipboard and restores them. That part is pretty necessary, as the modifier functions use the clipboard to take deportment on the selected text.
Want to see the total script without downloading it? Here it is:
#NoEnv ; Recommended for functioning and compatibility with hereafter AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting mutual errors. #SingleInstance FORCE ; Skip invocation dialog box and silently supplant previously executing instance of this script. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ;================================================================================================ ; CapsLock processing. Must double tap CapsLock to toggle CapsLock style on or off. ;================================================================================================ ; Must double tap CapsLock to toggle CapsLock fashion on or off. CapsLock:: KeyWait, CapsLock ; Wait forever until Capslock is released. KeyWait, CapsLock, D T0.2 ; ErrorLevel = 1 if CapsLock not down within 0.two seconds. if ((ErrorLevel = 0) && (A_PriorKey = "CapsLock") ) ; Is a double tap on CapsLock? { SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On" ; Toggle the state of CapsLock LED } render ;================================================================================================ ; Hot keys with CapsLock modifier. See https://autohotkey.com/docs/Hotkeys.htm#combo ;================================================================================================ ; Go DEFINITION of selected word. CapsLock & d:: ClipboardGet() Run, http://www.google.com/search?q=ascertain+%clipboard% ; Launch with contents of clipboard ClipboardRestore() Return ; GOOGLE the selected text. CapsLock & g:: ClipboardGet() Run, http://www.google.com/search?q=%clipboard% ; Launch with contents of clipboard ClipboardRestore() Return ; Do THESAURUS of selected give-and-take CapsLock & t:: ClipboardGet() Run http://www.thesaurus.com/scan/%Clipboard% ; Launch with contents of clipboard ClipboardRestore() Return ; Practice WIKIPEDIA of selected word CapsLock & w:: ClipboardGet() Run, https://en.wikipedia.org/wiki/%clipboard% ; Launch with contents of clipboard ClipboardRestore() Render ;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;================================================================================================ ; Clipboard helper functions. ;================================================================================================ ClipboardGet() { OldClipboard:= ClipboardAll ;Save existing clipboard. Clipboard:= "" Send, ^c ;Copy selected test to clipboard ClipWait 0 If ErrorLevel { MsgBox, No Text Selected! Return } } ClipboardRestore() { Clipboard:= OldClipboard } We've seen AutoHotkey scripts that turn Caps Lock into a modifier key earlier, but never one that keeps Caps Lock around every bit a toggle if yous double-press it. Information technology's very clever. Thanks once again to Dave Kellog for sending it to us.
Source: https://www.howtogeek.com/446418/how-to-use-caps-lock-as-a-modifier-key-on-windows/

0 Response to "How To Remove Refrigerant Locking Caps Without Key"
Post a Comment