Jump to content
Sign in to follow this  
probedrone

show my computer on desktop

Recommended Posts

Im writing a autoit program to automate the customization of desktops. One thing I'm missing is that I dont know how to make my computer icon show on desktop other than right clicking it with the mouse and clicking "show on desktop". We all know that mouseclicks and positioning isnt very trustworthy, so does anyone else know of a way to accomplish this?

Thanks!

I may have more questions later

Share this post


Link to post
Share on other sites

WinMinimizeAll ( )

;Hide My Computer
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ,"{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", 1 )
send("{f5}")

sleep(2000)

;Show My Computer
RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu" ,"{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "REG_DWORD", 0 )
send("{f5}")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...