Code: Select all
Onmessage(0x205,"WM_RBUTTONUP")
GUI, new, +hwndGUI_hwnd
Gui, Add, Button, x100 y100 gOk, OK
WinMove, ahk_id%GUI_hwnd%, ,300 , 300, 200, 200
Gui show
return
WM_RBUTTONUP(wparam,Lparam,msg,GUI_hwnd)
{
Rstate := GetKeyState("RButton")
msgbox % "Right MouseUp: Rstate " Rstate
ExitAPP
}
Ok:
ExitAPP
It isn't a bug, but AFAIK goes back all the way to the Windows 3.1 implementation of right button for properties in shell. The "previous state" is remembered for the left, but not for the other buttons.