Delphi
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 liek this:
procedure TForm1.Button1Click(Sender: TObject);
begin
with CreateComObject(CLASS_App) as IApp do begin
iimInit(,True,,,,30);
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:
