i need help script

Ask gaming related questions (AHK v1.1 and older)
juanll2002
Posts: 9
Joined: 29 Sep 2022, 03:49

i need help script

Post by juanll2002 » 11 Oct 2022, 23:01

how do i put a timer and then press shift and up key and press d and again press shitf and down key.
I would like to add it to this script tranks

Code: Select all

#UseHook On

x::
KeyWait x
n := TRUE
While (n)
{
    Send {a down} 
    Sleep  50
    Send {a up}
    sleep 50
    Send {pdn}
    Send  {left down}
    Sleep  50	
    Send  {left up}
    send  {s}
    sleep 200
    Send {PgDn}
   
}
Return

3:: n := FALSE
[Mod edit: [code][/code] tags added.]
Last edited by gregster on 11 Oct 2022, 23:04, edited 1 time in total.
Reason: Topic moved from 'Scripts and Functions'. Please use a more descriptive topic name. Thank you!

Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: i need help script

Post by Rohwedder » 12 Oct 2022, 01:04

Hallo,
perhaps???:

Code: Select all

#UseHook On
x::
KeyWait x
n := TRUE
SetTimer, Timer, 200 ;every 200ms
While (n)
{
	Send {a down}
	Sleep  50
	Send {a up}
	sleep 50
	Send {pdn} ; ???
	Send  {left down}
	Sleep  50
	Send  {left up}
	send  {s}
	sleep 200
	Send {PgDn}
}
Return
3::
n := FALSE
SetTimer, Timer, Off
Return
Timer:
Send +{Up}
Sleep  50
Send d
Sleep  50
Send +{Down}
Return

Post Reply

Return to “Gaming Help (v1)”