Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How get CTL+ALT+Wheel f/b to work without taking off finger?
#1
I am resending this question as a separate thread; maybe it got lost when I sent it as part of the previous old thread.

Hi Gintaras! remember me?!

Well I have finally got around to actually using the Freehand zooming utility you helped me to write. So one issue has come up:

Your code helped write a macro that allows me to perform repeated macro calls with the CTL key held down without having to release it between each operation.

s.setsel(0 handle)
SendMessage(handle WM_KEYDOWN VK_RETURN 0)

So I can do a repeated CTL+Wheel F/B without ever releasing the Control button. However, if I modify the Control button using a SHIFT or ALT then I get back to the same situation, i.e., I first have to release the modifier button in order to get QM to recognize the next mouse wheel action. If I do not release the button, then only the CTL is recognized and the macro servicing CTL+Wheel is invoked.

So, again, how do I get CTL+ALT Wheel to work continuously without taking my finger off the ALT button?

tia

Avraham
#2
consecutively trigger macro's without releasing modifier key
An old blog on QM coding and automation.

The Macro Hook
#3
ken gray Wrote:http://www.quickmacros.com/forum/viewtopic.php?p=2780

Ok, so can't do that yet.

But your idea looks a good idea, Ken:

rep 100000
,ifk(q)
,,mac "the second macro here"
,,end
,0.00001

(What is the ,0.00001 at the end?)

At the end of every macro I could repeat calling the essential part of the function in a loop abnd halting only when the control keys (CTL+ALT) are released.

Eg (this is pseudfo code)

Macro:

<action>

while (CTL and ALT pressed) {

call <action>

}
#4
the .00001 will force the macro to pause a bit before going on.
An old blog on QM coding and automation.

The Macro Hook
#5
ken gray Wrote:the .00001 will force the macro to pause a bit before going on.

1. How will it do that? I.e., what is this command. Is it a delay time. Or just a print command? Or what?

2. Why should you delay?
#6
this topic will explain it better but it's basically tells it to wait for so many seconds.
http://www.quickmacros.com/help/Commands/IDP_WAIT.html

just to keep it from running full tilt and end too quickly.



_____________
500th Post....WOOT! :roll:
An old blog on QM coding and automation.

The Macro Hook
#7
Thanks,

avraham


ken gray Wrote:this topic will explain it better but it's basically tells it to wait for so many seconds.
http://www.quickmacros.com/help/Commands/IDP_WAIT.html

just to keep it from running full tilt and end too quickly.



_____________
500th Post....WOOT! :roll:


Forum Jump:


Users browsing this thread: 1 Guest(s)