iimRunner ASP.vbs

From iMacros
Revision as of 09:35, 10 August 2007 by Hm (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This script demonstrates, how to connect to iMacros via iimRunner. This is necessary e.g. when using iMacros from ASP or ASP.NET

set iim1= CreateObject ("imacros")

msgbox ("This script connects to iimRunner to start the iMacros Browser. Use this technology for example to control the iMacros Browser from ASP or ASP.NET accounts.")

i=  iim1.iimInit("-runner")

if i = -6 then
  msgbox ("iimRunner ist not running. Please start iimRunner.exe first. You find this file in the iMacros program directory.")
  WScript.Quit(0)
end if

if i = -7 then
  msgbox ("The max. number of allowed iMacros instances is reached. You can change this limit in the simple.config file in the iMacros directory.")
  WScript.Quit(0)
end if


i = iim1.iimPlay("demo-fillform")

  msgbox ("Demo completed, press OK to close the iMacros browser.") 

i = iim1.iimExit
WScript.Quit(0)