Need help with sequence =)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
affebroman
Posts: 4
Joined: 25 Sep 2018, 12:32

Need help with sequence =)

25 Sep 2018, 13:26

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. =)
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: Need help with sequence =)

25 Sep 2018, 13:48

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
User avatar
emmanuel d
Posts: 90
Joined: 17 Nov 2013, 04:45

Re: Need help with sequence =)

25 Sep 2018, 13:55

affebroman wrote:klick [X]
Do you want to close a window ore something?? :clap:
affebroman wrote:[MOUSE1]
Never seen Mouse1 before :geek:

Something like:

Code: Select all

Space Down::
	Send X
	Send {LButton down}
	Return
Space Up::
	Send {LButton up}
	Send X
	Return
affebroman
Posts: 4
Joined: 25 Sep 2018, 12:32

Re: Need help with sequence =)

26 Sep 2018, 01:00

MannyKSoSo wrote: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
Hi,

"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.
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: Need help with sequence =)

26 Sep 2018, 07:40

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.
affebroman
Posts: 4
Joined: 25 Sep 2018, 12:32

Re: Need help with sequence =)

26 Sep 2018, 09:50

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.
Can you give me an example because I don't get that to work either.
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.
affebroman
Posts: 4
Joined: 25 Sep 2018, 12:32

Re: Need help with sequence =)

26 Sep 2018, 09:57

emmanuel d wrote:
affebroman wrote:klick [X]
Do you want to close a window ore something?? :clap:
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.
affebroman wrote:[MOUSE1]
Never seen Mouse1 before :geek:
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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], RussF and 125 guests