Change Log for the latest
XYplorer BETA version:
Code: Select all
v12.30.0102 - 2013-04-13 21:27
+ DEVELOPERS: Experimentally added a scripting command CopyData that
internally uses WM_COPYDATA to send data to another window.
Name: CopyData
Action: Send data to another window.
Syntax: copydata hwnd, data, flags
hwnd: Handle of the target window.
data: Text data to send.
flags:
0: Nothing special, simply send the text data.
1: Text data is an XYplorer script to be executed by
the receiving window (which in this case, of course, has
to be XYplorer.exe).
Examples:
- Run a small script in another XYplorer (197078):
copydata 197078, "::echo 'hi';", 1;
- Return the contents of variable <curitem> from another XYplorer
(197078) to this window (1573124), using copydata first in this
XYplorer process and then again in the other XYplorer process
for the return:
copydata 197078, '::copydata 1573124, <curitem>;', 1;
Notes:
- The command only returns when the receiving window has fully
processed the data. For example if you send a script the
command will return only after the script has terminated.
- If called with flags 0 then
cds.dwData == 4194304 (0x00400000)
- If called with flags 1 then
cds.dwData == 4194305 (0x00400001)
+ New variable <hwnd> resolves to the handle of the main application
window. Knowing this handle can be useful when debugging the new
CopyData() command.
+ New temporary variable <pfaitem>, resolves to the item (full path)
the opening application or script in a PFA (Portable File
Association) is associated with. In such a script called via PFA
<pfaitem> can be used. After the PFA is processed the variable is
reset to nothing.
! Find Files by Contents would error out on files that only had a
UTF-8 BOM (3 bytes) but no further contents. Fixed.
To
download the latest BETA version choose a download package: (1)
Installer Package, (2)
No-Install Package.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned.
It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...)
before running a new BETA version. This will also help in fixing any fresh bugs.