Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run macro after reboot
#3
Here is how a macro can tell Windows to run another macro when Windows starts next time:
Macro
Code:
Copy      Help
;set registry value that tells Windows to run QM and macro "macro x" when Windows starts
rset "qmcl.exe M ''Macro x''" "QM - macro x" "Software\Microsoft\Windows\CurrentVersion\Run"

In macro x insert this at the beginning:
Macro
Code:
Copy      Help
if(!rget(_s "QM - macro x" "Software\Microsoft\Windows\CurrentVersion\Run")) ret ;;don't run accidentally if not set
rset "" "QM - macro x" "Software\Microsoft\Windows\CurrentVersion\Run" 0 -1 ;;delete the value


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)