I would try PeekEvent() first and if it doesn't work you could move on to the user32 PeekMessage function. You'll need to make a MSG and POINTAPI struct for the first param so decent userlib knowledge is nessecary.
Structs are Types in BB so it would go like this
VB Code
Structs are Types in BB so it would go like this
VB Code
Private Type POINTAPI x As Long y As Long End Type Private Type Msg hWnd As Long Message As Long wParam As Long lParam As Long time As Long pt As POINTAPI End TypeBB type
Type POINTAPI Field x%,y% End TypeTo use a type for a param you would declare it as MSG* in the userlib.
.lib "user32.dll" PeekMessage%(MSG*, hwnd%, wMsgFilterMin%, wMsgFilterMax%, wRemoveMsg%):"PeekMessageA"The line pt As POINTAPI might give you trouble in the MSG type declare, maybe someone knows how to get around that.