![]() |
![]() |
#1 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,411
|
Detect screen switching....IDCMP_ACTIVEWINDOW and IDCMP_INACTIVEWINDOW
Is it possible to detect when your screen is not longer the visible screen (eg the user has switched to a new screen).
I tried catching 'IDCMP_ACTIVEWINDOW and IDCMP_INACTIVEWINDOW' but they are only sent if the user actually clicks with the mouse on a different screen. ![]() |
![]() |
![]() |
#2 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,673
|
You could probably look at some fields of GfxBase or similar to get the frontmost screen. Bear in mind of course that a screen can be visible and yet not frontmost though.
Maybe screennotify.library has some useful functionality for this, I haven't investigated that possibility. |
![]() |
![]() |
#3 | |
Registered User
Join Date: Oct 2008
Location: Assemini/Italy
Age: 51
Posts: 23
|
Quote:
Bye |
|
![]() |
![]() |
#4 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,411
|
yep it looks like there's no easy way to do it via an event, oh well never mind
|
![]() |
![]() |
#5 |
Registered User
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
|
That kind of user activity is meant to be transparent to the application.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to detect WinUAE | demolition | support.Apps | 13 | 13 November 2012 11:21 |
On the fly full screen <-> full window switching | NewDeli | request.UAE Wishlist | 19 | 22 May 2010 17:40 |
issue related to screen mode switching under workbench | pbareges | support.Apps | 1 | 14 March 2007 15:08 |
'detect pixel format' | Melroc | support.WinUAE | 2 | 09 December 2003 16:03 |
|
|