Screensaver

Hi

Is it possible to start screensaver from application
(from C-source code) by some function ?

I know that it is possible from “Photon Desktop Manager Configuration”.

I use Photon 1.14C


Esa

Previously, Esa Heikkinen wrote in comp.os.qnx:

Hi

Is it possible to start screensaver from application
(from C-source code) by some function ?

I know that it is possible from “Photon Desktop Manager Configuration”.

I use Photon 1.14C


Esa

I have implemented a screen saver in C for my application. My application does not use pdm and pwm, so I’ve had to do things the hard way.

I created a transparent region in front of my app that would sense every mouse click. When a click is detected, the code resets a timer. This timer controls the screensaver; if the timer expires then the screen saver is activated. This is all done in a single process.

If this sounds like it may be useful to you, I can post the code.

  • Pete

Pete DiMarco wrote in message …

Previously, Esa Heikkinen wrote in comp.os.qnx:
Hi

Is it possible to start screensaver from application
(from C-source code) by some function ?

I know that it is possible from “Photon Desktop Manager Configuration”.

I use Photon 1.14C


Esa

I have implemented a screen saver in C for my application. My
application does not use pdm and pwm, so I’ve had to do things the hard way.

I created a transparent region in front of my app that would sense every
mouse click. When a click is detected, the code resets a timer. This timer

controls the screensaver; if the timer expires then the screen saver is
activated. This is all done in a single process.

If this sounds like it may be useful to you, I can post the code.

  • Pete

I forgot to say, that my application does not use mouse or nothing
input devices at all.
My application is “monitor”-software, which only dislays data.

This application should start and also stop screensaver from
“C-source”…

\

Esa

I forgot to say, that my application does not use mouse or nothing
input devices at all.
My application is “monitor”-software, which only dislays data.

If there is no user input, then what deactivates the screensaver so
the user can see the data?

Lee R. Copp wrote in message <9mjfjn$86n$1@inn.qnx.com>…

I forgot to say, that my application does not use mouse or nothing
input devices at all.
My application is “monitor”-software, which only dislays data.

If there is no user input, then what deactivates the screensaver so
the user can see the data?

Software decides when is time to do that …
(Time is for example at night)
This software is running 24 hours per day …

\

Esa

Hi Esa

It sounds like what you need is a cover screen that is not necessarily a
screen saver. I.E. you don’t need the auto-start/auto-terminate feature of
a screen saver.

Therefore your program coud just 1) pop up a new window in front of
everythng else and destroy the window when appropriate. Or 2) spawn a new
program that is the new window and kill that program when appropriate.

Bill Caroselli


“Esa Heikkinen” <esa.heikkinen@insta.fi> wrote in message
news:9mkq2s$2q1$1@inn.qnx.com

Lee R. Copp wrote in message <9mjfjn$86n$> 1@inn.qnx.com> >…
I forgot to say, that my application does not use mouse or nothing
input devices at all.
My application is “monitor”-software, which only dislays data.

If there is no user input, then what deactivates the screensaver so
the user can see the data?



Software decides when is time to do that …
(Time is for example at night)
This software is running 24 hours per day …

\

Esa
\