Delphi
(Copy URL in PhpBB Forum Format - Info)From iMacros
Here's how to use the Scripting Interface with Delphi 2007.
The IDE used is CodeGear's "RAD Studio for Microsoft Windows" running | "Delphi 2007 for Win32". iOpus is not affiliated with CodeGear.
Contents |
Create Project
Add code to button
- Double click button to edit its code
- Adjust the code to read like this:
procedure TForm1.Button1Click(Sender: TObject);
begin
with CreateComObject(CLASS_App) as IApp do begin
iimInit ('', true, null, null, null, 60);
iimplay('CODE:URL GOTO=http://www.iopus.com',30);
end;
end;
end.
Add iMacros Scripting Interface
- Menu -> Component -> Import Components
- Import Type Library
- Select "iMacros Scripting Interface"
- Skip next window
- Add Scripting Interface as unit to project
- Double click TForm1 to add references to the Scripting Interface:
- Add Scirpting Interface (and COM object handling) to "uses" clause:
Done
- That's it. Once being started, the software will present the form, and when the button is clicked, it starts an iMacros browser window, that visits www.iopus.com:
