Free Republic
Browse · Search
General/Chat
Topics · Post Article

Due to my stiff arthritic fingers and frequent copy and paste operations (and no real need for the CapsLock key) then I use AutoHotkey to remap the CapsLock key to ctrl+c, and Esc to ctrl+v and NumLock to Esc, and the middle mouse button to ctrl+x - all which is very easily coded (as separate lines)

CapsLock::^c

NumLock::Esc

Esc::^v

mbutton::^x

After installing AutoHotkey, right-click on any empty space in a folder or desktop and go to New > AutoHotkey Script. Then right-click on the resulting file (AutoHotkey Script.ahk) and choose edit in Notepad or equivalent. Below the section that you see above in it with lines that are prefaced with ; and maybe # then place your scripts such as my list above in separate lines. Then add the word return as the last and final line after all the commands you want to make.

You can then right click on the AutoHotkey Script and hit Run Script.

You can also add (in your section) other hot key commands that increase efficiency. For instance

#5::Run powercfg.cpl

means if you hold down the Windows key (next to Ctrl, with the flag on it) which is always represented as # (while + means Shift, and ^ means Ctrl and ! means Alt) and then tap the number 5 key (you can put another one) then the Windows 10 power options will open up. Likewise

#7::Run control.exe

will hot key the old Control Panel to open up via Windows key and the number 5 key. Among other commands I use are

#U::Run C:\Windows\System32\appwiz.cpl

which opens up Add and Remove programs.

But you can make combination keys in commands such as

#+::Run (Win and Shift)

#^::Run (Win and Ctrl)

#!::Run (Win and Alt)

#>+::Run (Win and Right Shift)

Thus #+s::Run services.msc means Windows key and Shift, but ^+ could also be used Ctrl and Shift, etc.

You can open many programs at once as by making the first line #+f1:: (or whatever you choose) and then add on separate lines the programs, etc you want to run, such as I do (partial list)

Run C:\Program Files (x86)\BPBible\bpbible.exe

Run C:\Vivaldi\Application\vivaldi.exe

Run C:\Program Files\ProcessExplorer - 1\procexp64.exe

And as said, add the word return as the last and final line after all the commands you want to make.

To make this script automatically run every time you boot up, place a shortcut to your .ahk script in the Windows' startup folder, located at %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup. Or copy the .ahk script file, then hold down the Windows key and tap the r key to open the Run command and paste shell:startup. Then in the Startup folder, right-click inside the window and hit Paste Shortcut.

As for Linux, while I do not use certain multimedia codecs due to qualms about the legality of them here in the US, I have tried many distros and run two PC with Linux, but have not been able to remap the CapsLock to ctrl+c, at least after reboots, despite the many "try this/should work" suggestions (and we have dealt with this before on this thread.

However, I just came across this recent page, which I may try in the future: Key Remapping in Linux — 2021 Edition Duane Johnson Nov 19, 2021

Hope this helps. . Grace and peace thru Jesus. Key Remapping in Linux — 2021 Edition

1 posted on 01/06/2022 7:12:36 AM PST by daniel1212
[ Post Reply | Private Reply | View Replies ]


To: dayglored; ShadowAce

For your ping lists.


2 posted on 01/06/2022 7:15:00 AM PST by daniel1212 ( Turn to the Lord Jesus as a damned+destitute sinner, trust Him to save + be baptized + follow Him!)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212
Note that the posted article are excerpts: see whole article here:
3 posted on 01/06/2022 7:26:29 AM PST by daniel1212 ( Turn to the Lord Jesus as a damned+destitute sinner, trust Him to save + be baptized + follow Him!)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

I keep waiting for a keyboard with LED covered keys, allowing each key to display its value, which is changeable.


4 posted on 01/06/2022 7:56:09 AM PST by aimhigh (THIS is His commandment . . . . 1 John 3:23)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212
Bookmark!

5 posted on 01/06/2022 7:56:16 AM PST by Fiddlstix ((Warning! This Is A Subliminal Tagline! Read it at your own risk!(Presented by TagLines R US))
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

PFL


6 posted on 01/06/2022 8:13:10 AM PST by KevinB (''...and to the Banana Republic for which it stands ...")
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

Thanks. Very helpful.


8 posted on 01/06/2022 8:22:13 AM PST by Basket_of_Deplorables (Convention Of States is our only hope now! Desantis 2024!!!)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

I never understood why I would want to remap keys....heck, I cant even find what I’m looking for when they are labeled correctly.


9 posted on 01/06/2022 8:24:16 AM PST by Magnum44 (...against all enemies, foreign and domestic...)
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

I remember ansi.sys back in the days of DOS...


10 posted on 01/06/2022 8:25:26 AM PST by The Chid
[ Post Reply | Private Reply | To 1 | View Replies ]

To: daniel1212

Bkmk


16 posted on 01/06/2022 12:01:44 PM PST by sauropod (Resident Bidet. A confused old man at the wrong bus stop.)
[ Post Reply | Private Reply | To 1 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson