Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Problem with IntControl 57 system keys
;Disable system keys IntControl(57,1,0,0,0) pw = AskPassword("Security check", "Please enter your password")
; Disable the ScreenSaver if there is one REGKEY=RegOpenKey(@REGCURRENT,"Control Panel\Desktop") ;SAVER = The name of the screensaver they were using in case ;you want to store it in an INI file to set back again after you're ;all done... SAVER = "NONE" If RegExistValue(REGKEY,"[SCRNSAVE.EXE]") Then SAVER = RegQueryValue(REGKEY,"[SCRNSAVE.EXE]") RegDelValue(REGKEY,"[SCRNSAVE.EXE]") RegSetValue(REGKEY,"[ScreenSaveActive]","0") IntControl(59, -1, "", 0, 0) End If ;Disable system keys IntControl(57,1,0,0,0) pw = AskPassword("Security check", "Please enter your password")OR
You could launch a second script the could check if a screen saver gets activated and if one does it can check when it is no loger running and re-attempt disabling the system keys.
;MAIN.WBT ;-------- IniWritePvt("Main","done","0","C:\Windows\desktop\screenchecker.ini") ;Disable system keys IntControl(57,1,0,0,0) ;launch screen saver checker script run("C:\program files\winbatch\system\winbatch.exe","C:\Windows\desktop\screenchecker.wbt") pw = AskPassword("Security check", "Please enter your password") ;set flag IniWritePvt("Main","done","1","C:\Windows\desktop\screenchecker.ini") ;SCREENCHECKER.WBT ;----------------- ;To test if it gets activated.... ;To get the screen saver exe name (it will be a *.scr file, as in screensaver.scr) do... a=IniReadPvt("Boot","SCRNSAVE.EXE","NONE","SYSTEM.INI") While @True ret=IniReadPvt("Main","done","xxx","C:\Windows\desktop\screenchecker.ini") if ret == 1 then break if !AppExist(a) then IntControl(57,1,0,0,0) EndWhile ;SCREENCHECKER.INI ;----------------- [main] done=0
Article ID: W14254Filename: Problem with IntControl 57.txtFile Created: 1999:10:26:11:22:50Last Updated: 1999:10:26:11:22:50