Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Submenu horizontal position
#2
Then the submenu would cover the main menu.

This will move the mouse to the submenu when you click the first menu (the submenu item) when the submenu is already visible. Works with QM menus and all standard menus.
Function MouseToSubmenu
Trigger #L 0x1     Help - how to add the trigger to the macro
Code:
Copy      Help
int w1=win(mouse)
;outw w1
if(!wintest(w1 "" "#32768")) ret
int tid=GetWindowThreadProcessId(w1 0)
int w2=win("" "#32768" "" 0x400 F"threadId={tid}")
if(!w2 or w2=w1) ret
;outw w2
mou 0.5 0.5 w2
note: the trigger is "mouse left click, don't eat".

Or create another menu instead of submenu.

Menu Menu1
Code:
Copy      Help
aaaaaaaaaaaaaaaaaaaaa :out 1
>bbbbbbbbbbbbbbbbbbbbb
,cccccccccccccccccccccc :out 2
,dddddddddddddddddddddd :out 3
replace to
Menu Menu1
Code:
Copy      Help
aaaaaaaaaaaaaaaaaaaaa :out 1
bbbbbbbbbbbbbbbbbbbbb :mac "Menu2"
Menu Menu2
Code:
Copy      Help
cccccccccccccccccccccc :out 2
dddddddddddddddddddddd :out 3


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)