Run iMacros under a different user account
Top  Previous  Next

We created the "iimRunner.exe" method as a very easy and secure method from a very restricted user account (such as the ASP.NET user account or a Windows Service).

Start the "iimRunner.exe" module inside the account, that you want to use iMacros with. In the following, we assume that is a regular user account called "user1". You can use for example the Windows task scheduler for this purpose: Select the option to start iimRunner.exe as soon as the computer boots.

Inside your ASP script you only need to tell iimInit to use iimRunner to start iMacros.exe. This is done by adding the flag "-runner":

i= iim1.iimInit("-runner")

This is all that you need to do. Now the iMacros Browser can be controlled as before via iimPlay, iimExit etc.

Limit the number of running instances: As a special feature of iimRunner.exe, it can control the number of iMacros instances that are allowed to run in parallel. This is done by changing the MaxNumberOfInstances paramenter in the simple.config file. If the max. number is reached, iimInit returns a -7 error code.



Page URL http://www.iopus.com/imacros/help/scripting_iimrunner.htm