Hi guys,
Im new to autohotkey and can't find out how I should do this specific sequence.
I would like this to happen:
Holding DOWN [Space], will klick [X] followed by holding DOWN [MOUSE1].
RELEASE [Space], will RELEASE [MOUSE1] followed by klicking [X].
I want the the "klick" to be fast and the upfollowing key to be held or released instantly. =)
Need help with sequence =)
-
- Posts: 4
- Joined: 25 Sep 2018, 12:32
-
- Posts: 440
- Joined: 28 Apr 2018, 21:59
Re: Need help with sequence =)
You mean something like this
Code: Select all
Space Down::
While GetKeyState("Space", "P") { ;P stands for being held down
Send, x
Send, [Click Down]
}
Send, x
Send, [Click Up]
return
- emmanuel d
- Posts: 90
- Joined: 17 Nov 2013, 04:45
Re: Need help with sequence =)
Do you want to close a window ore something??affebroman wrote:klick [X]
Never seen Mouse1 beforeaffebroman wrote:[MOUSE1]
Something like:
Code: Select all
Space Down::
Send X
Send {LButton down}
Return
Space Up::
Send {LButton up}
Send X
Return
-
- Posts: 4
- Joined: 25 Sep 2018, 12:32
Re: Need help with sequence =)
Hi,MannyKSoSo wrote:You mean something like thisCode: Select all
Space Down:: While GetKeyState("Space", "P") { ;P stands for being held down Send, x Send, [Click Down] } Send, x Send, [Click Up] return
"Space down::" is unavailable.
Is there another way to send this?
Last edited by affebroman on 26 Sep 2018, 01:01, edited 1 time in total.
-
- Posts: 440
- Joined: 28 Apr 2018, 21:59
Re: Need help with sequence =)
You can remove the Down part of "Space Down::" and it should work, however it might trigger the while statement multiple times, which means you would need to add a sleep statement inside the while statement.
-
- Posts: 4
- Joined: 25 Sep 2018, 12:32
Re: Need help with sequence =)
Can you give me an example because I don't get that to work either.MannyKSoSo wrote:You can remove the Down part of "Space Down::" and it should work, however it might trigger the while statement multiple times, which means you would need to add a sleep statement inside the while statement.
So basicly I would like holding down space to fast klick X once, followed by holding down LMOUSE untill I release Space. When I release space I want LMOUSE to release and THEN click X again.
-
- Posts: 4
- Joined: 25 Sep 2018, 12:32
Re: Need help with sequence =)
emmanuel d wrote:Do you want to close a window ore something??affebroman wrote:klick [X]
Nope I want a fast editing macro for Fortnite editing!
Basiclly you need to press EDIT[X] once, then press and hold [LMOUSE] to draw the pattern you like to edit. Then press EDIT[X] again to proceede the acctual edit.Never seen Mouse1 beforeaffebroman wrote:[MOUSE1]
lol have that on my logitech software sorry..
Something like:Code: Select all
Space Down:: Send X Send {LButton down} Return Space Up:: Send {LButton up} Send X Return
Who is online
Users browsing this forum: Bing [Bot], RussF and 125 guests