F4 Associated editor issue

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

nhojnavslig
Posts: 2
Joined: Sun Feb 05, 2006 9:11 am

F4 Associated editor issue

Post 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
User avatar
xnview
Author of XnView
Posts: 36412
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: F4 Associated editor issue

Post 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...
Pierre.
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Re: F4 Associated editor issue

Post 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
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Post 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.
Last edited by ckit on Sun Feb 05, 2006 11:22 am, edited 1 time in total.
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Post 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 --
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Post by ckv »

XnView file association manager made by ckv (screenshot)
It's not ready to release yet.





This is not a joke :)
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Post by ckit »

ckv,
Does that include adding "Edit" entries into the registry as well?

BTW, Thanks!
User avatar
ckv
Posts: 786
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow

Post 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
Last edited by ckv on Tue Apr 18, 2006 2:53 pm, edited 1 time in total.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

I still think this would be better and easier for normal users.
nhojnavslig
Posts: 2
Joined: Sun Feb 05, 2006 9:11 am

Post by nhojnavslig »

Big THANKS for You ckit
Works fine for me

regards John
ckit
XnThusiast
Posts: 2451
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Post 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 :)