Tag Archives: Shell

SNIPPET: OPEN URL IN DEFAULT BROWSER

In some cases you would want the URL to open in users default browser, instead of opening itself in UBot’s one, and for example that way replacing the custom HTML that you’ve generated previously.

Bellow is a simple UBot script that will open links clicked in UBot browser in users default browser. JQuery part of the code is written the way that it only applies that behavior to links that have attribute target=”_blank”  set , so other links will still get opened as usual. In case that invalid URL (not starting with “http”) is passed into the command, it will return “” (blank string) without opening the default browser.

SNIPPET & TEST CODE (UBOT AND JQUERY):

Continue reading «SNIPPET: OPEN URL IN DEFAULT BROWSER»

FREE PLUGIN: Advanced Shell

Command Line WindowAdvanced Shell plugin will add 5 new UBot commands/functions to your UBot environment, and will allow you to hide that annoying Shell/Command Prompt window (“cmd.exe” will run in background), run Batch File Commands directly from UBot (no external batch files needed) and even retrieve the output from Command Prompt with UBot function (instead of reading additional files).

Continue reading «FREE PLUGIN: Advanced Shell»