This and many other handy macros can be downloaded at macrorecordings.com - a macro portal we launched recently
Just to illustrate that creating an automation macro with Jitbit Macro Recorder is as easy as recording mouse and keyboard, here is a simple (very simple) macro that starts defragmentation on disk C: in Windows XP, with three easy steps:
1) The first line instructs the Macro Recorder to launch the Windows XP Disk Defragmenter:
OPEN FILE : dfrg.msc :
2) The next line simply waits for the defragmenter window to appear:
WAIT FOR : Disk Defragmenter : appear : 2000
3) Finally this block launches the appropriate item in the defragmenter window menu (which in our case is "Actions - Defragment"):
Keyboard : AltLeft : KeyDown Keyboard : A : KeyDown Keyboard : A : KeyUp Keyboard : D : KeyDown Keyboard : D : KeyUp Keyboard : AltLeft : KeyUp
The resulting macro looks like this:
OPEN FILE : dfrg.msc : WAIT FOR : Disk Defragmenter : appear : 1000 Keyboard : AltLeft : KeyDown Keyboard : A : KeyDown Keyboard : A : KeyUp Keyboard : D : KeyDown Keyboard : D : KeyUp Keyboard : AltLeft : KeyUp
Of course you don't have to actually type these commands when you create a script in Macro Recorder, you can use the toolbar instead. First you click "Insert 'Open file' command", then you click "Insert 'Wait for window' command" etc... Jitbit's macro-language remains "hidden", it is used only if you decide to edit a saved macro in some external text editor like Notepad (which is the preferred way for some programmers and tech-geeks).
Simply select the above text, copy it to the clipboard and paste it to the Macro Recorder. Or save as a plain-text file with a ".mcr" extension to open it in the Macro Recorder.