The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Delphi
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.
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 iimOpen('-ng', true, 60); iimplay('CODE:URL GOTO=http://imacros.net',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: