whoami

supermanzdead

Active member
Joined
Feb 23, 2006
Messages
31
Programming Experience
Beginner
Anyone know how whoami creates the wallpaper and adds the text in the wallpaper? I am curious to know...I have tried to replicate it with VB.net but cannot...
 
Which part do you need help with, creating the image or getting the machine name, username and IP address?

If you need help creating the image, look around in the Graphics/GDI+ Section. The classes you'll be interested in:
System.Drawing.Graphics (the DrawImage and DrawString methods)
System.Drawing.Image
System.Drawing.Bitmap

If you need help finding the info; search this forum, there are answers to each part.

For those reading who don't know what whoami is (as I didn't), it's an app that creates custom wallpaper including the machine name, userName, and IP address intended to be used in cases where one mouse and keyboard supports multiple machines. Here's the link: Whoami
 
Well I have never tried to do anything outside of using windows forms to completed remedial tasks and such...I want to learn more outside of the scope of just using windows forms, I'd love to maniuplate the desktop with my own custom wallpaper with relevant text on it (Yeah, I know whoami does it already but what will I learn from using that??!!)

I know how to get the ip address, computer name, and all that stuff, not sure how to force a change to the wallpaper or even how to start pushing text into a bmp file...
 
Looking for some info on working with graphics, you may want to check out the Bob Powell GDI+ FAQ site http://www.bobpowell.net/faqmain.htm

Changing wallpaper example here "Code for Setting Windows Desktop Wallpaper in VB 2005" http://www.devx.com/tips/Tip/21380 It's VS2005, but the usage of Win32 API method SystemParametersInfo is the same, you should get the idea.
 
Back
Top