invoke default windows screen saver

Just starting out? Need help? Post your questions and find answers here.
rjara
User
User
Posts: 14
Joined: Wed May 23, 2007 5:17 pm

invoke default windows screen saver

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: invoke default windows screen saver

Post by PB »

Code: Select all

SendMessage_(FindWindow_("ProgMan",0),#WM_SYSCOMMAND,#SC_SCREENSAVE,0)
rjara
User
User
Posts: 14
Joined: Wed May 23, 2007 5:17 pm

Post by rjara »

Aha, thanks for that. I love this place people are very helpful...
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

How cool is that? Thanks! :shock:

PS: You can replace

Code: Select all

FindWindow_("ProgMan",0)
with

Code: Select all

GetShellWindow_()
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Post Reply