Remote Automation: The AUTOCLIK Sample
| Overview | How Do I | Sample
AUTOCLIK is a simple Automation server application that you can use as a base from which to learn more about Remote Automation.
To install the AUTOCLIK project onto your development machine
Select Search from the Help menu. The MSDN Library browser appears.
Type “AUTOCLIK” in the edit box of the Index tab.
Double-click “AUTOCLIK sample” in the list of index entries, or select “AUTOCLIK sample” and click the Display button.
The topic "AUTOCLIK: Automation Server Application" appears in the MSDN Library browser's main window.
Click STEP3 to install the AUTOCLIK project.
To install AUTOCLIK.EXE on two machines and drive it using Remote Automation
Build the Step 3 version of AUTOCLIK.EXE.
Run AUTOCLIK.EXE in standalone fashion and then shut it down. This will register it as an Automation server.
Copy AUTOCLIK.EXE to a remote machine, run it there, and then shut it down.
Build AUTODRIV.EXE and verify that running it starts AUTOCLIK.EXE on the local machine. Read the to find out more about AUTODRIV.EXE.
On the remote machine, start AUTMGR32.EXE (Automation Manager).
On the remote machine, start RACMGR32.EXE (Remote Automation Connection Manager).
In the Remote Automation Connection Manager, select AutoClik.Document from the OLE Classes list.
Choose a system security policy from the Client Access tab to grant client access to AutoClik.Document.
On the local machine, start RACMGR32.EXE and select AutoClik.Document from the OLE Classes list.
From the Server Connection tab, choose both the network address of the remote machine and the appropriate network protocol.
With AutoClik.Document still selected in the OLE Classes listbox, choose the Remote command from the Register menu.
On the local machine, run AUTODRIV.EXE or the equivalent AUTOCLIK.MAK Visual Basic project if you want to have a Visual Basic, rather than an MFC, client.
On the remote machine, you should now be able to see AUTOCLIK executing commands initiated from the local client.