We have come to the point where we will evolve our application to perform an action remotely. Here, we'll add a new button to the mobile application, and a remote action will be triggered to open the Windows calculator.
Opening an application remotely
Creating the desktop application
To proceed, open the desktop application project and follow these steps:
- Add the following units:
uses
Winapi.ShellAPI, Winapi.Windows;
- Add an ActionList component.
- Create a new action:
- Select Action1, go to the Events tab, and code the OnExecute event:
- The code for the OnExecute event is as follows:
procedure TFrmCap6.Action1Execute(Sender: TObject);
begin
ShellExecute(0,'open', PChar('C:\Windows\System32\calc...