I recently broke my keyboard, and wrote some very makeshift, inefficient programs in autohotkey to fix them
here are the outputs of my current laptop keyboard: y = ry h = fh n = {enter}+n 6 = 46
I currently have 4 autohotkey files running for each broken key. Below is the file for h
hadjust.ahk
#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.
while true {
KeyWait, h,D
Sleep 20
Send {BS}
Send {BS}
Send {h}
}
how can I combine the four .ahk files into 1? And is there a better way to do this?
** edit I found a way to do it in one file, but I cant get the n/enter key to work.
Here is the code...
stackadjust.ahk
:?*:fh::h
:?*:hf::h
:?*:ry::y
:?*:yr::y
:?*:46::6
:?*:64::6
:?*:n{Enter}::n
:?*:{Enter}n::n