Jump to content

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

Link to comment
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}")

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...