Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // implementation
- function open_url(url) {
- var escapedfolder = string_replace_all(url, "\"", "\\\"");
- if (os_type = os_windows) execute_shell("cmd", "explorer \"" + escapedfolder + "\"");
- else if (os_type = os_macosx) execute_shell("open", "\"" + escapedfolder + "\"");
- else if (os_type = os_linux) execute_shell("xdg-open", "\"" + escapedfolder + "\"");
- }
- // usage example
- open_url("https://www.yoyogames.com/");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement