Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use windows screensaver to launch QM code
#4
Hi Ron,

I've followed your steps and create the appropriate files.
But when executed I've got the following error:
"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."

Here is the code for both Pre and Post macros:

Function _ss_main
Code:
Copy      Help
run "D:\P\QM\qmcl.exe" "M ''{0e424eda-f484-425a-86cf-11da91c92761}_ss_tasks_pre''"
run "C:\Windows\System32\Ribbons.scr" "/s"
run "D:\P\QM\qmcl.exe" "M ''{887485a4-ff93-4f3d-af0f-02f6f0604ccd}_ss_tasks_post''"

;BEGIN PROJECT
;main_function  _ss_main
;exe_file  d:\3\_ss_main.exe
;icon  <default>
;manifest  $qm$\default.exe.manifest
;flags  6
;guid  {10DA3A0E-1A6C-4D59-8851-48353D362671}
;END PROJECT

Function _ss_tasks_pre
Code:
Copy      Help
run "C:\Windows\System32\mspaint.exe"

Function _ss_tasks_post
Code:
Copy      Help
run "C:\Windows\System32\notepad.exe"

Function Activate_ScreenSaver
Code:
Copy      Help
str timeout="60"  ;; 1 min idle before SS starts.
rset(timeout "ScreenSaveTimeOut" "Control Panel\Desktop" HKEY_CURRENT_USER)
str screensave_path="D:\3\_ss_main.scr"
rset(screensave_path "SCRNSAVE.EXE" "Control Panel\Desktop" HKEY_CURRENT_USER)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)