Migrate iMacros from Windows Form to Web Form

Discussions and Tech Support related to using the iMacros Component for .NET in your applications.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 20
Joined: Thu Jul 28, 2016 5:11 am

Migrate iMacros from Windows Form to Web Form

Post by COSMOS » Tue Dec 13, 2016 11:21 am

Hey guys,

FCI = W7-x64, using web components trial version, VS2013, .NET 4.5, running my app on an IIS7.5 server, application pool is 4.0 (let me know if more info is required)

Is it possible to rewrite this code for a web form ?

using System;
using System.Windows.Forms;
using iMacros.Component;

public partial class MainForm : Form
private iMacrosControl iim;

public MainForm()
iim = iMacrosControl.Create("xxxx") // Use the license key for iMacros.Component
iim.Dock = DockStyle.Fill;

I want to include this functionality in my ASP.NET project but I don't have experience with windows forms and I don't really know how to map everything here to web form. Curios as to why there isn't a sample project for web apps in the web components documentation. Only found the one for windows forms.
I need this so that I can run imacros scripts from my web app.

I found a video online about using Gizmox.WebGUI.Forms which has something to do with Silverlight, but I didn't fully understand. Perhaps people with more experience know what this is about. I just want to add this imacrosControl in my web app. It works fine for windows form so I'm sure it can work there too.

Any help is greatly appreciated. Thank you !
Tom, Tech Support
Posts: 3705
Joined: Mon May 31, 2010 4:59 pm

Re: Migrate iMacros from Windows Form to Web Form

Post by Tom, Tech Support » Tue Jan 31, 2017 1:20 pm


Sorry for the late response. If you want to integrate iMacros into your web server application, you don't want to use the iMacros Component for .NET - that component is a GUI component intended primarily for building desktop applications that require a built-in automation browser.

For your purpose, you should be using the iMacros scripting interface included with the Enterprise Edition.

If you have not done so already, please download the 30-day trial version of iMacros from the following link and give it a try!


An ASP.NET sample project is included with the trial.

For more information about using the scripting interface, see the following:

http://wiki.imacros.net/Command_Referen ... d_Overview
http://wiki.imacros.net/Web_Scripting#R ... T.2FPHP.29

If you get stuck or need specific help with your macro or project during your evaluation, please feel free to open a support ticket

Keep in mind that the iMacros Enterprise Edition includes *free updates and priority support for one year* and comes with a 21-day money back guarantee.

Tom, iMacros Support
Post Reply