Macro Recorder » Sample macro: disk defragmentation
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.
- Video Tutorial
- Mouse Recorder
- Tips for Recording Efficient Macros
- Automated Software Testing
- "Automator" for Windows
- Free Macro Recorder
- Keyboard Macro
- 7 Must-Have Features of a Macro Recorder
- Triggering events with Macro Recorder
- Testimonials
- Online help
- FAQ
- Version history

- Download now
- Order now ($39.99)
Reasons to buy
This is what you get
- instant key delivery
- free 24/7 lifetime support
- 20% discount on all future purchases
- awards



