Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations
    primarykey
    data
    text
    <p>Here is what I am trying to accomplish:</p> <ol> <li>To Copy, press and release <kbd>Caps Lock</kbd> ONCE</li> <li>To Paste, press and release <kbd>Caps Lock</kbd> TWICE, quickly</li> <li>To Cut, press <kbd>Ctrl</kbd>+<kbd>Caps Lock</kbd></li> </ol> <p>The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next to each other (atleast on a QWERTY keyboard).</p> <p>How can I do this on a standard keyboard (using Windows), so that it applies to the entire system and is transparent to all applications, including to Windows Explorer? If not possible with a standard keyboard, can any of the "programmable numeric keypads" do this you think?</p> <p>In the above, by "transparent" I mean "the application should never know that this keystroke was translated. It only gets the regular <kbd>Ctrl</kbd>+<kbd>X</kbd>/<kbd>C</kbd>/<kbd>V</kbd> code, so it behaves without any problems".</p> <p>Ps. Not sure of all the tags that are appropriate for this question, so feel free to add more tags.</p> <p>SOLVED. UPDATE: Thank you to @Jonno_FTW for introducing me to AutoHotKey. I managed all three requirements by adding the following AHK script in the default AutoHotKey.ahk file in My Documents folder:</p> <pre><code>Ctrl &amp; CapsLock:: Send ^x Return CapsLock:: If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey &lt; 1000) Send ^v Else Send ^c Return </code></pre> <p>That was easy!</p> <p><strong>NOT COMPLETELY SOLVED. UPDATE:</strong> The above works in Notepad, but NOT in Explorer (copying files for example) or MS Office (even text copying does not work). So, I need to dig around a bit more into AutoHotKey or other solutions. Will post a solution here when I find one. In the meantime, if someone can make AutoHotKey work for everything I need, please reply!</p> <p><strong>ALL SOLVED. UPDATE:</strong> All I had to do was to change the capital "C"/X/Z to lowercase "c"/x/z. So Send ^C became Send ^c. It now works in ALL programs inlcuding Windows Explorer! Fixed code above to reflect this change.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload