Logic Machine Forum
Open up other app and at the same time run a script or knx command - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Open up other app and at the same time run a script or knx command (/showthread.php?tid=1001)



Open up other app and at the same time run a script or knx command - davidderoo - 19.09.2017

Hi,
does anyone know how I can open up another app from the visualisation (like nuvo :// or mail://) and at the same time trigger a knx command or run a script?

Kind regards,

david de roo


RE: Open up other app and at the same time run a script or knx command - admin - 20.09.2017

1. Set Additional classes to action-btn for your button
2. Add this to custom JavaScript (Scripting > Tools > Edit custom JavaScript), change URL as needed:
Code:
$(function(){
  $('.action-btn').on('vclick', function() {
    window.open('http://openrb.com');
  })
});