Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Macro can do this?
#1
Can I make Quick Macro make it so when I press F10 it presses F9, and when I release F10, it presses F8.

I know this isn't perfect QM grammar, but the idea of:

key f9
loop
ifk(f10) goto loop
key f8

...bound to F10 as the macro launch key doesn't work right cuz if you hold down F10 for over a second the loop generates crazy lag on the system.
#2
Code:
Copy      Help
key F9
ifk(F10) wait 10 K F10
key F8

Your code also is good, but some small wait time must be added

ifk(f10) 0.01; goto loop
#3
But it's very time sensative. Waiting 10 would mess it up...

I also get wait timeout with that ;(


Attached Files Image(s)
       
#4
wait ends immediately when key is released, not after 10 s. If F10 is pressed for longer time, replace 10 to 0, which means wait indefinitely.


Attached Files Image(s)
   
#5
Program is worth every dollar.
#6
Gint,

Sorry - I won't leech off you much Wink

Given our above example,

how can we change the outcome to do this English:

if key f9 but f10 is also pressed, do this


Attached Files Image(s)
   
#7
If F9 and F10 are pressed:
Code:
Copy      Help
int a=1
ifk-(F9) a=0; else ifk-(F10) a=0
if a
,out "do this"


Forum Jump:


Users browsing this thread: 1 Guest(s)