Jump to content
Sign in to follow this  
dbyers3

Refresh Desktop Background

Recommended Posts

Does anyone know how to refresh the windows desktop background? What I am trying to do is overlay some information onto a picture that is the desktop background and then refresh it. Then the info will be displayed on my desktop background. While I am at it, also do you know how to get the systems MAC address and IP address Programaticly?

Thanks a bunch, Im sure the rest of you will want to use this too? Right??? :thumbup:

Share this post


Link to post
Share on other sites

You can download a free utility that updates your wallpaper automatically just google: automatically change wallpaper to see a slew of freeware tools. If you type ipconfig /all in the Windows Shell command, it will return all you network card info.

Share this post


Link to post
Share on other sites

Another way to get your IP addresses (although not the MAC addresses) is to do this:

http://forums.lavag.org/index.php?act=attach&type=post&id=6050

As for the MAC addresses, you can use the command Michael supplied to call the System Exec VI and parse the output. There are also probably some Windows API functions to do this. I'm fairly sure Rolf Kalbermatter (rolfk) posted some either here or to the NI fourms, so you can search there for his posts.

Share this post


Link to post
Share on other sites

QUOTE(yen @ Jun 8 2007, 06:20 PM)

There are also probably some Windows API functions to do this.

I remember about a year ago someone posting a .NET method of doing this... (?)

Share this post


Link to post
Share on other sites

QUOTE(dbyers3 @ Jun 8 2007, 10:23 AM)

Thanks Guys,

All worked great. One last thing,,, How about getting the Computer name????

Perhaps there's an easier way... but running 'ping localhost' gives the local computer name:

"Pinging <computername> [127.0.0.1] with 32 bytes of data:"

Share this post


Link to post
Share on other sites

Look at this registry key (just read it out):

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName

Share this post


Link to post
Share on other sites

QUOTE(dbyers3 @ Jun 7 2007, 09:03 PM)

See here for the VI to do (part of) this...

QUOTE

Look at this registry key (just read it out):

or, if you don't like registry stuff, use this VI.

http://forums.lavag.org/index.php?act=attach&type=post&id=6054

Share this post


Link to post
Share on other sites

QUOTE(Michael_Aivaliotis @ Jun 9 2007, 08:19 PM)

To get computer name:

index.php?act=attach&type=post&id=6059

Or, for a list of all the network adapters, follow my first example with this modification.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.