Skip to content

Instantly share code, notes, and snippets.

@fcicq
Last active May 28, 2020 22:08
Show Gist options
  • Save fcicq/1e2978f495696fb80e3641a2d56c83ca to your computer and use it in GitHub Desktop.
Save fcicq/1e2978f495696fb80e3641a2d56c83ca to your computer and use it in GitHub Desktop.
translation strings to sendkey. note: missing many symbols. check sendkey <tab>
-e 's/\([A-Z]\)/%shift-\1%/g' \
-e 's/\\/%backslash%/g' -e 's/\//%slash%/g' \
-e 's/,/%comma%/g' -e 's/</%shift-comma%/g' \
-e 's/\./%dot%/g' -e 's/>/%shift-dot%/g' \
-e "s/'/%apostrophe%/g" -e 's/\"/%shift-apostrophe%/g' \
-e 's/:/%shift-semicolon%/g' \
-e 's/_/%shift-minus%/g' \
-e 's/+/%shift-equal%/g' -e 's/=/%equal%/g' \
-e 's/#/%shift-3%/g' \
-e 's/&/%shift-7%/g' \
-e 's/(/%shift-9%/g' \
-e 's/)/%shift-0%/g' \
-e 's/ /%spc%/g' -e 's/%\([^%]*\)%/SENDKEY \U&\n/g' \
-e '/^[a-z0-9]*/ s/\([a-z0-9]\)/sendkey \1\n/g' \
-e 's/SHIFT-sendkey /SHIFT-/g' \
-e 's/%//g' -e 's/\([A-Z]\)/\L&/g' -e 's/$/sendkey ret/' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment