Mstiny Posted February 12, 2006 Report Share Posted February 12, 2006 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 Quote Link to comment Share on other sites More sharing options...
lemming Posted February 13, 2006 Report Share Posted February 13, 2006 When you hold down a regular key (i.e. one which is not a Shift, Ctrl, Atl or Windows key), it is actually being repeated many times a second. So your repeat code would be one way of doing it. You should also look up the Keystroke Speed command to adjust the repeat speed. Quote Link to comment Share on other sites More sharing options...
jason Posted February 14, 2006 Report Share Posted February 14, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.