01-14-2015, 11:07 AM
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
note: the trigger is "mouse left click, don't eat".
Or create another menu instead of submenu.
Menu Menu1
replace to
Menu Menu1
Menu Menu2
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

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 w2Or create another menu instead of submenu.
Menu Menu1
aaaaaaaaaaaaaaaaaaaaa :out 1
>bbbbbbbbbbbbbbbbbbbbb
,cccccccccccccccccccccc :out 2
,dddddddddddddddddddddd :out 3Menu Menu1
Menu Menu2
