Skip to content

Instantly share code, notes, and snippets.

@Fusseldieb
Last active June 2, 2022 15:06
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 Fusseldieb/42ba3ea52c9d51762bbf1a5e948bfd65 to your computer and use it in GitHub Desktop.
Save Fusseldieb/42ba3ea52c9d51762bbf1a5e948bfd65 to your computer and use it in GitHub Desktop.
This snippet uses AutoHotKey (AHK) to hold the middle mouse button down using the "AppsKey" (Usually right lower "context menu" key). Useful for CAD applications like SolidWorks and similar on laptops
Holding = 0
AppsKey::
Loop {
if(!GetKeyState("AppsKey", "P")) {
break
}
if(Holding = 0) {
Send {MButton down}
Holding = 1
}
}
Holding = 0
Send {MButton up}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment