Blog: 2023-02-21

From razwiki
Revision as of 14:42, 21 February 2023 by Razzi (talk | contribs) (Created page with "I opened up a file in vim to play around with an assembler, and tried to hit alt to send escape. It didn't work. I don't know how to do this in autohotkey 2, but I wrote a scr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I opened up a file in vim to play around with an assembler, and tried to hit alt to send escape. It didn't work. I don't know how to do this in autohotkey 2, but I wrote a script for it in ahk 1 somewhere.

Found it in my documents. Here it is:

; Author: fwompner gmail com
#InstallKeybdHook
LAlt::
Send {LAlt Down}
KeyWait, LAlt
Send {LAlt Up}
if ( A_PriorKey = "LAlt" )
{
    Send {Esc}
}
return