Buy Now Download 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-2008 iOpus Inc., Pat. Pending
| Search | Purchase | Community |
 

The availability and performance of this website is monitored by iMacros Web Testing