May 12, 2010

Version 12 Dialog Stuff

Filed under: Uncategorized — Marcus Tettmar @ 9:09 am

For you dialog old-timers used to the way dialogs work in v11 and earlier I’ve posted a crib sheet for the new system here:

http://www.mjtnet.com/usergroup/viewtopic.php?t=6110

sarver311 has posted an example of a dialog that implements a drill down lookup list and demonstrates some of the new techniques:

http://www.mjtnet.com/usergroup/viewtopic.php?t=6161

If you have any nice dialog examples or tricks you wish to share please post them to the beta forum.

JRL points out that since Macro Scheduler is built with Delphi most of the dialog objects and properties are inherited from Delphi so for more detailed information about them the Delphi documentation can be consulted:

http://www.mjtnet.com/usergroup/viewtopic.php?t=6162

May 11, 2010

Macro Scheduler 12 Beta Updates

Filed under: Uncategorized — Marcus Tettmar @ 3:34 pm

Just a quick reminder that you can keep up to date with beta builds at the beta forum. The latest build is 028. So if you have an earlier build you should download now from the registered user area.

Everything seems to be going quite well and all being well we should now be in a position to release v12 by the end of May.

May 7, 2010

Run All Macros in a Folder/Group

Filed under: Automation, Scripting — Marcus Tettmar @ 3:26 pm

Someone asked me today how to run all macros found in a folder. This simple script will run all macros it finds in its own folder in turn:

GetFileList>%SCRIPT_DIR%\*.scp,MacroFiles
Separate>MacroFiles,;,Macros
If>Macros_count>0
  Let>k=0
  Repeat>k
    Let>k=k+1
    Let>this_macro=Macros_%k%
    If>this_macro<>SCRIPT_FILE
      Macro>this_macro
    Endif
  Until>k=Macros_count
Endif

Note the check to make sure it doesn’t run itself!

This could be useful where you want a quick way to schedule a series of macros. Schedule this script and then all you need to do to add another to the schedule is to drop it into the same folder (or macro group).

For a bit more control consider naming each macro with a numeric prefix and then sort the array to determine the order in which they are run. Version 12 (currently in beta) has a built in ArraySort function. Or use this QuickSort algorithm.

April 26, 2010

Windows Version Trends

Filed under: Windows 7 — Marcus Tettmar @ 10:57 am

I’ve just downloaded Windows version usage data from StatCounter and charted it in Excel, adding polynomial trend lines. Here are the results:

wintrends

If this is right Windows 7 usage will eclipse that of XP by the end of this year. But I’m no statistician so don’t hold me to that.

Either way, I understand that a lot of companies chose to skip Windows Vista and are now going straight to Windows 7. Now is definitely the time to make sure your macros run on Windows 7 if you haven’t already.

April 23, 2010

Using an Old Version? Time to Upgrade for Vista/Win7 Support.

Filed under: General, Macro Recorder — Marcus Tettmar @ 9:50 am

If you’re using an old version of Macro Scheduler, especially version 8 or lower, and like many others, you or your company are considering upgrading your Windows operating system to Vista or Windows 7 soon then you will need to consider upgrading Macro Scheduler too.

Windows 7 adoption rates are outpacing those of Vista fast and many companies are planning on going straight from XP to Windows 7. Already Windows 7 has over 15% market share with over 90 million licenses sold as of March 2nd.

Version 8 of Macro Scheduler was superseded before Windows Vista came along. And Vista brought with it some changes that required us to make changes to Macro Scheduler. So Macro Scheduler v9 was the first version that fully supported Vista. The latest version supports Vista and Windows 7 fully and is listed at Microsoft.com as a “Windows 7 Front Runner” application.

One of the things that Vista introduced were the thumbnail windows that appear when you hover over a task bar icon. These have the same title as the application’s main window. So in Macro Scheduler 8.0 and lower you will run into a problem where your SetFocus lines and other window functions find this thumbnail window before the main window and prevent your scripts from working properly.

Starting with Macro Scheduler 9.0 (in 2007) we made the window functions ignore these new thumbnail windows to prevent this problem. We also had to make some changes to the macro recorder. Older versions may not be able to record under Vista without running Macro Scheduler as admin.

So if you’re still running Macro Scheduler 8 or below then even if you have no plans to change your macros, you’re going to need a newer version when your operating system is upgraded to Windows 7.

Furthermore, we can’t support old versions forever and with the release of version 12 we will be discontinuing support for versions 8 and lower. Since version 9.0 was the first version that properly supported Vista and above we can only really continue to provide support for this version and onwards.

Version 12 offers even more Vista/7 functionality including a reliable AutoLogon mechanism that works in Vista/7/2008 to allow you to schedule macros to run even when Windows is locked or logged out.

So now is the time to upgrade. And if you buy or upgrade to v11 now, we’ll give you a free upgrade to v12 when it is released in a few weeks.

So there’s really no need to wait.

For a summary of new features in v12 click here and here.

The best way to upgrade is to log into your registered account and click the upgrade links. Any problems accessing your account email us.

Consider adding maintenance to your order as well. This will ensure you continue to get all future upgrades and new features automatically at no extra cost. Maintenance is the easiest way to ensure your software stays up to date with all the new Windows releases.

Take a look at the Macro Scheduler history list to see how many improvements there have been since version 8:
http://www.mjtnet.com/mswhatsnew.htm

April 20, 2010

April 19, 2010

Macro Scheduler 12 Beta Available

Filed under: Announcements — Marcus Tettmar @ 12:33 pm

Having gone through a period of closed beta testing Macro Scheduler 12 Beta is now available to all registered customers. All registered users can log into their account and download the beta now.

Just a summary of some of the main new features:

  • Faster and more powerful custom dialogs with real time event handlers; improved Dialog Designer with access to more object properties.
  • Scripting Enhancements including: Native Excel functions, more string functions, local scope support, array functions, regular expression window matching for all window functions, improved image recognition and a new loop construct.
  • Multi-tabbed editing plus more editing features such as: remember code folding state, jump to subroutines, open files in new tab, integration with WebRecorder.
  • Debugger improvements: Variable value debugger breakpoints; search the watch list.
  • The ability to move and re-order macro groups, create linked groups for easier collaboration and point to other macro profiles. Import macros by dragging and dropping files onto Macro Scheduler.
  • AutoLogon for Vista/Windows 7 – schedule macros to run even when Windows is locked or logged out.
  • Custom Triggers: Create any kind of schedule trigger using MacroScript code.
  • Script Templates: Create new macros using supplied code or make your own templates.

This is just a summary. You’ll find a fuller list and release notes here. Please read the release notes before installing.

Please help test this version and report any issues to the Macro Scheduler Beta forum.

Questions:

When will the beta expire? The beta expires 30th June 2010.

So, when will Macro Scheduler 12 be released? All being well beginning of June 2010, possibly sooner.

And how much will it cost? Those with a valid maintenance plan will get v12 at no additional cost. Otherwise you will need to purchase an upgrade. Current upgrade prices can be viewed on our upgrade page. There are no plans to change these prices at this stage. If you have v11 but don’t have maintenance you can purchase it by logging into your account.

March 26, 2010

Coming Soon – Macro Scheduler 12

Filed under: Announcements — Marcus Tettmar @ 1:40 pm

box_done_12If you’re wondering why I’ve been so quiet of late it’s largely because we’ve been working flat out on putting the finishing touches to Macro Scheduler 12. A small group of beta testers are giving it a good workout right now and we should soon be able to open beta testing up to registered users, with a view to release in early June.

Here’s a quick round up of what exciting changes you can expect.

Faster and More Powerful Custom Dialogs; Improved Dialog Designer

The biggest change to Macro Scheduler is regarding Custom Dialogs. We’ve completely re-engineered the way custom dialogs work to give you access to more object properties while also improving responsiveness. We’ve added real-time event handlers so you can respond immediately to button clicks and other object events without the need for cumbersome “action loops”. You can get and set object properties immediately at any time. A new property editor in the Dialog Designer gives you access to all available properties and a visual menu designer means there’s no need to edit any code inside a dialog block.

So if you’re one of those people using Macro Scheduler to create user interfaces you’ll find you can customise your dialogs a lot more and make your dialogs much more responsive. Even if you only create the odd simple dialog you’ll find the new system is simpler.

  • More properties
  • More responsive
  • Real time object event handlers (e.g. button OnClick)
  • Enhanced property editor
  • Visual Menu Designer

Scripting Enhancements

But if you don’t care about Custom Dialogs there are many more scripting improvements. Version 12 offers an option to give variables local scope. We’ve added native Excel functions, process functions, array functions, more string functions, improved the screen image recognition functions, added 64 bit registry support, added RegEx support to window functions, and added system tray functions. We’ve addressed some issues sending keystrokes to old 16 bit apps and Citrix applications. A new loop construct has been added: While/EndWhile.

  • Local Scope
  • Native Excel Functions
  • Process Handling Functions
  • ArrayCount and ArraySort Functions
  • More String Functions
  • Improved Image Recognition Functions
  • 64 Bit Registry Support
  • System Tray Functions
  • RegEx Window Title Matching
  • While/EndWhile Loop Construct

Multi-Tabbed Editing

We’ve made even more improvements to the editor. We’ve added editor tabs so you can now open more than one script at once! Right click on a filename anywhere in your code (e.g. in an Include or Macro line) and open it in another tab. You can right click on a subroutine name – in a GoSub statement for example – to have the cursor placed on the corresponding Subroutine line. Variable breakpoints allow you to set debug breakpoints based on variable values. We’ve added a search bar to the watch list so you can find variables quickly. Code folding is now remembered between sessions. Better integration with WebRecorder: A button launches WebRecorder and outputs the code you record into your macro.

  • Multi-Tabbed Editing
  • Variable Breakpoints
  • Remembered Cold Folding
  • Open Files From Code
  • Jump to Subroutines
  • Integration with WebRecorder
  • Variable Search

