Table of Contents

Misc Namespace

The misc namespace contains various functions that do not qualify to be in another namespace or warrant their own namespace at this time.

You can access these functions via:

ashita.misc.


ashita.misc.open_url

Opens an url using the systems default browser.

void ashita.misc.open_url(url);


ashita.misc.play_sound

Plays a sound file.

void ashita.misc.play_sound(file);


ashita.misc.get_clipboard

Obtains the clipboard text of the system.

string ashita.misc.get_clipboard();


ashita.misc.set_clipboard

Sets the clipboard text.

bool ashita.misc.set_clipboard(text);


ashita.misc.execute

Executes an application via ShellExecute.

void ashita.misc.execute(path, args, mode);


ashita.misc.hide_console

Hides the console window of the process, if present. (Useful for hiding private server boot loaders.)

void ashita.misc.hide_console();


ashita.misc.show_console

Shows the console window of the process, if present. (Useful for showing private server boot loaders.)

void ashita.misc.hide_console();

If a console window has not been created for the process yet, a new one will be created by calling this function.