Jump to content
Macro Express Forums

Multiple Keypressing


Mstiny

Recommended Posts

simply put, i want to be able to have a "key" depressed for a certain time, in a loop of time

 

for 10 secs

press w

then

press another key

 

when i tried, i got it to press once. Like when i press the 't' key, it repeats, but in programing you could do a

 

repeat 300

keypress t

end repeat

but that makes it pressed 300 times, and i dont reallyu want it to be like that...its more like i need it to be held down for 30 secs at a time,

if anyone understands, or knows how to do so, i would appreciate the help!

Mstiny

Link to comment
Share on other sites

You could set up a repeat loop that checks the system clock. It might look something like this:

 

Variable Set Integer %N1% from current second
If Variable %T1% < "30"
 Variable Modify Integer: %N2% = %N1% + 30
Else
 Variable Modify Integer: %N2% = %N1% - 30
End If
Repeat Until %N3% = %N2%
 Text Type: t
 Variable Integer %N3% from Current Second
Repeat End

 

This checks the system clock and then repeatedly presses the 't' key for 30 seconds.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...