Importing Desktop Background as Parallax

This may sound a bit odd. But given what I've seen JS do in the past six months, I at least don't think this is impossible... unless their's something about OS coding that slipped my mind (also possible)


I find it hard to explain the specific situation I'd be using this for, but is their a way for the game to take the player's current Desktop Background, scale it to the game's resolution, then import it as a parallax background, which can be called at any time?


I'm not that experienced with coding, the biggest hurdle I see is that it's possible Windows and Mac have different coding methods of display desktop background. 


If this is not possible, then I have an alternate request. Is their a way to have a 'completely transparent' parallax then? So that when in effect, it would show all the windows, icons, and whatnot behind the game window?
It is possible...


Very hard. You have to call the image from where the image is placed in the computers file system, this can vary between OS and even versions of the same OS. Also this script might be picked up by some anti-virus as a well virus.


I would not exactly recommend it.
Unfortunately you're wrong, because you're forgetting something:


Any good browser is sandboxed to prevent the website from accessing your computer's files - that is to prevent things like virus intrusions or malware etc.


Which means that the browser is programmed to prevent any such access unless specifically ordered by the user.


As said above, there are a ways around it - otherwise we wouldn't need antivirus software or similiar programs. But those programs also will try to prevent your game from accessing those files (depending on how they were set up). And if you're trying to hack your way around the local antivirus, then you can expect that a lot of sites on the internet will call your game a virus even if it doesn't do anything wrong, simply because it will be reported as such by a lot of antivirus programs (who don't know why you're trying to break out of the browser either and assume it's due to malware)
@Andar summed it up perfectly.


However, if you are trying to create a "meta" experience of a computer desktop (think pony island) there are better ways to do it.


What are you trying to do? we (the forum) could offer you alternatives if we had more details.
@Baerthe


@Andar


I was afraid of such, if such a feature would put my game in a level as a virus, then obviously I'd pass up on the offer.


I am aiming for a 'meta' experience. I have a plot twist where a villain knows the player is the biggest threat by controlling the heroes, and I want him to show his power by breaking the forth wall in a sense that he knows he's on a computer screen.


But what about the alternate request? The idea with the transparent parallax that would show any window behind the game's window? If that's not possible, I'll probably make a dummy window to look like a retro windows 2000 desktop background, but I don't feel that would be nearly as effective.
Also impossible with this engine.
Also impossible with this engine.

Fair enough, I'll put trust in that statement.


I'll leave this thread open in case someone happens to find a method, but in the meantime I'll just make a mock-up desktop background or find another way to break to fourth wall.
what you should do is look up Pony Island. Its a game about a computer.


but it gives a good example of how to do that kind of fourth walling.

Original thread: https://forums.rpgmakerweb.com/threads/importing-desktop-background-as-parallax.61205/