DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Double-Click Desktop Reset  (Read 7,958 times)

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
DONE: Double-Click Desktop Reset
« on: December 01, 2012, 09:09 PM »
This is another of those snacks to save steps.

I sometimes like to put a picture on my desktop background. Then when I am satisfied, I want it to go away. However, the main method I know of to make it go away is:

RightClick/Properties/DesktopTab/ScrollUp/None/Apply/OK

Whew! Way too much work to blister through a bunch of pics as desktops!

Anyone wanna go after this one?

Cheers,

Tao

Extra Credit: P.S. my use case is Win XP, but last I recall from Win Vista and 7 and who knows about 8, they deleted that function entirely, so it might be useful for people on those OS's to have this widget work for them as well.
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: Double-Click Desktop Reset
« Reply #1 on: December 01, 2012, 10:34 PM »
Here's a two-line AHK script that should do it:

Code: (autohotkey)
RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\Desktop, Wallpaper, % ""
DllCall( "SystemParametersInfo", UInt, 0x14, UInt, 0, Str, sFile, UInt, 1 )

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Re: DONE: Double-Click Desktop Reset
« Reply #2 on: December 01, 2012, 10:45 PM »
Here's a two-line AHK script that should do it:

Code: (autohotkey)
RegWrite, REG_SZ, HKEY_CURRENT_USER, Control Panel\Desktop, Wallpaper, % ""
DllCall( "SystemParametersInfo", UInt, 0x14, UInt, 0, Str, sFile, UInt, 1 )

How do you make that into an exe?
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: Double-Click Desktop Reset
« Reply #3 on: December 01, 2012, 11:36 PM »

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: DONE: Double-Click Desktop Reset
« Reply #4 on: December 02, 2012, 08:21 AM »
Why not just right-click on a picture and set it as the background? 2 clicks. You could use a "blank" image or anything to "make it go away".
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Re: DONE: Double-Click Desktop Reset
« Reply #5 on: December 02, 2012, 01:02 PM »
Why not just right-click on a picture and set it as the background? 2 clicks. You could use a "blank" image or anything to "make it go away".

Hiya Ren!

1. Right clicking on Jpegs (as an example) doesn't give me an option to set it as a background.
2. I don't know what a blank image is. My standard background is just system black.
3. Sometimes I have gotten fancy and used videos as backgrounds, so I'm interested when I get time if this kind of idea works on clearing those.
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

TaoPhoenix

  • 0 - 60 ... then back to 0 again!
  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,642
    • Participated in NANY Challenge Three Times
Use attachthumb=# to show an attached image as an expandable thumbnail, or attach=# to show full size. (With Brackets)

Original address: https://www.donationcoder.com/forum/index.php?topic=33107.0