Reorder Groups; Share Macros; Templates

In the main Macro Scheduler window v12 allows you to move and re-order groups using drag and drop. Quickly import macros by dragging .scp files from Windows Explorer into Macro Scheduler. Linked Groups allow you to share macros with colleagues by linking a group to a network folder and have new macros in that folder show up automatically. Quickly create a new macro from an existing one by right clicking and selecting “Duplicate to New Macro”. We’ve added templates. “File/New From Template” allows you to create a new macro from an existing .scp file.

  • Drag and drop macros
  • Duplicate macros
  • Share macros with Linked Groups
  • Resort/Reorder Groups via Drag and Drop
  • Templates

AutoLogon for Vista/Windows 7
Reliable AutoLogon for Vista/Windows 7/Windows 2008. Specify a username and password in macro properties and if Windows is locked or logged out when the macro is scheduled AutoLogon will log in to Windows, run the macro and then log out again. Note, we’re discontinuing AutoLogon support for XP which was problematic. Vista/Windows7/Windows 2008 offers a much safer, more reliable mechanism for performing an AutoLogon.

And that’s not all. Watch this space for updates.

Keeping Your Software up to Date – Get a Free Update
If you’re thinking about purchasing Macro Scheduler don’t hold off. If you purchase v11 now you’ll get a free update to v12 when it is released in a few months. If you have a maintenance plan, make sure it is up to date.

March 8, 2010

Screen Magnifier In Only 34 Lines of Code

Filed under: General, Scripting — Marcus Tettmar @ 9:46 am

Check out this screen magnifier, written by Dick Lockey in only 34 lines of Macro Scheduler code.   Paste it into a macro, hit run and then as you move the mouse around your screen you’ll see a 5x magnification of the cursor area.

Dialog>Dialog1
   Caption=5X Magnify
   Width=800
   Height=500
   Top=500
   Left=48
EndDialog>Dialog1
Show>Dialog1
  LibFunc>user32,GetDC,HDC1,Dialog1.handle
  LibFunc>user32,GetDC,HDC3,0

Label>Loop
  GetDialogAction>Dialog1,res1
  If>res1=2
    Exit>0
  EndIf
  GetCursorPos>CurX,CurY
  Sub>CurX,80
  Sub>CurY,50
  Wait>0.01
  LibFunc>Gdi32,StretchBlt,SBres,HDC1,0,0,800,500,HDC3,CURX,CURY,160,100,13369376
  GoSub>DrawLine,Dialog1.handle,1,0,390,250,410,250
  GoSub>DrawLine,Dialog1.handle,1,0,400,240,400,260
Goto>Loop

SRT>DrawLine
  LibFunc>user32,GetDC,HDC,%DrawLine_var_1%
  LibFunc>gdi32,CreatePen,Penres,0,%DrawLine_var_2%,%DrawLine_var_3%
  LibFunc>gdi32,SelectObject,SOPres,hdc,Penres
  Libfunc>gdi32,MoveToEx,mtres,HDC,%DrawLine_var_4%,%DrawLine_var_5%,0
  LibFunc>gdi32,LineTo,ltres,hdc,%DrawLine_var_6%,%DrawLine_var_7%
  LibFunc>gdi32,DeleteObject,DOres,Penres
  LibFunc>user32,ReleaseDC,RDCres,HDC_1,HDC
END>DrawLine

Yes, as Dick Says, you get one of these with Windows. But it’s kind of cool to see you can do the same thing with Macro Scheduler, and the code might come in handy elsewhere.

Enjoy.

March 4, 2010

Choose Your Web Browser

Filed under: General, Web/Tech — Marcus Tettmar @ 10:39 am

One of my Windows XP systems installed an automatic update last night when I shut it down.  This morning I was presented with this:

Windows EU WebBrowser Choice

As I understand it this is as a result of an EU competition law decision.   Is this a good thing or a bad thing?

On the one hand it seems a waste of money and illogical.

I’m no fan of IE, but why shouldn’t Microsoft build a web browser and make it part of their operating system?  Should the EU force them to offer a choice of text editors, calculators, paint programs and calendar applications too? Where should it end?

Plus, yet another dialog like this is surely going to confuse the ordinary user.  Many have no idea what a “web browser” is and just call it “My Internet” or “Google”.  The dialog preceding the one above has to go to the trouble of explaining what a web browser is.  And isn’t the user just going to take the first option anyway?  In which case should the EU force Microsoft to make IE8 something other than the default option?

But then if I were trying to sell a web browser I guess I would welcome this decision. It might give me a little extra exposure.

What do you think?