Category: Scripting

Announcing – Macro Scheduler WebRecorder Extension – Beta

June 11, 2025 by Marcus Tettmar in Announcements, Automation, Scripting, Web/Tech

Announcing the Macro Scheduler WebRecorder Chrome Extension. Old timers will remember the WebRecorder. Well it’s back. Kinda. What is it? A Chrome browser extension that records user interactions on web pages and generates Macro Scheduler automation scripts with Chrome WebDriver commands. Beta Installation Instructions Download here: https://www.mjtnet.com/software/macro-scheduler-extension-1-5-7.zip Since this extension is in beta testing and […]

Read more »

Working with Frames in Chrome and Edge

March 6, 2020 by Marcus Tettmar in Automation, Scripting, Web/Tech

The new Chrome and Edge functions in Macro Scheduler 15 make it possible to locate frames and iframes and then manipulate elements within them. Switching Frames The ChromeSwitchFrame and EdgeSwitchFrame functions allow you to specify a frame or iframe element, by index or element reference, to switch the “browsing context” to. What this means is […]

Read more »

PrettifyScp – Code Clean Up

January 9, 2019 by Marcus Tettmar in General, Scripting

I often end up working on Macro Scheduler code that is hard to read because of a lack of indentation. Sometimes this is simply because the code has been chopped and changed so many times it’s become a bit messy and needs a bit of a clean up. And I’m not pointing fingers here either […]

Read more »

Cross Language 128 and 256 Bit AES Encryption

July 20, 2018 by Marcus Tettmar in Scripting, Web/Tech

With Macro Scheduler 14.4.10 we have added new 128 and 256 bit AES Encryption methods which interoperate well with other languages. Cross-platform/cross-language encryption/decryption can be tricky. Different text encodings, different padding formats and understanding how different algorithms derive keys and initialisation vectors can make encrypting and decrypting between one language and another a bit of […]

Read more »

Running Powershell Code From Inside Your Macros

April 4, 2018 by Marcus Tettmar in Automation, Scripting

A while back I wrote this blog post which shows you how you can have a PowerShell script run Macro Scheduler commands via the MacroScript SDK. However, what if you want to do it the other way around and run PowerShell code from inside a Macro Scheduler macro instead? One way would simply be to […]

Read more »

Get Date of Last Monday

by Marcus Tettmar in Scripting

Someone asked me the other day how to get the date of the most recent Monday.  I came up with two solutions. Get Date of Last Monday with VBScript This version works by looping the date backwards one day at a time until the weekday of that date is a Monday. //Put this VBSTART … […]

Read more »

Sending Email via Office 365

October 29, 2017 by Marcus Tettmar in Scripting

We’ve had a few questions lately about how to send email using the SMTPSendMail function via the Office 365 SMTP server. Until Macro Scheduler 14.4.02 which we have released today this wasn’t possible as explicit TLS was required and SMTPSendMail did not support it. We have now added this. So as long as you have […]

Read more »

Regular Expressions (RegEx) In Window Commands

October 3, 2017 by Marcus Tettmar in Scripting

Did you know you can use Regular Expressions inside any of Macro Scheduler‘s window functions (e.g. SetFocus, WaitWindowOpen, WaitWindowClosed) so that you can match a window title using RegEx? As an example someone recently asked us how they would match a window from an old piece of software where the window title was always the […]

Read more »

OCR Functions Anyone?

September 19, 2017 by Marcus Tettmar in Announcements, Scripting

Note: Macro Scheduler 14.4 with OCR was released in October 2017. This post was written prior to that. A sneaky peak of some new Screen OCR functions we have in development: Please note that this feature is currently in development and therefore the syntax and final implementation may differ on release.

Read more »