How to disable the screen-saver when running blitz
Blitz3D Forums/Blitz3D Programming/How to disable the screen-saver when running blitz
| ||
I found the password screen-saver will cause blitz3d game crash ,is there any way to disable the screen-saver using blitz3d programming? Thanks. |
| ||
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 |
| ||
Thanks,I saw the codes ,but how to use them? |
| ||
Here, I translated the routine: |
| ||
This is very usefull, thanks a lot! |