Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

auto fire timer help thing


  • Please log in to reply
No replies to this topic
muttlydog
  • Members
  • 7 posts
  • Last active: Feb 19 2014 08:48 PM
  • Joined: 18 Feb 2014
so im trying to make a script that fires off two seperate keys on different sleep times while holding down a certain key.the thing ive got closest to what i want is this 
s::
if GetKeyState("s", "p")
{
SetTimer, Loop1, 3000
SetTimer, Loop2, 15000
TimerEnabled := True
}
Else
{
SetTimer, Loop1, Off
SetTimer, Loop2, Off
TimerEnabled := False
}
return
Loop1:
Send i
return

Loop2:
Send 0
return
but this only starts the code i van also use toggle to get it to toggle on and off but i just cant figure out how to get it to work only while a key is being prssed