Last active
October 1, 2018 19:11
-
-
Save argenisleon/f86286517b9c9beb9db4dc5e8940c75f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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