12-16-2022, 06:11 AM
I have been using this code to call the screen saver and blank the windows screen:
But for some reason it stopped working!?
Does anyone know of a screen saver function call that actually works?
Thanks, Erik.
But for some reason it stopped working!?
Does anyone know of a screen saver function call that actually works?
Thanks, Erik.
Code: (Select All)
' declare external libraries.
Declare Dynamic Library "user32"
Function SendMessageA%& (ByVal hWnd%&, Byval Msg~&, Byval wParam~%&, Byval lParam%&)
End Declare
' declare screen saver call constants
Const wm_syscommand = &H112&
Const sc_screensave = &HF140&
Sleep 2
s%& = SendMessageA(&HFFFF&, wm_syscommand, sc_screensave, 0&)