Help need with a small script

Iv recently started self learning javascript to more effectivly get my game to do a few little thing's and i currently have a scene were i want the game to do more than just game over.

so far a have it set to self close, but id also like to have it change the players desktop wallpaper for an image that would be held in the game files but im not sure what the code line needed for such a thing is.

note: I will have a notice that tells the player the game will do things like this, so its not done with out their prior knowage and acceptance of this.

any help with this is greatly appreciated inc making me aware of other posible problems that could arise from it behaving in such a manner
You're probably going to want to use a solution that's already been created since it's not very common for Javascript to access these kinds of files (because normally JS is run in a browser that doesn't access the internal workings of a user's computer)

Try using this for example
https://github.com/sindresorhus/wallpaper
You're probably going to want to use a solution that's already been created since it's not very common for Javascript to access these kinds of files (because normally JS is run in a browser that doesn't access the internal workings of a user's computer)

Try using this for example
https://github.com/sindresorhus/wallpaper

It hadn't even occurred to me that i need a different set of coding for it to work on each platform i put it on, so much for small i guess but thank you for the link

Original thread: https://forums.rpgmakerweb.com/threads/help-need-with-a-small-script.106513/