Launching applications and links, OS commands
Launching applications and links, OS commands
A URL scheme identifies a resource that can be opened with an iRidi command. A URL scheme can launch an application, open a browser link or email client, make a phone call, or send an SMS.
Different operating systems use different URL schemes. Consider the OS on which the project will run when selecting commands to execute.
Launching from iRidi
In iRidi, you can create a button that opens a third-party application or a browser link. Examples of commands available on different operating systems:

Hyperlinks:
Execute(http://iridiummobile.net)
Windows files and applications:
Execute(c:\Program Files\iRidium.exe)
Windows on-screen keyboard:
*Execute(osk)
Make a phone call or send an SMS:
Execute(tel:+123456789)Execute(sms:+123456789)
Write an email:
*Execute(mailto:test@example.com)
Launch an application:
Execute(videos://)Execute(music://)
iOS 8 and iOS 9 settings (there is no solution for iOS 10 yet):
Execute(prefs:root)Execute(prefs:root=WIFI)- see the full list
i3 pro settings on iOS 9-10:
Execute(app-settings://)
-
URL schemes differ between iOS and Android
-
You cannot launch an application if its developer has not provided this capability!
Launching from JavaScript
Create a JavaScript file in the iRidi Studio script editor to execute commands when a button is pressed or a system event occurs.
IR.Execute("http://iridiummobile.net");
Details on working with JavaScript are provided in the Guide.
Launching iRidi from other applications
URL schemes for launching i3 pro can be invoked from a browser or email client, like hyperlinks to network resources. Use these commands:
-
i3pro://: launch the application (open it or bring it to the foreground). Works in the browser on an iOS/Android device with i3 pro installed. It can be invoked as a hyperlink in a browser, email client or another application -
i3pro://script?data1&data2launch the application and run a script a data string passed to the script as query. IR.AddListener(IR.EVENT_RECIEVE_SCHEME,0,function(query, source) ); - the listener to create in the iRidi project to receive data from the URL scheme
Example:
URL scheme in a third-party application or browser:
i3pro://script?Page1
URL scheme handler in iRidi:
IR.AddListener(IR.EVENT_RECIEVE_SCHEME,0,function(query, source)
{
if (query == "Page1")
IR.ShowPage("Page 1");
});