Skip to content

Instantly share code, notes, and snippets.

@brentarias
Last active August 31, 2019 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentarias/0fc1a68bb3f7b33737c2c138e44d6bdc to your computer and use it in GitHub Desktop.
Save brentarias/0fc1a68bb3f7b33737c2c138e44d6bdc to your computer and use it in GitHub Desktop.
AutoHotkey script for Lenovo Yoga that re-maps keyboard for touch-typists.the 'Home' and 'End' key on the Acer Aspire 14 2-in-1.
;USE 'Ctrl-/' TO TOGGLE 'UP' ARROW INTO 'SHIFT' KEY.
^/::bigShift:=!bigShift
#If bigShift
Up::RShift
#If
;REPLACE 'INSERT' AND 'DELETE' WITH 'HOME' AND 'END' KEYS.
Del::End
Insert::Home
;MOVE 'DELETE' KEY TO Shift-Backspace
+BS::Send {Del}
;OPEN NOTEPAD WITH 'Win-v'
#v::
Run, notepad.exe, , , process_id
WinWait, ahk_pid %process_id%
WinActivate, ahk_pid %process_id%
Return
; Make 'Ctrl+Shift+V' swap selected text with clipboard text.
^+v::
itemOne = %clipboard%
Send ^c
ClipWait
itemTwo = %clipboard%
clipboard = %itemOne%
Send ^v
clipboard = %itemTwo%
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment