PDA

View Full Version : Application take over display


Marcelo
December 5th 03, 08:10 PM
Hi!

My last message didn't really explained what I am needing, either way
I appreciate the response. What I need is a way to have an application
to take over the display. This application would be part a Lan House
management software. It would take over the display informing the user
that his pre-paid time is finished and give him the option to add more
time to his account or logout. If he decides to add more time he
clicks the button, and enters his password, after this the app would
quit and the user would continue to do what he was doing befor
(probably playing).

I first wanted to implement this app as an screen saver that would be
initiated programmatically after the pre-paid time expiration. This
doesn't work on Windows XP when running a computer game. I believe it
is due to:

""Windows does not start the screen saver if any of the following
conditions exist:
a-The active application is not a Windows-based application
b-A computer-based training (CBT) window is present
c-The active application receives the WM_SYSCOMMAND message with the
wParam parameter set to the SC_SCREENSAVE value, but it does not pass
the message to the DefWindowProc function.""

With my previous not clear message I was suggested to use the Windows
API LockWorkstation. This function basically calls the usual windows
lock screen (that is not what I need), unless I can trick windows to
instead call my own app.

I know somehow it's possible to do what I need, I just don't know how.
Thank you in advance for any help.
Marcelo.

purplehaz03
December 5th 03, 08:10 PM
Did you try searching google.com? I found this, it might work for your
situation. I actually downloaded it to give it a try, looks very useful.
It's called PowerOff 3.0.0.16
http://users.pandora.be/jbosman/applications.html
(scroll down a bit to see it)


"Marcelo" > wrote in message
om...
> Hi!
>
> My last message didn't really explained what I am needing, either way
> I appreciate the response. What I need is a way to have an application
> to take over the display. This application would be part a Lan House
> management software. It would take over the display informing the user
> that his pre-paid time is finished and give him the option to add more
> time to his account or logout. If he decides to add more time he
> clicks the button, and enters his password, after this the app would
> quit and the user would continue to do what he was doing befor
> (probably playing).
>
> I first wanted to implement this app as an screen saver that would be
> initiated programmatically after the pre-paid time expiration. This
> doesn't work on Windows XP when running a computer game. I believe it
> is due to:
>
> ""Windows does not start the screen saver if any of the following
> conditions exist:
> a-The active application is not a Windows-based application
> b-A computer-based training (CBT) window is present
> c-The active application receives the WM_SYSCOMMAND message with the
> wParam parameter set to the SC_SCREENSAVE value, but it does not pass
> the message to the DefWindowProc function.""
>
> With my previous not clear message I was suggested to use the Windows
> API LockWorkstation. This function basically calls the usual windows
> lock screen (that is not what I need), unless I can trick windows to
> instead call my own app.
>
> I know somehow it's possible to do what I need, I just don't know how.
> Thank you in advance for any help.
> Marcelo.

Google