I’ll write what i’m trying to do here:
when m key pressed down, press the f key fully (so down and up a normal click) a single timeand after a slight delay, holy down mouse1. Hold down mouse 1 until mkey is released. As m key is released, lift up mouse one again and at the same time, press the f key again (a normal click. Thanks!!!
My code is just spamming the f key and clicking, please help, thanks!!!
I’m trying to make a macro, but with button pressed ups and downs and i can’t get it to work
Re: I’m trying to make a macro, but with button pressed ups and downs and i can’t get it to work
Post your code, please.
Regards
Regards
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
Re: I’m trying to make a macro, but with button pressed ups and downs and i can’t get it to work
The code goes like this:
m::
send f
delay 100
send {lbutton down}
return
m up::
send {lbutton up}
send f
return
m::
send f
delay 100
send {lbutton down}
return
m up::
send {lbutton up}
send f
return
-
- Posts: 28
- Joined: 13 Jun 2018, 16:24
Re: I’m trying to make a macro, but with button pressed ups and downs and i can’t get it to work
first of all i would change your code to this
This is your code
change it to this:
i just typed a couple of words in google and i instantly found what you needed, maybe google before asking since a lot of people already asked what you want
https://autohotkey.com/board/topic/1261 ... ntry701173
This is your code
Code: Select all
m::
send f
delay 100
send {lbutton down}
return
m up::
send {lbutton up}
send f
return
change it to this:
Code: Select all
m::
While GetKeyState(m, "p")
send {f down}{lbutton down}
Sleep 10
send {f up}{lbutton up}
Return
i just typed a couple of words in google and i instantly found what you needed, maybe google before asking since a lot of people already asked what you want
https://autohotkey.com/board/topic/1261 ... ntry701173