Clipboard and sound
Clipboard
Section titled “Clipboard”Text only. Both go off the game’s threads, so they give promises. Await them in a task.
wraith.spawn(function() wraith.clipboard.setText(string.format("0x%X", address)):await() local text = wraith.clipboard.getText():await()end)WAV files and Windows’ own sounds. One plays at a time, so a new one stops the last, and nothing plays while the user has Sounds off in Wraith’s settings. play reads the file off the game’s threads, so it gives a promise.
wraith.sound.play("sounds/ding.wav") -- from the plugin's folderwraith.sound.playBytes(wav_string)wraith.sound.playSystem("notification") -- default, info, warning, error, questionwraith.sound.stop()Made with ♥ by Asgard
