If I press the right mouse button longer than 300ms, the alternative menu opens. The original right-click behavior remains the same. (click and drag&drop)
But if the menu on the desktop opens upwards, the normal right-click menu is opened. Thats strange....
I tried to move the mouse 1px because this fix the menu problem. But the Menu function is like WinWait and only go to the next line if i close the menu.
Has anyone a solution?
Code: Select all
RButton::
MouseGetPos, xpos1
KeyWait, RButton, T0.3
MouseGetPos, xpos2
If !ErrorLevel || xpos1 != xpos2 {
Click, R D
KeyWait, RButton
Click, R U
} Else {
Menu, SecondMenu, Add, Option 1, ExitApp
Menu, SecondMenu, Add, Option 2, ExitApp
Menu, SecondMenu, Add, Option 3, ExitApp
Menu, SecondMenu, Add, Option 4, ExitApp
Menu, SecondMenu, Show
; MouseMove, 1, -1 ,0,R
}
Return
ExitApp:
ExitApp
Return