How to disable the screen-saver when running blitz

Blitz3D Forums/Blitz3D Programming/How to disable the screen-saver when running blitz

Jin(Posted 2007) [#1]
I found the password screen-saver will cause blitz3d game crash ,is there any way to disable the screen-saver using blitz3d programming?

Thanks.


b32(Posted 2007) [#2]
Maybe you can use this VB code as a basis? It uses SystemParametersInfo, that could be called api_SystemParametersInfo in the user32.decls.
http://www.zarr.net/vb/download/codedetail.asp?code=210
I believe the IIf function is a sort of If statement and in google I found that SPI_SETSCREENSAVEACTIVE = 17


Jin(Posted 2007) [#3]
Thanks,I saw the codes ,but how to use them?


b32(Posted 2007) [#4]
Here, I translated the routine:



jfk EO-11110(Posted 2007) [#5]
This is very usefull, thanks a lot!