Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- [launch_url_from_default_browser] (function inside a definition script - example one)
- -- uses a local variable - in this case we used "result" as the variable!
- -- execute the script within an object action with: launch_url()
- function launch_url()
- local result = startDefaultBrowser('https://visionaire-studio.net')
- if result then
- print('browser started - defined')
- else
- print('browser not started - defined')
- end
- end
- -- [launch_url_from_default_browser] (execution script - example two)
- -- call the script within an object action to use!
- if startDefaultBrowser('https://visionaire-studio.net') then
- print('browser started - executed')
- else
- print('browser not started - executed')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement