Category: Scripting

Getting into the Zone

April 18, 2012 by Marcus Tettmar in Scripting

Over on the forums JRL asks how to get into the “Programming Zone” and once there how do you stay in it and cope with distractions and interruptions? Any tips? Add your thoughts and suggestions to the topic.

Read more »

Sending Keys to Invisible or Unfocused Windows

March 27, 2012 by Marcus Tettmar in Automation, Scripting

Can you send keystrokes to invisible or unfocused windows? The answer is yes, if the control you want to send the keystrokes into is a “windowed control”. That is, one that has a handle. If that’s too technical just try using the “Send Keys to Object Wizard” in Macro Scheduler 13 which generates code that […]

Read more »

How long does xyz take?

February 3, 2012 by Marcus Tettmar in Scripting

Need to measure how long a process or a set of commands in your script takes? We used to have to do this with VBScript’s Timer function. As of v13 Macro Scheduler has it’s own Timer function. Timer>result Returns the number of milliseconds that have elapsed since the script was started. So let’s say we […]

Read more »

Get Internet IP Address

June 29, 2011 by Marcus Tettmar in Scripting

If you are connected to the Internet here’s an easy way of getting your public IP address by visiting checkip.dyndns.org: HTTPRequest>http://checkip.dyndns.org/,,GET,,HTMLResponse RegEx>[IPAddress],HTMLResponse,1,ips,num_ips,0 If>num_ips>0 MessageModal>Your IP is %ips_1% Else MessageModal>Error retrieving IP from checkip.dyndns.org Endif

Read more »

Calling Macro Scheduler Functions from PowerShell

June 13, 2011 by Marcus Tettmar in General, Scripting

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 […]

Read more »

Scraping Data From Web Pages

May 20, 2011 by Marcus Tettmar in Automation, Scripting, Web/Tech

I’ve seen quite a lot of requests lately from people wanting to know how to extract text from web pages. Macro Scheduler’s optional WebRecorder add-on simplifies the automation of web pages and includes functions for extracting tables, text or HTML from web page elements. WebRecorder’s Tag Extraction wizard makes it easy to create the code. […]

Read more »

New Video: Using The Debugger

February 23, 2011 by Marcus Tettmar in Announcements, Automation, Scripting

Macro Scheduler veteran John Brozycki has put together this fantastic video tutorial all about Macro Scheduler’s debugging capabilities. The video is 18 minutes long and demonstrates every debug feature, showing examples of their use and talks about how useful the debugger can be for problem resolution as well as script creation. Take a look: A […]

Read more »

Undocumented Internal Dialog Event Parameters

February 8, 2011 by Marcus Tettmar in Scripting, Tutorials

In this forum post Armsys asks how he can determine which key the user pressed in an OnKeyPress dialog event handler. The solution I posted reveals an undocumented feature: Internal event parameters. While there is a sample macro called “Dialogs – MouseOver” which ships with Macro Scheduler and demonstrates these event parameters, they are missing […]

Read more »

Slow Mouse Move

January 18, 2011 by Marcus Tettmar in Scripting

A support request came in today asking how to show the mouse moving from one point to another slowly enough to be visible in a video demo. The regular MouseMove function simply “jumps” the mouse cursor straight to the given point, without passing any points between wherever it was to start with and that end […]

Read more »