Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key combination with Key(#X)?
#1
Is there a simple/easy way to do a key combination with the 'Key(#X) method?
Sometimes i need to use 'F2Y a few thousand times and waiting 10 times as long is a real drag.

When using this, I get about 10 reps per second
Code:
Select All      Help
rep(100) 'F2Y

but something like this gives 100+ reps per second.
Code:
Select All      Help
'Y(#100)

This will key F2 once, then key Y 100 times.
Code:
Select All      Help
'F2Y(#100)


I have tried a few other things with no real simple solution.
Creating a string, concatenating it with the number of reps, then executing, works but is less elegant than i would like.
Code:
Select All      Help
'YYYYYYYYYYYYYYYYY...


Thanks for the input.
#2
This is the fastest, faster than key a(#100), but can be unreliable (too fast):

spe; opt keysync 1
rep(100) key a

Slower and more reliable:

spe
rep(100) key a

If still too fast, use this:

spe 1 ;;if too fast, try 2...
rep(100) key a

Then restore the speed if need:
spe 100
#3
Worked like a charm!
i totally forgot about speed changes.
Thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)