XY can do a lot of things (coffee too) but certain tasks require third party utilities that need to communicate their results back to XY.
Using a text file as intermediate step is a classic, but it's not that elegant.
The recent addition of copydata is neat, but can't be used always. More specifically, it's great for communication between two XYs and from XY to other programs, but not the other way around. In fact, you need to use a language which can send a WM_COPYDATA message.
So my question is: besides C, C++, Autoit and some others, is there a way to send a WM_COPYDATA message to XY using only the means provided by a fresh Windows install?
XYplorer and inter-process communication (IPC)
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
XYplorer and inter-process communication (IPC)
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
admin
- Site Admin
- Posts: 66293
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: XYplorer and inter-process communication (IPC)
Just curious: What kind of message is on your mind?
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: XYplorer and inter-process communication (IPC)
For example, in my updating script i rely on a couple of vbs files that do something and then write little text files which are then read by XY. If VBScript supported WM_COPYDATA I could use that, but afaics it doesn't.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: XYplorer and inter-process communication (IPC)
Well you can use .NET to access SendMessage in USER32.dll, which means with a little work you should be able to do the same in PowerShell.
I wouldn't be surprised if you can do something similar with VBScript.
I wouldn't be surprised if you can do something similar with VBScript.
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: XYplorer and inter-process communication (IPC)
Thanks for the suggestion, I'll try searching more about SendMessage and User32.dll
I probably have overlooked something important during my first searches with big G.
I probably have overlooked something important during my first searches with big G.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: XYplorer and inter-process communication (IPC)
Nope, looks like I have to make the big jump to C++.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
XYplorer Beta Club