|
| Re: Other running third party applications |
 |
Fri, 28 Dec 2007 11:09:46 +000 |
Axel H wrote:
> Hi Guys,
>
> I need to detect when or if users are running a full screen application eg:
> old DOS game etc when running a superbase 2 application. Even obtaining a
> list of current active programs would be enough to achieve some sort of
> control. Just wondering if anyone has tried this before or if its even
> possible.
Have a look at GetWindow() (I think that is the name of the API call).
That will help you to walk the list of windows that are open (stick to
top-level windows). You can use another call to retrieve the text from
the window, (or the title).
> Also, is there a way to trap the closing of a superbase application using
> the Alt F4 or "X" so a closing sequence can be initiated?
Difficult. There was some sort of trick for this (I think it was in an
older copy of SuperBoxes), but basically this was one of the advantages
of moving to the 3.x series.
> Happy & Prosperous New Year to you all.
And to you!
Ciao, Neil
|
| Post Reply
|
| Other running third party applications |
 |
Fri, 28 Dec 2007 13:34:56 +100 |
Hi Guys,
I need to detect when or if users are running a full screen application eg:
old DOS game etc when running a superbase 2 application. Even obtaining a
list of current active programs would be enough to achieve some sort of
control. Just wondering if anyone has tried this before or if its even
possible.
Also, is there a way to trap the closing of a superbase application using
the Alt F4 or "X" so a closing sequence can be initiated?
Happy & Prosperous New Year to you all.
--
Kind Regards
Axel H
|
| Post Reply
|
| Re: Other running third party applications |
 |
Sun, 30 Dec 2007 14:41:01 +100 |
Thanks Neil
GetActiveWindow() is the API call I need as i only need to know the active
application. Thanks for triggering my aging memory :)
I remember I did have a routine in one program which disabled the
CloseWindow() API. For the life of me I can't remember how i did it. Maybe
after a few "new years eve drinks" it may come back to me ;).
--
Kind Regards
Axel Hahnheuser
"Neil Robinson" <neil@simpol.com> wrote in message
news:fl2lin$pfm$1@ipx22096.ipxserver.de...
> Axel H wrote:
>> Hi Guys,
>>
>> I need to detect when or if users are running a full screen application
>> eg:
>> old DOS game etc when running a superbase 2 application. Even
obtaining
>> a
>> list of current active programs would be enough to achieve some sort
of
>> control. Just wondering if anyone has tried this before or if its
even
>> possible.
>
> Have a look at GetWindow() (I think that is the name of the API call).
> That will help you to walk the list of windows that are open (stick to
> top-level windows). You can use another call to retrieve the text from
> the window, (or the title).
>
>> Also, is there a way to trap the closing of a superbase application
using
>> the Alt F4 or "X" so a closing sequence can be initiated?
>
> Difficult. There was some sort of trick for this (I think it was in an
> older copy of SuperBoxes), but basically this was one of the advantages
> of moving to the 3.x series.
>
>> Happy & Prosperous New Year to you all.
>
> And to you!
>
> Ciao, Neil
>
|
| Post Reply
|
|
|
|
|
|
|
|
|
|