I am on a thinkpad. I have a software called TPMiddle installed to change the behaviour…
- User
I am on a thinkpad. I have a software called TPMiddle installed to change the behaviour of the midlde button (single press is like a middle mouse click and long press with red trackpoint is the scrolling). However, my goal is to press a button and keep the middle mouse click button pressed. Can you come up with an autohotkey script (v2) turns it on? like maybe mapping the pg up key to activate auto-scroll/middle-button scrolling and then pg down key to deactivate the mode
this doesn't work
#Requires AutoHotkey v2.0
scrolling := false
PgUp:: { global scrolling if !scrolling { scrolling := true SendEvent("{MButton down}") } }
PgDn:: { global scrolling if scrolling { scrolling := false SendEvent("{MButton up}") } }
and this one also not
#Requires AutoHotkey v2.0
; Global variable to track if middle button is being held global middleButtonHeld := false
; PgUp to start auto-scroll (press and hold middle button) PgUp:: { global middleButtonHeld if (!middleButtonHeld) { Send "{MButton down}" ; Press and hold the middle mouse button middleButtonHeld := true } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.