I am getting green with that f@#& windows events.
In a windowed screen i am using ExamineMouse() etc... I don't find a
way to say to the system that if the screen has no longer the focus
(masked by another app window), mouse control is back to the system
(releasemouse(1).
here is a summary of the code :
Code: Select all
While QUITTE = 0
EVT_WIND.l = WindowEvent()
Delay (1)
If EventWindowID() = 1 ; My window
ReleaseMouse(0)
ExamineMouse()
Select EVT_WIND
Case #PB_Event_CloseWindow
QUITTE = 1
Case blabla
EndSelect
Else
ReleaseMouse(1)
EndIf
Wend
for full screen (?)
Any idea ?????
thks



