Buy Now & Pricing Download iMacros Search:
Home Products Purchase Service & Support Partner Programs Contact Us
 iMacros
  Product Information
Success Stories NEW
Compare Editions
Web Image Recognition
Press Reviews NEW
System Requirements
Online User Manual
Product Flyer (PDF)
  Support
Online Demos
Code Samples
Tutorials
iMacros User Forum
  FAQ
  Buy iMacros
  Customer Login
  Support Ticket
   
 
   
   
Home > iMacros >
VBS Sample Code

Click here to download this VBS file (This file is part of the iMacros Trial version)

Option Explicit
Dim iim1, iret

MsgBox ("This example script connects to an already open instance of Internet Explorer with an active (open) IIM plugin. If it can not find one, it starts Internet Explorer.")

set iim1= CreateObject ("InternetMacros.iim")
iret = iim1.iimInit ("", FALSE)

iret = iim1.iimDisplay("Start demo")

'Run the first macro
iret = iim1.iimPlay("Demo-Frame", 30)
if iret < 0 Then
MsgBox "Error in Macro#1: "+ cstr (iret) +iim1.iimGetLastError()
End If

iret = iim1.iimDisplay("Script completed.")

MsgBox "Close Internet Explorer"

iret = iim1.iimExit(1)
if iret < 0 Then
MsgBox "Error in Macro#1: "+ cstr (iret) +iim1.iimGetLastError()
End If
WScript.Quit(0)

 


 
 
 
©2000-2009 iOpus Inc., Pat. Pending
| Search Website | Purchase iMacros | Community Forums | Subscribe to iOpus News
 

Site performance and uptime monitored by AlertFox Website Monitoring -> View our current performance.
AlertFox's unique web transaction monitoring is powered by iMacros Web Test Automation.