The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Sample Code
Examples for using iMacros efficiently.. All macros and scripts listed here are included in the default installation of iMacros. The example batch files and scripts can be found at "C:\Documents and Settings\All Users\Documents\iMacros\Examples" if you selected the default installation directory during installation.
No vendor specific scripting language. iMacros does not use an awkward, proprietary vendor specific scripting language. The iMacros Browser, Internet Explorer (with iMacros Add-on) and Firefox (with iMacros Add-On) can be controlled with any Windows programming or scripting language. We have included samples for the most popular languages on this page and in the iMacros download. The basic usage is the same in every language.
Macros
Internet Macros are used to describe the page specific interaction. The syntax is based on HTML.
- Demo-AJAX-Drag-Drop Automate drag & drop in AJAX. No fixed coordinates required.
- Demo-AJAX-Tree Move element of an AJAX tree view by drag & drop
- Demo-ArchivePage Save the current page with custom file name
- Demo-Datasource Enter data from textfile (CSV) into web form
- Demo-Download Automate file downloads
- Demo-Draw Record mouse movements for e.g. java applets
- Demo-Extract Extract text, HTML code, links, tables
- Demo-ExtractAndFill Extract data and directly fill it into another web site
- Demo-ExtractRelative Use relative positioning for more easy extraction
- Demo-Extract-Table Extract complete table with one command and save data to text file
- Demo-FillForm Fill forms automating input boxes, drop down selections, checkboxes, radiobuttons, etc.
- Demo-FillVariousWebsites Fill in forms on different websites with "typical" data (like your name, an email address, etc.)
- Demo-Filter Filter pictures for faster page loading
- Demo-Flash Automate flash applets
- Demo-Frames Automate sites using HTML frames
- Demo-Googlemaps Record interactive website actions
- Demo-ImageDownload Download picture to local disc, take screenshots
- Demo-ImageRecognition Automate e.g. a flash plugin by its graphical elements
- Demo-JavascriptDialog Handle pop-up dialogs
- Demo-JavaScriptMenu Navigate through JavaScript menus
- Demo-Loop-Csv-2-Web Fill textfile (CSV) data to web form
- Demo-OfflineDialogs Automates pop-up dialogs (macro runs on local HTML code)
- Demo-OfflineExtract Extract data from web sites (macro runs on local HTML code)
- Demo-Print Print websites and PDF documents
- Demo-SaveAs Save Website in various formats
- Demo-SavePDF Download PDF files
- Demo-SaveTargetAs Download and save files using custom paths and file names
- Demo-Slideshow Loop through thumbnails
- Demo-Stopwatch Measure detailed website response times
- Demo-Tabs Make use of tabs
- Demo-Tagposition The relevance of the POS value in TAG commands
- Demo-TakeScreenshots Take screenshot of full page (not just the part visible in the browser)
- Demo-Upload Fill in file upload fields
- Demo-WebPageDialog iMacros handles web page dialogs
- Demo-Web-Test Use macro for web testing
- Demo-Winclick Automate Java/Flash applets
Batch Files
ASP Examples
An ASP sample project is included in the iMacros download. It uses the iimRunner feature.
ASP.NET Examples
An ASP.NET sample project is included in the iMacros download. It uses the iimRunner feature.
iMacros ships with the 32-bit version of the Scripting Interface. Registered users can download the native 64-bit version of the iMacros Scripting Interface from our customer center at no extra charge. This allows you to run iMacros directly from ASP.NET with IIS in 64-bit mode. The interface can also be used with any other 64-bit application. The use of the 64-bit version requires no code changes.
C# Examples
C# sample projects for Visual Studio 2003 and 2005 are included in the iMacros download. The samples especially show the threading features of iMacros. You can run and control many browsers simultaneously.
Java Examples
Please see the user forum for a Java (Jawin) tutorial with screenshots.
PHP Examples
A PHP sample project is included in the iMacros download. It uses the iimRunner feature.
Visual Basic Scripts
- combine-macros.vbs Shows how to create a custom error report log file
- connect-to-ie.vbs Remote control Internet Explorer
- connect-to-fx.vbs Remote control Mozilla FireFox
- connect-to-iimrunner.vbs Shows how to work with iimRunner.exe
- database-2-web.vbs Submit database information to a website
- datasource-2-web.vbs Submit information from a text file to a website
- extract-2-file.vbs Web scrape data into a plain text file.
- extract-2-database.vbs Web scrape data into a database.
- extract-and-fill.vbs Web scrape data from one website and submit it to a second website.
- file-2-web.vbs Submit information from a text file to a website (Method 1)
- file-2-web-method2.vbs Submit information from a text file to a website (Method 2)
- get-exchange-rate.vbs Extract exchange rate from a website. Runs in tray.
- get-response-times.vbs Measure response times and use them in script.
- iimRunner_ASP.vbs Connect to iMacros via iimRunner, like when using ASP or ASP.NET
- random-numbers.vbs Fill an online form with random numbers.
- send-macro-code.vbs Directly send macro code to iMacros instance instead of calling locally stored macros.
- set-user-agent.vbs Change user agent before visiting a website (in case it behaves differently on different browsers).
Important: iMacros can the controlled with same syntax shown here in any Windows programming and scripting language, for example ASP, ASP.NET, C#, Foxpro, Java, Javascript, Perl, PHP, Phyton, Ruby, VBA, VB6, VB.NET and VBS.
VB.NET Examples
VB.NET sample projects for Visual Studio 2003 and 2005 are included in the iMacros download.. The samples especially show the threading features of iMacros. You can run and control many browsers simultaneously.
VB6 Examples
A complete VB6 projects is included in the iMacros download. In addition, all VBS and VBA samples work with VB6 with no or almost no modifications.
VBA Scripting Examples
Recent Project Samples
Click here for some recent project samples