Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] mouse click not working quickmacros 2.4.3
#1
Hi,

I've never had this problem before so I suspect it's a glitch.

Mouse left click doesn't work reliably. Sometimes it does. Sometimes it doesn't. Am I doing something wrong?

Here's the code to just open the get accessible object menu. This worked before I upgraded to 2.4.3. The version I was using was downloaded just a 2 weeks ago.

Macro quickmacros - get accessible object
Trigger #AR     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win("" "QM_Editor")
act w


spe 1000

#region Recorded 9/15/2015 12:06:19 AM
int w1=win("QM TOOLBAR" "QM_toolbar")
lef 106 10 w1 1 ;;tool bar, push button 'Windows, controls'
lef 75 77 wait(15 WV win("" "#32768")) 1 ;;menu item
;men 5 win("" "QM_menu") ;;
int w2=wait(15 win("Find accessible object" "#32770"))
rig 25 18 w2 1 ;;graphic

int w3=win("" "#32768")
wait 15 WV w3

lef 92 8 w3 1 ;;menu item 'Capture with Shift key'
;men 102 w2 ;;Capture with Shift key
#endregion

Thanks for reading.
#2
It is a bug in QM 2.4.3.3: lef tries to activate the window before click, but activating a popup menu window closes the menu.
Will be fixed soon, in QM 2.4.3.4. As a workaround, add flag 2:
Macro quickmacros - get accessible object
Trigger #AR     Help - how to add the trigger to the macro
Code:
Copy      Help
int w=win("" "QM_Editor")
act w


spe 1000

#region Recorded 9/15/2015 12:06:19 AM
int w1=win("QM TOOLBAR" "QM_toolbar")
lef 106 10 w1 1 ;;tool bar, push button 'Windows, controls'
lef 75 77 wait(15 WV win("" "#32768")) 1|2 ;;menu item
;men 5 win("" "QM_menu") ;;
int w2=wait(15 win("Find accessible object" "#32770"))
rig 25 18 w2 1 ;;graphic

int w3=win("" "#32768")
wait 15 WV w3

lef 92 8 w3 1|2 ;;menu item 'Capture with Shift key'
;men 102 w2 ;;Capture with Shift key
#endregion
#3
Thanks, Gintaras!


Forum Jump:


Users browsing this thread: 1 Guest(s)