I'm trying to have Autohotkey hold down Shift and Middle mouse button while I hold down the middle mouse button and release the shift and middle mouse button when I release the middle mouse button but only when I have sketchup open.
Here is my quick script as it is now
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Sketchup
#IfWinActive ahk_exe SketchUp.exe
MButton::
send {+ down}{Mbutton down}
return
MButton Up::
Send {+ up}{Mbutton up}
return
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Sketchup
#IfWinActive ahk_exe SketchUp.exe
~MButton::
send {+ down}
return
~MButton Up::
Send {+ up}
return
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Sketchup
#IfWinActive ahk_exe SketchUp.exe
MButton::
send {+ down Mbutton down}
return
MButton Up::
Send {+ up Mbutton up}
return
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Sketchup
#IfWinActive ahk_exe SketchUp.exe
MButton::
send {+Mbutton down}
return
MButton Up::
Send {+Mbutton up}
return
If anyone could tell me what I'm doing wrong I'd be super grateful.