Trouble With Making Timer Script Topic is solved

Ask gaming related questions (AHK v1.1 and older)
GordonPleaseSaveMe

Trouble With Making Timer Script  Topic is solved

07 Feb 2018, 03:29

I was trying to create a script which held down e for about 10 seconds and then stopped.

im quite new to ahk so ive been having alot of troubles.
so far i was able to make it hold e but every type of timer i use dosent seem to stop it.

This is what i have so far:

#maxthreadsperhotkey 2
^e::
toggle:=!toggle
while, toggle
Send {e down}

settimer, loop , 500

loop:
{
return
}

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

Re: Trouble With Making Timer Script

08 Feb 2018, 09:37

Hallo,
try:

Code: Select all

^e::
	Send {e down}
	SetTimer, E_up, -10000
Return
E_up:
	Send {e up}
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: yuu453 and 68 guests