dr Winchell > 2019-12-04 21:00
Jean Lalonde > 2019-12-05 10:28
dr Winchell > 2019-12-06 11:02
(2019-12-05 10:28)Jean Lalonde Wrote: On my system, PDF docs icons are well displayed. What QAP version do you use? I improved this for v10. But some "external" factors can explain why QAP cannot display the proper icon. QAP is relying on info from Windows to set menu icons. More specifically, QAP looks for the "class root" in:
\HKEY_CLASSES_ROOT\.pdf that returns the class root in my case AcroExch.Document.11
Then, \HKEY_CLASSES_ROOT\AcroExch.Document.11\DefaultIcon returns the default icon
C:\Windows\Installer\{AC76BA86-7AD7-1036-7B44-AB0000000001}\PDFFile_8.ico,0
Alternatively (if the code above does not return a valid icon), QAP looks for the executable file of the app associated to the PDF extension:
\HKEY_CLASSES_ROOT\AcroExch.Document.11\Shell\Open\command that returns
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" "%1"
In this case, QAP uses the default icon from the app path C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe
But, AFAIK, all this depends on what Acrobat Reader flavor and what version you have installed on your PC. And this info could be unreliable depending on how install operations went.
There could be other ways of retrieving doc icons. Let me know if you find anything. I got some info about how to retrieve icons using AHK in this old thread:
http://www.autohotkey.com/board/topic/86...con-files/
LaurentG > 2019-12-06 11:14
Jean Lalonde > 2019-12-06 14:27
dr Winchell > 2019-12-06 15:23
(2019-12-06 14:27)Jean Lalonde Wrote: @Dale: When/how do you get this dialog box? If you edit click the "Edit icon resource" ("Edit favorite" / "Menu Options" tab) and remove the " %*" from this string does it work?
@Laurent: in "Options", "Menu Icons" section, check if the checkbox "retrieve icons when refreshing Frequent folders..." is checked. You should not check it if you regularly have frequent folders/files on off-line network drives (like on a portable computer when out-of-office) because this would slow down menu refresh.
Jean Lalonde > 2019-12-06 16:28
dr Winchell > 2019-12-06 17:39
(2019-12-06 16:28)Jean Lalonde Wrote: So, the string you got in the Change icon dialog box (your screen capture) is the default value set by QAP for a PDF document? It is the same string that QAP would use for PDF docs in the Recent Files menu. And this would explain why the "unknown" icon is shown. The question is: from when comes these %* at the end. Can I ask you to check two values in your Windows registry?
First, check the default value for the key
\HKEY_CLASSES_ROOT\.pdf
In my case, the value is "AcroExch.Document.11". Now, use this value (or yours if it is different) to check this other key:
\HKEY_CLASSES_ROOT\AcroExch.Document.11\DefaultIcon
In my case, this returns the path to the PDF icon file.
LaurentG > 2019-12-07 03:07
(2019-12-06 14:27)Jean Lalonde Wrote: @Laurent: in "Options", "Menu Icons" section, check if the checkbox "retrieve icons when refreshing Frequent folders..." is checked. You should not check it if you regularly have frequent folders/files on off-line network drives (like on a portable computer when out-of-office) because this would slow down menu refresh.
Jean Lalonde > 2019-12-07 14:32
dr Winchell > 2019-12-07 15:11
(2019-12-07 14:32)Jean Lalonde Wrote: If the DefaultIcon is not set, QAP falls back to the default icon in the app's executable file (if it has an icon in it). Please, tell me what is the content of the entry:
\HKEY_CLASSES_ROOT\pdf_auto_file\shell\open\command
I guess this is the string with %* at the end. If you can confirm this, I will make some changes to remove these unwanted characters.
Jean Lalonde > 2019-12-07 16:53
dr Winchell > 2019-12-23 21:11
Jean Lalonde > 2019-12-23 21:14
dr Winchell > 2019-12-24 08:36