Page 1 of 1

invoke default windows screen saver

Posted: Wed Dec 05, 2007 10:24 am
by rjara
Hi All,

I searched the purebasic forums but i'm not able to find an example.

How would I invoke the default screen saver from with purebasic?

Regards
rjara

Re: invoke default windows screen saver

Posted: Wed Dec 05, 2007 10:28 am
by PB

Code: Select all

SendMessage_(FindWindow_("ProgMan",0),#WM_SYSCOMMAND,#SC_SCREENSAVE,0)

Posted: Wed Dec 05, 2007 11:20 am
by rjara
Aha, thanks for that. I love this place people are very helpful...

Posted: Wed Dec 05, 2007 11:38 am
by Fluid Byte
How cool is that? Thanks! :shock:

PS: You can replace

Code: Select all

FindWindow_("ProgMan",0)
with

Code: Select all

GetShellWindow_()