Tag Archive for basic

Change windows wallpaper programatically

vbscript-mini-logo

Another VBScript I produced, this time it’s to change the wallpaper. Well, we have a lot of computers used in classes and we decided it’s enough already to show off that shitty Windows background and replace it with our own wallpaper. Group Policy wasn’t much help – it allowed to change the wallpaper, however it would change for everyone, all the time and wouldn’t let people to change it back – what the hell Microsoft? Because of this I made a workaround – a VBScript to change the wallpaper but only once and let people change it back. Put this into the domain’s logoff script and done. In the morning they’ll have a fresh desktop :D
It works very simply – reads a custom registry key which contains 1 if the script has ran already and if it exists and data is valid (1 for true) the script exits. Otherwise it proceeds to download a wallpaper (has to be in BMP format, otherwise WinXP will not understand wtf you are giving it), sets it as a background, makes it stretch and if everything went fine, writes that control registry key so it knows that it has done shit before on this computer.
That’s basically it, very simple. Can be downloaded from here and of course the code for quick review is below.
Read more

Basic “VBScript”

vbscript

Though it’s not VB / Net, it’s more a simpler version of VB. It is pretty handy if you want to start with something…

This type of programming can easily be done in Notepad so you wont need to download a some sort of crap of software (though they can be handy for debugging)
Read more

Matrix effect

This is a cool little application I found deep in my folder structure :D
No idea where I got it from, and no idea who is the author of it.
Read more