Quick Peek for Six Siege

Ask gaming related questions (AHK v1.1 and older)
playlove1999
Posts: 1
Joined: 27 Feb 2018, 05:19

Quick Peek for Six Siege

27 Feb 2018, 05:22

I want to do quick peeks ingame so for that i need to press Q>E in order to peek faster than normal...

What would be script for like:

When i press Q it results in

Q(input)>10 milliseconds gap>E(press only not hold)

When i press E it results in
E(Input) > 10 milliseconds gap>Q(press only not hold)

This way When i press Q/E It peeks at designated side but immidiately after 10 millisecond gap it presses opposite peek direction E/Q

Anyone who plays six siege and is aware of "Beaulo peek/Quick peek" will know what i mean to say. :D
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: peek script

28 Feb 2018, 10:25

Code: Select all

Q::
Send, Q
Sleep, 10
Send, E
return

E::
Send, E
Sleep, 10
Send, Q
return
:wtf:
I am your average ahk newbie. Just.. a tat more cute. ;)
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: peek script

28 Feb 2018, 13:08

Code: Select all

Q::	; <-- When E:: does Send {q}, this gets triggered
Send, Q
Sleep, 10
Send, E    ; <-- Triggers E::, which triggers Q::, causing infinite loop
return
This causes an infinite loop. Use $Q::
Also, don't use Send Q, as what you are ACTUALLY saying is "Send SHIFT + q", because Q is upper-case. Q:: is NOT affected by this (it will still fire if shift is not held)
Finally, you probably want this combo to also work if you are holding a modifier (eg you are in creep mode because CTRL is held), so you also probably want to prefix the hotkey with * and use "Blind" send mode

You want:

Code: Select all

; ~ = PASS-THROUGH (game sees original press)
; $ stops infinite loop
; * allows modifiers
*$~Q::	; <--- Is pass-through, so no need to send Q, as the game will see the original keypress
	Sleep 10
	Send {Blind}{e} ; {Blind} tells AHK "If a modifier is held when I send this key, DO NOT release the modifier, just send the key"
	return

*$~E::
	Sleep 10
	Send {Blind}{q}
	return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 32 guests