Deep mouse buttons' behavior customization with one macro

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
CadMax77
Posts: 7
Joined: 10 Feb 2019, 12:35

Deep mouse buttons' behavior customization with one macro

15 Feb 2019, 09:45

I get to AHK after failing to customize the behavior of advanced mouse buttons with Clicky Mouse.

My initial desire was quite simple: 4th MB (X1) generate PageDown keypress and 5th MB (X2) generate PageUp keypress (continiously) while being pressed.

I achieved this with two separate marco running as parallel (independent)
-------------
XButton1::
while (GetKeyState("XButton1", "P"))
{
Send {PgDn}
Sleep, 200
}
return
-------------
XButton2::
while (GetKeyState("XButton2", "P"))
{
Send {PgUp}
Sleep, 200
}
return
-------------

Now I'd like to have this customization to be a single macro.

Is it possible at all?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, rc76, uchihito and 381 guests