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:
No comments:
Post a Comment