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
scrolling := false
PgUp:: { global scrolling if !scrolling { scrolling := true HoldMiddleButton(true) } }
PgDn:: { global scrolling if scrolling { scrolling := false HoldMiddleButton(false) } }
HoldMiddleButton(hold := true) { MOUSEEVENTF_MIDDLEDOWN := 0x0020 MOUSEEVENTF_MIDDLEUP := 0x0040
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.