Skip to content

Instantly share code, notes, and snippets.

@argenisleon
Last active October 1, 2018 19:11
Show Gist options
  • Select an option

  • Save argenisleon/f86286517b9c9beb9db4dc5e8940c75f to your computer and use it in GitHub Desktop.

Select an option

Save argenisleon/f86286517b9c9beb9db4dc5e8940c75f to your computer and use it in GitHub Desktop.
# Foot switch driver http://software.pcsensor.com/pc_en.html
# Key mapper https://autohotkey.com/
# Now create a new script
1.Right-Click on your desktop.
2.Find "New" in the menu.
3.Click "AutoHotkey Script" inside the "New" menu.
4.Give the script a new name. It must end with a .ahk extension. For example: MyScript.ahk
5.Find the newly created file on your desktop and right-click it.
6.Click "Edit Script".
7.Copy an paste the script bellow
8.Right-Click on the file and press "Run Script"
F6::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
send {Click}^#{Right}
else
send ^#{Right} ; Next Desktop
return
}
+F6::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
send {Click}^#{Left}
else
send ^#{Left} ; Previous Desktop
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment