Search found 327 matches
- 15 Dec 2014, 22:32
- Forum: Ask For Help
- Topic: Navigate an Explorer object to a CLSID address
- Replies: 8
- Views: 2571
Re: Navigate an Explorer object to a CLSID address
Maybe if you try "shell:" commands? shell:NetworkPlacesFolder See http://www.sevenforums.com/tutorials/4941-shell-command.html Yes, it works! I knew about these registry keys "Shell Folders" (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders) but I did not know abou...
- 15 Dec 2014, 19:26
- Forum: Ask For Help
- Topic: Navigate an Explorer object to a CLSID address
- Replies: 8
- Views: 2571
Navigate an Explorer object to a CLSID address
I'm using the .Navigate method to change the current folder in an Explorer window. For pExp in ComObjCreate("Shell.Application").Windows { if (pExp.hwnd = hwnd) { ; matching window found pExp.Navigate(FullPath) ; *** DOES NOT ACCEPT CLSID IN THE FORMAT "::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" retu...
- 16 Nov 2014, 22:36
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Re: Getting CLSID or SpecialFolderConstant of an Explorer ob
Good. That way, my code is safe because I read the Path only for the correct Type. Thanks.lexikos wrote:The ShellWindows collection includes Internet Explorer windows, for which 'Folder' is not a valid property. The try statement allows those to be skipped without having to check what type of window it is.
- 16 Nov 2014, 19:30
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Re: Getting CLSID or SpecialFolderConstant of an Explorer ob
for window in ComObjCreate("Shell.Application").Windows try MsgBox % window.Document.Folder.Self.Path Hi lexikos, What is the reason for using try ? Or what's the risk of not using it? FYI, in my code, I check if window.Type is not empty to make sure window is a file Explorer (not an Internet Explo...
- 10 Nov 2014, 17:11
- Forum: Ask For Help
- Topic: PickIconDlg and string encoding
- Replies: 9
- Views: 2161
Re: PickIconDlg and string encoding
Avoid the error message and return an empty string? The MsgBox is not part of the function. The function returns False silently . It was not the MsgBox but a runtime error that was caused by the same typo: Error: This DllCall requires a prior VarSetCapacity. The program is now unstable and will exi...
- 09 Nov 2014, 19:23
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Re: Getting CLSID or SpecialFolderConstant of an Explorer ob
for window in ComObjCreate("Shell.Application").Windows try MsgBox % window.Document.Folder.Self.Path Hummm... I'll save quite a bunch of lines in my code with those only two lines :-) Thanks lexikos, just me and coco for these infos. [OT] I missed email alerts for these updates. I checked and I'm ...
- 09 Nov 2014, 17:25
- Forum: Ask For Help
- Topic: PickIconDlg and string encoding
- Replies: 9
- Views: 2161
Re: PickIconDlg and string encoding
What else should the function do? Just do nothing if the user cancel. Avoid the error message and return an empty string? The file name is a part of the path. Oh. Reading this Naming Files, Paths, and Namespaces , I was under the impression that the file name was excluded from the max length path l...
- 09 Nov 2014, 12:32
- Forum: Ask For Help
- Topic: PickIconDlg and string encoding
- Replies: 9
- Views: 2161
Re: PickIconDlg and string encoding
Oops... Just found that the line VarSetCapacity(sIconPath, 1024) in my last post prevents a default path to be correctly passed to the function. In fact, this line must be placed before the variable content is initialized. Like this: Gui, Show, h100 w100, PickIconDlg WinGet, hWnd, ID, PickIconDlg Va...
- 08 Nov 2014, 18:17
- Forum: Ask For Help
- Topic: PickIconDlg and string encoding
- Replies: 9
- Views: 2161
Re: PickIconDlg and string encoding
Of course, it helps! :-) This was old code for a previous AHK version. I tried to simplify the code but the path was not updated. I realize I just forgot to replace the wIconPath variable name with sIconPath. :eh: So your code works. But, on WinXP, in case the returned path is longer than the origin...
- 08 Nov 2014, 16:16
- Forum: Ask For Help
- Topic: PickIconDlg and string encoding
- Replies: 9
- Views: 2161
PickIconDlg and string encoding
Hi, I'm trying to use the PickIconDlg function to select an icon. All I found about this on the old site is dated 2009 and does not work on my system. I tried to find something more recent on this (not so) new AHK forum, but found nothing. I tried different variation around this code and never got i...
- 03 Nov 2014, 08:48
- Forum: Ask For Help
- Topic: Making the Remote TreeView class work
- Replies: 15
- Views: 5545
Re: Making the Remote TreeView class work
Thank you just me. I updated the comment above with the changes to TreeView Example.ahk.
- 02 Nov 2014, 21:33
- Forum: Ask For Help
- Topic: Making the Remote TreeView class work
- Replies: 15
- Views: 5545
Re: Making the Remote TreeView class work
The updated script with fixes from just me: TreeView Example.ahk: adapted to work on both Win_XP and Win_7. #NoEnv #SingleInstance force SetBatchLines -1 ListLines Off SendMode Input SetWorkingDir %A_ScriptDir% ; Autoexecute #Include %A_ScriptDir%\Const_TreeView.ahk #Include %A_ScriptDir%\Const_Proc...
- 02 Nov 2014, 21:26
- Forum: Ask For Help
- Topic: Making the Remote TreeView class work
- Replies: 15
- Views: 5545
Re: Making the Remote TreeView class work
Hi just me,
I tested it on Win7 and WinXP and it works well on both patforms.
I'll post an updated version of the class and example scripts in the next comment.
Many thanks!
I tested it on Win7 and WinXP and it works well on both patforms.
I'll post an updated version of the class and example scripts in the next comment.
Many thanks!
- 30 Oct 2014, 15:38
- Forum: Ask For Help
- Topic: Making the Remote TreeView class work
- Replies: 15
- Views: 5545
Re: Making the Remote TreeView class work
Yes it does! Thank you just me!just me wrote:This is seemingly working with AHK U64:
Does the original version OK for 32-bit systems? To work on 32-bit and 64-bit system, should the script be adapted with an if checking %A_Is64bitOS% ?
- 29 Oct 2014, 12:12
- Forum: Offtopic
- Topic: Looking for Rexx
- Replies: 1
- Views: 1329
Re: Looking for Rexx
OK, I found his email address.
- 28 Oct 2014, 16:08
- Forum: Offtopic
- Topic: Looking for Rexx
- Replies: 1
- Views: 1329
Looking for Rexx
Hi,
Does anybody knows if Rexx (on the old forum) is still active maybe under a new nickname?
I'd like to chat with him.
Jean
Does anybody knows if Rexx (on the old forum) is still active maybe under a new nickname?
I'd like to chat with him.
Jean
- 28 Oct 2014, 06:07
- Forum: Ask For Help
- Topic: Making the Remote TreeView class work
- Replies: 15
- Views: 5545
Making the Remote TreeView class work
Two years ago, rbrtryn wrote a class module to handle treeview in Windows (http://www.autohotkey.com/board/topic/84310-class-remote-treeview/). It is not mentioned on what Windows version it was designed but we are some users who tried it on Win 7 finding that some methods do not work (at least GetT...
- 22 Oct 2014, 20:36
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Re: Getting CLSID or SpecialFolderConstant of an Explorer ob
Here is a script doing what I described earlier. Not sure this is the most efficient solution but it "does the jod". Based on CLSID (not KNONWFOLDERID). ; objClassIdByLocalizedName["SpecialFolderLocalizedName"] returns the CLSID of this special folder like "{20d04fe0-3aea-1069-a2d8-08002b30309d}" gl...
- 22 Oct 2014, 08:37
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Re: Getting CLSID or SpecialFolderConstant of an Explorer ob
Let me explain what I want to to: I want to save info about the group of Explorer instances (screen position/size and current folder) in order to allow the user to re-open this group (restoring Explorer windows position and content). Saving position is easy. Saving the current path works well with t...
- 16 Oct 2014, 16:25
- Forum: Ask For Help
- Topic: Getting CLSID or SpecialFolderConstant of an Explorer object
- Replies: 16
- Views: 7516
Getting CLSID or SpecialFolderConstant of an Explorer object
Hi, Considering this code: For pExplorer in ComObjCreate("Shell.Application").Windows ; see http://msdn.microsoft.com/en-us/library/windows/desktop/aa752084(v=vs.85).aspx { strType := "" try strType := pExplorer.Type ; Gets the user type name of the contained document object. "Document HTML" for IE ...