d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Easy Script Help?
Add Reply New Topic New Poll
Member
Posts: 27,782
Joined: Dec 19 2011
Gold: 3,012.50
Mar 7 2014 08:44pm
Never scripted before, but i'm sure it's easy for you pro scripters.

What I am trying to do is if I hold my Q button, I want it to spam 1 key, while the other key is "pressed down all the time"

This is what I got so far, but this just spams f3 and f4 when i press Q.
I want it to have f3 pressed down all the time, while f4 spams when as long as i press down the Q button.

$Q::
freq:=30
Send {F3}
Sleep %freq%
Send {F4}
Sleep %freq%
return

I'm not sure if im making sense lol
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Mar 7 2014 10:59pm
this topic is taboo here, (yes ridiculous i know).... but cough cough....

Send {a down}

Send {a up}
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll