bbm Posted August 12, 2021 Share Posted August 12, 2021 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 Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 12, 2021 Share Posted August 12, 2021 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' } 1 Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 12, 2021 Share Posted August 12, 2021 Why You want to start something on client side. By security reason , I think that is forbidden. Quote Link to comment Share on other sites More sharing options...
Ron Posted August 12, 2021 Share Posted August 12, 2021 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. Quote Link to comment Share on other sites More sharing options...
bbm Posted August 13, 2021 Author Share Posted August 13, 2021 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.