Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

XNView plugin?

Questions and comments specific to a particular plugin should go here.
Post Reply
elxic
Posts: 5
Joined: Tue Dec 18, 2012 4:07 pm

XNView plugin?

Post by elxic »

Hello,
I recently discovered this wonderful application and I would like to use it with XnView but I am unable to create a plugin for it. Does anyone have it?
Thank you very much.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

As far as I know, there is no plugin for XnView.
Also, I do not know of anyone who works on it.
However, maybe you can use either IrfanView or ArtSage instead of XnView.
For these two programs we have plugins.
IrfanView plugin is included in the installation program and the plugin for ArtSage is here.

Pako
elxic
Posts: 5
Joined: Tue Dec 18, 2012 4:07 pm

Re: XNView plugin?

Post by elxic »

Pako thank you very much,
I know IrfanView, but I prefer XnView, I will create all events for use with my remote.
Can I share some part of configuration file?
Greetings.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

elxic wrote:Can I share some part of configuration file?
Unfortunately I do not understand your question.
What do you mean by "configuration file"?

Pako
elxic
Posts: 5
Joined: Tue Dec 18, 2012 4:07 pm

Re: XNView plugin?

Post by elxic »

xml file that contains the configuration
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

Well. But I still do not understand what you are asking.
I'm sorry. It's probably because I do not speak English.
Perhaps there might be able to help someone else also.

Pako
elxic
Posts: 5
Joined: Tue Dec 18, 2012 4:07 pm

Re: XNView plugin?

Post by elxic »

Do not worry, I do not speak English, I use google translator. :wink:
I wonder if it is possible to save only part of the configuration file (XML file) and not whole. So I could share the configuration I've done for XnView.
Greetings and thanks for your interest.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

Yes, of course it is possible (with small restrictions).
You can copy any folder (or macro or action). But with one operation only one item.
Once you have chosen part of configuration in the clipboard,
then you perform an "paste" action but into plain text file !

Back it goes the same way (but vice versa). In the text file you make a "copy",
while the "paste" you make in the configuration tree.

Pako
elxic
Posts: 5
Joined: Tue Dec 18, 2012 4:07 pm

Re: XNView plugin?

Post by elxic »

Thank you very much,
I did not think it was that simple.
I attached the folder that contains the actions for XnView (with Lirc).

To start XnView:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Macro Name="Iniciar XNView">
<Event Name="Lirc.PREVIEW" />
<Action>
System.Execute(u'C:\\Archivos de programa\\XnView\\xnview.exe', u'', 0, False, 2, u'', False)
</Action>
<Action>
Window.BringToFront()
</Action>
</Macro>
</EventGhost>
To switch to mode XNView:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Macro Name="Switch to mode: XNView">
<Event Name="Task.Activated.xnview" />
<Action>
EventGhost.EnableExclusive(XmlIdLink(562))
</Action>
</Macro>
</EventGhost>
To disable XnView:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Macro Name="Deshabilitar: XNView">
<Event Name="Task.Deactivated.xnview" />
<Event Name="Task.Destroyed.xnview" />
<Action>
EventGhost.DisableItem(XmlIdLink(562))
</Action>
</Macro>
</EventGhost>
To handle XNView, paste in "Context folder":
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1600">
<Folder Name="XNView" id="562" Enabled="False" Expanded="True">
<Macro Name="Intro" Expanded="True">
<Event Name="Lirc.5" />
<Action>
Window.SendKeys(u'{Return}', False)
</Action>
</Macro>
<Macro Name="Escape">
<Event Name="Lirc.0" />
<Action>
Window.SendKeys(u'{Escape}', False)
</Action>
</Macro>
<Macro Name="Arriba">
<Event Name="Lirc.2" />
<Action>
Window.SendKeys(u'{Up}', False)
</Action>
</Macro>
<Macro Name="Abajo">
<Event Name="Lirc.8" />
<Action>
Window.SendKeys(u'{Down}', False)
</Action>
</Macro>
<Macro Name="Tabulador">
<Event Name="Lirc.TV/FM" />
<Action>
Window.SendKeys(u'{Tabulator}', False)
</Action>
</Macro>
<Macro Name="Derecha">
<Event Name="Lirc.6" />
<Action>
Window.SendKeys(u'{Right}', False)
</Action>
</Macro>
<Macro Name="Izquierda">
<Event Name="Lirc.4" />
<Action>
Window.SendKeys(u'{Left}', False)
</Action>
</Macro>
<Macro Name="Pantalla completa">
<Event Name="Lirc.FULL_SCREEN" />
<Action>
Window.SendKeys(u'f', False)
</Action>
</Macro>
<Macro Name="Siguiente">
<Event Name="Lirc.CHANNEL+" />
<Action>
Window.SendKeys(u'{PageDown}', False)
</Action>
</Macro>
<Macro Name="Anterior">
<Event Name="Lirc.CHANNEL-" />
<Action>
Window.SendKeys(u'{PageUp}', False)
</Action>
</Macro>
<Macro Name="Cerrar">
<Event Name="Lirc.POWER" />
<Action>
Window.SendKeys(u'{Alt+F4}', False)
</Action>
</Macro>
</Folder>
</EventGhost>
I hope to learn how to create a plugin.
Greetings.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

I'm still confused.
I still do not understand what you expect from me.
Can anyone advise me?

Pako
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XNView plugin?

Post by jonib »

Pako wrote:I'm still confused.
I still do not understand what you expect from me.
Can anyone advise me?
As far as I can tell he don't expect anything from you, he got his config to work and posted his solution.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: XNView plugin?

Post by Pako »

jonib wrote:As far as I can tell he don't expect anything from you, he got his config to work and posted his solution.
jonib
Thanks !

Pako
Post Reply