Jump to content

Starting external application


bbm

Recommended Posts

3 hours ago, bbm said:

Hi,

is there any way to start any external program (client side), any batch (client side) etc. from an uniGUI-App?

An example could be to start an application like Teamiewer.

Best regards,

Bernd

Yes,

I use this to start Phone call on mobile device or send Email :

uniLabel.ClientEvents.ExtEvents

function click(sender, eOpts)
{
 window.location='tel:0444888123456';
}

 

or 

uniLabel.ClientEvents.ExtEvents

function click(sender, eOpts)
{
 window.location= 'mailto:mymail@yahoo.com'
}

 

  • Like 1
Link to comment
Share on other sites

You can only run protocol commands that the browser is able to interpret, 
like http/s: and ftp:, or desktop protocol handlers like mailto: and tel:
as mentioned above, providing the handlers are set up.

This means you can also do a CORS call to a local web server,
which then starts a program on the local machine.

Cross-Origin Resource Sharing (CORS) is a standard that allows
 server to relax the same-origin policy. This is used to explicitly allow
some cross-origin requests while rejecting others.

The webserver has to be installed on the local computer,
of course, and configured to respond to the call. You can
use Indy HTTP Server to create this webserver.

Link to comment
Share on other sites

Hi,

Thanks everyone for the quick response.
I will think about how I will implement it. It was important for me to know whether there might be a direct route. This does not seem to be possible.

Best regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...