Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

CCID does not work in Windows 7


  • Please log in to reply
2 replies to this topic
MontrealPaul
  • Validating
  • 1 posts
  • Last active: Jan 31 2018 06:57 PM
  • Joined: 22 Apr 2014

Hi,

 

I am trying to get the "My Computer" CLSID to work with FileSelectFile in Windows 7. Here is a code snippet:

FileSelectFile, OutputVar,,::{20d04fe0-3aea-1069-a2d8-08002b30309d}
msgbox %outputvar%

Instead of opening "My Computer" (from which I want to navigate quickly to a USB key), it opens the last directory used.

 

I am using AHK v1.1.14.03 

 

Thanks!



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

I believe this is standard Windows 7 behaviour.  Microsoft apparently decided that the user always prefers to go back to the last place they used, not where the program wants them to go.  I read an article about this somewhere, but can't find it.

 

If you choose a path that isn't a CLSID, does it work?  (I think the behaviour of the dialog might depend on which path you provide.)

 

Anyway, why is this in Suggestions?  I don't see a suggestion.  I'll move the thread to Issues (though I don't believe it's actually a bug).



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

I've confirmed that FileSelectFile doesn't actually do anything with the CLSID.  It just detects the CLSID to avoid setting it as the default filename, then passes it on to the system (GetOpenFileName) unchanged.  The behaviour of the dialog when a CLSID is provided vs a path is entirely up to the system.