I need help with a macro
-
- Posts: 8
- Joined: 02 Mar 2021, 09:43
I need help with a macro
I'm totally new to having a PC, let alone creating a macro. I've heard AHK is the best of the best, but it isn't really noob friendly. All I need is to know how to create a macro that when I press XButton2, it holds XButton1, and when I press it again, it releases it. I have no idea how hard this is to do, but help would be greatly appreciated!
Re: I need help with a macro
Code: Select all
XButton2::Send % "{XButton1 " ((on := !on) ? "down" : "up") "}"
-
- Posts: 8
- Joined: 02 Mar 2021, 09:43
Re: I need help with a macro
Didn't work for some reason...mikeyww wrote: ↑02 Mar 2021, 10:52Code: Select all
XButton2::Send % "{XButton1 " ((on := !on) ? "down" : "up") "}"
Re: I need help with a macro
As a test, you can try the following in Notepad. It has the braces removed, so that you can see the text.
Code: Select all
XButton2::Send % "XButton1 " ((on := !on) ? "down" : "up") ""