Page 1 of 1
How 3rd party application get info from XYplorer?
Posted: 30 Mar 2013 14:45
by binocular222
I want to develop 3rd party software that can get info from <curitem>; <curfolder>... but how?
Re: How 3rd party application get info from XYplorer?
Posted: 30 Mar 2013 18:03
by Stefan
Can't you get this by using AHK?
A sledgehammer method (german slang "Holzhammer Methode", can i say this in english too?

)
would be to write the info to a temporary file or to the clipboard, then launch your 3rd party tool
which would read this information out.
Re: How 3rd party application get info from XYplorer?
Posted: 30 Mar 2013 18:13
by binocular222
Oh, yes, I thought of let XYplorer write info to an INI file then read from 3rd party software, but that's not quite a sleek way to go. Obtain info directly from XYplorer.exe is much better. Seems Listary (an folder launcher) did so, but I don't know how
Re: How 3rd party application get info from XYplorer?
Posted: 12 Apr 2013 20:54
by admin
This might help:
http://www.xyplorer.com/release_11.80.htm#RemoteControl
From change log:
Code: Select all
+ DEVELOPERS: Now you can run an XYplorer script from an external
program using the WM_COPYDATA command with XYplorer's hWnd.
- cds.dwData: 4194305 (0x00400001)
- cds.lpData: The syntax is identical to the one of the command
line switch /script=<script resource>, so you can either pass
the path to a script file (commonly called *.xys), or pass the
script directly (must be preceded by ::).
Note that this feature is not available in the Home Edition
(because it does not support scripting).
Re: How 3rd party application get info from XYplorer?
Posted: 12 Apr 2013 22:06
by highend
I hope I didn't misunderstood anything but he was asking for a method to get something OUT of XYplorer, not something into it. Interprocess communication is probably the right keyword for it.
Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 10:13
by admin
highend wrote:I hope I didn't misunderstood anything but he was asking for a method to get something OUT of XYplorer, not something into it. Interprocess communication is probably the right keyword for it.
Right. Well, he could use the clipboard as channel.
Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 11:12
by Enternal
admin wrote:highend wrote:I hope I didn't misunderstood anything but he was asking for a method to get something OUT of XYplorer, not something into it. Interprocess communication is probably the right keyword for it.
Right. Well, he could use the clipboard as channel.
Talking about clipboard, perhaps you should have some functions that allows XYplorer to also read clipboard information. Using that together with external application would allow interesting things you can do with both sides. As of now, XYplorer can only copy things to the clipboard but not out of it.
Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 11:20
by admin
<clipboard>

Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 11:24
by Enternal
admin wrote:<clipboard>


*looks through Scripting under Help but found nothing.
*looks at Variables under Help...

Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 11:36
by highend
Clipboard as a way to exchange information between different applications -> Not really a good way...
It's just unpredictable of what's actually inside of it (you're working with a text editor while it's in use for exchanging data and want to copy / paste something...)
It's better to use one / two tempfile(s) and let both applications read / write from the other one.
Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 14:32
by admin
I'm thinking about adding a command CopyData() that can be used to copy data from XY to some other window.
Re: How 3rd party application get info from XYplorer?
Posted: 13 Apr 2013 17:05
by binocular222
<clipboard>! Quite creative. But I still hope for CopyData() to come soon.