I'm having trouble getting my script to press down 2 buttons simultaneously for a specified time and then releasing. I'm writing a music macro for a game and some of the music notes require holding either the shift or control key to go up and down an octave.
Now here's my code that I have for the first line of the song,
Code: Select all
^j::
sleep, 100
send, ]
sleep, 50
send, {i down}
sleep, 400
send, {i up}
sleep, 300
send, {+3 down}
sleep, 400
send, {+3 up}
sleep, 400
send, +r
sleep, 650
send, +3
sleep, 500
send, +r
sleep, 350
send, +r
sleep, 400
send, +r
sleep, 400
send, +7
sleep, 400
send, +6
sleep, 400
send, +t
sleep, 250
send, +r
sleep, 400
send, +t
return
Sorry if this has already been asked before; I tried scouring google and while I found people that had similar problems, I couldn't find any solution that helps me with my own. Namely, pressing two keys such as shift+r and having them held down for a certain length of time before moving onto the next key. If anyone could show me what I'm doing wrong and what I'd need to do to edit this, I'd be super grateful!