Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / deactivate screensaver

Author
Message
Esther
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 21st Mar 2008 00:33
Hi there..
I was wondering if there is a way to disable the screensaver in darkbasic. I mostly use a joypad for my own games but after a few minutes the screensaver kicks in. then I have to touch the keyboard or move the mouse to get my game back.

surely there must be a way to do fool the system into thinking that someone has touched a keyboard or a mouse.

Es.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 21st Mar 2008 10:39 Edited at: 21st Mar 2008 10:40
That would be the long way around that fence. Try this instead:

Esther
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 23rd Mar 2008 23:43
thanks, i'll try that.

Although it seems odd to me to have a function call and an "end" command after a loop instruction.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th Mar 2008 00:00
The code is a little misleading. Basically, you need to make sure that you reset the screensaver setting before you exit your program, as it's a system-wide setting - something like this:


Esther
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 27th Mar 2008 23:46
I already figured that out
and the code works fine. thanks for your help.

Login to post a reply

Server time is: 2024-11-25 05:10:37
Your offset time is: 2024-11-25 05:10:37