Jump to content

is there any way to remap keyboard keys? (solved)

I see you have already marked your post as resolved, but because people often come across this forum via Google I will still mention a solution..

 

Using AutoHotKey you can remap your buttons to various effects.

I will try to whip up some code that does this in a minute, for completion sake.

 

EDIT:

Here is how to do this with AutoHotKey:

 

Code:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; When you press Numpad plus
NumpadAdd::
	SoundSet, +5
Return

; When you press Numpad minus
NumpadSub::
	SoundSet, -5
Return

(Edit the -5/+5 if you want smaller/larger volume steps)

 

To run this code, simply:

- Install AutoHotKey

- Right click > New > AutoHotKey Script

- Paste the code

- Save as (just give it a name and the .ahk extension):

image.png.ae7e9b4f9e82eb58b2e72422b3d56dc8.png

- Right click on the file and press 'compile script'

- Run the script and possibly add a shortcut it to your startup folder, so it opens automagically once you start your computer

 

EDIT2:

I just realized people might want a mute button too. That's quite easy to add, just add this to the script:

; When you press Numpad Del/Dot
NumpadDot::
	SoundSet, -100
Return

list of the different keys here, if you want to add a different key:

https://www.autohotkey.com/docs/KeyList.htm

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×