Category: Scripting

Round-up of Learning Resources

March 21, 2008 by Marcus Tettmar in Automation, Scripting

Common questions we receive are things like “What’s the best way to learn more about Macro Scheduler?”, or “How can I advance my Macro Scheduler skills?”. You may be just getting started, or you may be wondering whether you can improve one of your scripts or how to tackle another process. There are a number […]

Read more »

Embedding Files in Macro Scheduler Scripts

March 11, 2008 by Dick Lockey in Scripting

The purpose of embedding a file into a Macro Scheduler script is to be able to have a script use that file on a computer that might not have the file or that the file is in an unknown location. For example a spreadsheet or database file could be embedded so that the script could […]

Read more »

OnEvent – Dealing with Indeterminate Dialogs

March 4, 2008 by Marcus Tettmar in Automation, Scripting

Most of the time when we are automating a process we are able to predict the sequence of events. We are working with a deterministic process and a linear flow of actions. But there are occasions when things can happen during a process that we cannot predict precisely. E.g.: We might know that a dialog […]

Read more »

Screen Scrape Text Capture Example

January 3, 2008 by Marcus Tettmar in Automation, Scripting

In this post I discussed the Text Capture commands and explained what kind of text can be captured. To try out the text capture functionality launch the latest version of Macro Scheduler. Click New to create a new script and then in the Code Builder locate the “Text Capture Wizard”. Point the mouse at some […]

Read more »

Capturing Screen Text

December 12, 2007 by Marcus Tettmar in Automation, Scripting

As I have mentioned previously, Macro Scheduler 10 introduces some powerful new commands for capturing screen text. In this post I aim to explain what kinds of text can be captured with these new commands and why there will always be some text that cannot be retrieved. First let’s look at how the existing functions, […]

Read more »

EXEs and Hotkeys

November 20, 2007 by Marcus Tettmar in Automation, Scripting

Something that comes up now and then is whether or not compiled Macro Scheduler macros can respond to hot-keys. Macro Scheduler itself lets you assign system-wide hot-keys to macros so that when you hit that key combination, no matter where you are in Windows, the macro will be fired. Some people want to be able […]

Read more »

Application and System Monitoring

November 18, 2007 by Marcus Tettmar in Automation, Scripting

A short roundup of resources and ideas for using Macro Scheduler for system and software monitoring. Event Log Monitoring Here’s a tip showing how to create a script to monitor event log messages: http://www.mjtnet.com/usergroup/viewtopic.php?t=4256 Process/Service Monitoring This script demonstrates a function called IsProcessRunning to check if a specific process is running. Use it to create […]

Read more »

Screen OCR to Retrieve Otherwise Undetectable Text

October 8, 2007 by Marcus Tettmar in Automation, Scripting

Some while ago I wrote this post about how to script a tool called Textract to perform OCR against the screen. Well gpulawski has just posted this tip in the forums pointing out that Microsoft Office 2003/2007 comes with something called MODI (Microsoft Office Document Imaging) which can OCR a bitmap or TIFF file and […]

Read more »

Speech Recognition for Automation

September 30, 2007 by Marcus Tettmar in Scripting

The last time I tried speech recognition was about 15 years ago and back then it wasn’t very good. I suppose it was early days for the technology but I pretty much gave up on it. This morning, however, I was reading Scott Hanselman’s post about speech recognition in Vista and wanted to give it […]

Read more »

Debug, Debug, Debug

September 12, 2007 by Marcus Tettmar in Scripting

Many support requests and forum posts I see include a script snippet and a statement like “this value is wrong” or “the if statement says false but it should be true”. So we make an intelligent guess and say “so perhaps the value you are comparing isn’t what you think it is. Use the debugger”. […]

Read more »