Calling Macro Scheduler Functions from PowerShell
Further to my post about the MacroScript SDK the other day, here’s an example of loading the MacroScript SDK COM object from PowerShell and running some Macro Scheduler code: $objMS = new-object -comobject “mscript.macroscript” $objMS.Init() $objMS.RunCode( “Run>notepad.exe” + [Environment]::NewLine + “WaitWindowOpen>Untitled – Notepad” + [Environment]::NewLine + “Wait>0.5” + [Environment]::NewLine + “Send>Hello World”, “”) $objMS.Cleanup() You […]