Page 1 of 1
F4 Associated editor issue
Posted: Sun Feb 05, 2006 9:37 am
by nhojnavslig
Hello,
I wonder if i can change the "associated editor" with an other program then mspaint, so it can be opened by pressing the F4 key?
I searched the forum, and found a few threads about it, but i am still a bit confused if it can, or can not be done?
Someone wrote; it's easy, ... just GOOGLE for it, ... but i cant find what i am looking for!
For instance, where is the association made for mspaint.exe to be the default editor?
Is this done by XNview, or WindowsXP, if so, can this be changed?
Thanks in advance, hope someone can help me out here
GRTZ John
Re: F4 Associated editor issue
Posted: Sun Feb 05, 2006 9:48 am
by xnview
nhojnavslig wrote:Hello,
I wonder if i can change the "associated editor" with an other program then mspaint, so it can be opened by pressing the F4 key?
I searched the forum, and found a few threads about it, but i am still a bit confused if it can, or can not be done?
Someone wrote; it's easy, ... just GOOGLE for it, ... but i cant find what i am looking for!
For instance, where is the association made for mspaint.exe to be the default editor?
Is this done by XNview, or WindowsXP, if so, can this be changed?
Thanks in advance, hope someone can help me out here
GRTZ John
You must change it in windows explorer associations...
Re: F4 Associated editor issue
Posted: Sun Feb 05, 2006 10:53 am
by ckit
nhojnavslig wrote:Hello,
I wonder if i can change the "associated editor" with an other program then mspaint, so it can be opened by pressing the F4 key?
I searched the forum, and found a few threads about it, but i am still a bit confused if it can, or can not be done?
Someone wrote; it's easy, ... just GOOGLE for it, ... but i cant find what i am looking for!
For instance, where is the association made for mspaint.exe to be the default editor?
Is this done by XNview, or WindowsXP, if so, can this be changed?
Thanks in advance, hope someone can help me out here
GRTZ John
Add your support here ->
http://newsgroup.xnview.com/viewtopic.p ... ted+editor
Posted: Sun Feb 05, 2006 10:55 am
by ckit
Pierre, when a user presses F4 for default editor what registry key does XnView read?
Thanks.
Update:
Nevermind I just "Regmon" to check how XnView uses and was horrified beyond words (how many unknown references?)
Anyway I found the fix for adding your own default editor...
1. Open RegEdit
2. Goto HKEY_CLASSES_ROOT\XnView.jpg\shell
3. On the "shell" branch, right-click "New" -> "Key"
4. Call it "edit", click on "edit" -> right-click "New" -> "Key"
5. Call it "command" click on "command"
6. In the opposite window -> double-click on the (Default) and enter your editor path (eg. "C:\Program Files\PhotoFiltre\PhotoFiltre.exe" "%1")
Sadly, this only works for one file type at a time!
I'll try and make a REG file for the common types using PhotoFiltre.
Posted: Sun Feb 05, 2006 11:20 am
by ckit
Ok to make this easier you can "cut and paste" this into a REG file using Notepad and then replace PhotoFiltre with your own editor after that all you have to do is right-click on the file -> Merge!
-- begin cut and paste --
REGEDIT4
[HKEY_CLASSES_ROOT\XnView.bmp\shell\edit]
[HKEY_CLASSES_ROOT\XnView.bmp\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.emf\shell\edit]
[HKEY_CLASSES_ROOT\XnView.emf\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.gif\shell\edit]
[HKEY_CLASSES_ROOT\XnView.gif\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.iff\shell\edit]
[HKEY_CLASSES_ROOT\XnView.iff\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.jp2\shell\edit]
[HKEY_CLASSES_ROOT\XnView.jp2\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.jpg\shell\edit]
[HKEY_CLASSES_ROOT\XnView.jpg\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.pcx\shell\edit]
[HKEY_CLASSES_ROOT\XnView.pcx\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.pic\shell\edit]
[HKEY_CLASSES_ROOT\XnView.pic\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.png\shell\edit]
[HKEY_CLASSES_ROOT\XnView.png\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.tga\shell\edit]
[HKEY_CLASSES_ROOT\XnView.tga\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.tif\shell\edit]
[HKEY_CLASSES_ROOT\XnView.tif\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
[HKEY_CLASSES_ROOT\XnView.wmf\shell\edit]
[HKEY_CLASSES_ROOT\XnView.wmf\shell\edit\command]
@="\"C:\\Program Files\\PhotoFiltre\\PhotoFiltre.exe\" \"%1\""
-- end cut and paste --
Posted: Sun Feb 05, 2006 12:07 pm
by ckv
Posted: Sun Feb 05, 2006 12:11 pm
by ckit
ckv,
Does that include adding "Edit" entries into the registry as well?
BTW, Thanks!
Posted: Sun Feb 05, 2006 12:14 pm
by ckv
ckit wrote:ckv,
Does that include adding "Edit" entries into the registry as well?
BTW, Thanks!
It's on on the planning table.

But the first version probably comes without it.
Edit: new screenshot
XnView file association manager made by ckv
Posted: Sun Feb 05, 2006 3:28 pm
by Dreamer
I still think
this would be better and easier for normal users.
Posted: Sun Feb 05, 2006 6:13 pm
by nhojnavslig
Big THANKS for You ckit
Works fine for me
regards John
Posted: Sun Feb 05, 2006 11:27 pm
by ckit
Dreamer wrote:I still think
this would be better and easier for normal users.
For what it's worth I agree and have added my support but that will take time. Until then I have the workaround
