Screen Saver Suppression
BlitzPlus Forums/BlitzPlus Beginners Area/Screen Saver Suppression
| ||
Does anyone know if it's possible to suppress the Screen Saver when playing a game with a Joypad in a Window? I can't believe that Microsoft haven't sorted this problem. I have considered having a setting in the options screen that warns the user that their screen-blanker is due to appear, so that they can press a key - but it seems a bit silly. Thanks in anticipation. |
| ||
I tried this in blitz3d, but I think it can be used with b+, too: http://www.blitzbasic.com/Community/posts.php?topic=67312 |
| ||
Aren't you returning before freeing the bank in that function? |
| ||
Yes, you are right Gabriel, updated the code. |
| ||
Thanks - I'll have a look - but I'm not using B+ any more - I've gone back to B2D. |
| ||
btw - I tried using mousemove() - but it didn't work, obviously :) I've put an option in the settings so that an icon appears to warn the user that the screensaver is due, and they should press the key that they chose in the settings screen. Not - ideal, but at least I can play without it interfering now. |
| ||
I've just found a function in the User Input area of the Code Archives which suggests using MoveMouse - but I swear this didn't work when I tried it - I'll have to try it again. |
| ||
Is there a CallDLL function in B2D ? If there is, you could try calling the "SystemParametersInfoA" with that command. |
| ||
I tried the MouseMove() thing again, but it definitely doesn't work. Yes I think there is a callDLL function - just never used it. What would SystemParametersInfoA actually do? Thanks |
| ||
You can use it to disable and enable the screensaver |