Second right-click menu

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
d1niel84
Posts: 51
Joined: 20 Oct 2019, 12:28
Location: Germany

Second right-click menu

11 Apr 2023, 05:36

Hi,
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?

Image

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot] and 255 guests