Marcus' Macro Blog

Tips and News on Macro Recording and Automating Windows with Macro Scheduler
October 30th, 2014 by Marcus Tettmar

Following on from my last post with some examples of using the MacroScript SDK within Python I thought I’d post a simple C# and C++ example. These are the same examples that ship with the MacroScript SDK:

C#

C++

More info on the MacroScript SDK is here.

October 18th, 2014 by Marcus Tettmar

If you have kids here’s a great way to show them how to do long multiplication. They’ll love this:

October 16th, 2014 by Marcus Tettmar

Our servers have been patched for Poodle, the SSL3 vulnerability. Basically we’ve just disabled SSL3 and SSL2. These are no longer needed anyway as all modern browsers support their successor, TLS.

Those using IE7 or lower (why oh why!?) will, by default, not be able to load www.mjtnet.com without making a small change.

If for some unearthly reason (there really isn’t one) you HAVE to use one of those ancient browsers you can simply go into advanced settings, disable SSL2 and SSL3 and enable TLS 1.0.

But why bother doing that when you can just upgrade. Even those of you stuck using XP can upgrade to IE8 (or use a better alternative).

But if you need to do that you won’t be reading this unless you’ve connected via a different browser/PC!

According to our server logs 3% of visitors last month were using IE7 or less. That’s a low enough figure not to worry about lost visits and, anyway, it’s time these browsers and SSL3 were consigned to the scrap heap once and for all. Any other workarounds or fixes are just delaying the inevitable.

21% of visitors are still using IE8. They’re probably stuck on XP. I can’t wait to see that figure drop below 1%.

October 15th, 2014 by Marcus Tettmar

On October 25th MJT Net employee Dorian Ellis is taking part in a 24 hour gaming marathon to raise money for Doernbecher Children’s Hospital, a hospital local to Dorian which has treated children of friends of his.

When Dorian isn’t answering Macro Scheduler support tickets he’s often to be found playing on-line games, so this fundraiser combines his passion with a cause close to his heart.

Please check out his page and, if you can, make a small donation and let’s see if we can help Dorian reach his target of $1000. Thank you.

October 14th, 2014 by Marcus Tettmar

Did you know there was a Macro Scheduler SDK? It allows you to run Macro Scheduler code from right within your own apps. You can run and interact with MacroScript code within VB, C++, C#, Delphi, VBScript … or any other programming language which lets you use a COM object or Win native DLL.

It even works in Python. Here’s a small example which uses the screen image recognition functionality to find and click on the Windows Start button:

Another slightly more complex example which opens Notepad and types into it. It also demonstrates how you can call chunks of code at a time instead of all at once and set and get the value of script variables during execution. It also gets the result of the script set via MACRO_RESULT:

More information about the MacroScript SDK can be found here.

A number of customers have used the SDK to build macro-ing capabilities into their own products and/or create tighter integrations between their own software and automation routines using MacroScript.

If you’re interested in trialling a copy or getting pricing info drop us a line.

September 30th, 2014 by Marcus Tettmar

It’s always interesting to hear what our customers use Macro Scheduler for. So many use cases. Here’s one from Mark Croom:

For the convenience of listeners to the radio stations I work with, the program is doing some file handling tasks that put artist and title information onto our website and into radiotext on RBDS-capable radios, during programming that is supplied by satellite networks rather than through the local automation.

Works great and I can see the amazing flexibility of Macro Scheduler for other automation uses.

Mark Croom
Kinshipradio.org

September 22nd, 2014 by Marcus Tettmar

I taught my son Ben, who is 8, to count in binary last night.

It was fun. He struggles with math, but this seemed like a revelation for him. So simple, so powerful.

I realised he didn’t know what is inside a microchip – that a computer is just a box of switches. That when a sprite moves across the screen there are essentially just lots of little lights being switched on and off quickly. That 1s and 0s, ons and offs – two simple states – power our world, helped send men to the moon.

I sensed a Eureka moment for him. Almost wonder if in fact we’re teaching kids the wrong way around. Binary is so fundamental, so important, fun and easy. Teach kids to add and multiply in binary and I’m sure it will better prepare them for doing the same in decimal. If nothing else the fact that this has something to do with computers is probably a little incentive in getting them to pay attention.

I didn’t learn binary until half way through secondary school. I have no idea if/when schools teach it now.

Kids use tablets, smartphones, video games and computers all the time. Do they know what’s inside?

September 4th, 2014 by Marcus Tettmar

We’ve added a new article to our help desk: How to Share Macros with Other Network users

August 8th, 2014 by Marcus Tettmar

Today we had two different support requests asking how to have a Macro Scheduler macro determine which page IE is on.

One person was asking about using Image Recognition for that. You could also use the IE functions to examine the HTML or look for the existence of a specific HTML element.

You could do one of those, sure, but I think that’s over complicating things.

My motto is “keep things simple”.

IE’s Window Title adopts the page title of the web page it is displaying. IE also shows the URL in the address bar. So why not just look at one of those. Like this:

//Two simple methods to see which page IE is at.

//Method One - Just look at the window title
IfWindowOpen>Bing - Internet Explorer
  //Bing is open - do this
Else
  IfWindowOpen>Google - Internet Explorer
     //Google is open - do that
  Endif
Endif

//Method Two - Look at the Actual URL in the URL bar - I used the Wizard to get this code and then altered the window title to make it a substring match
UIGetValue>- Internet Explorer*,{"Address"},curVals,Positions,nHeight
Position>google.co.uk,curVals,1,pGoogle
If>pGoogle>0
  //must be at google
Else
  //must be somewhere else
  Position>bing.com,curVals,1,pBing
  If>pBing>0
    //must be at bing
  Endif
Endif
August 7th, 2014 by Marcus Tettmar

Want to earn a little extra cash? If you are a registered Macro Scheduler user, you can now recommend Macro Scheduler to your friends, colleagues, customers – or anyone else – and we’ll give you 20% of every sale you generate.

You’ll find details in your account at http://customer.mjtnet.com/

    • Archives

  • Categories