Code: Select all
v12.30.0104 - 2013-04-15 10:24
+ SC CopyData enhanced: Added a mode (previously "flags") to
immediately return the text, with variables resolved, to the sender.
Syntax: copydata hwnd, data, mode
mode:
2: Resolve variables in data and return to sender immediately.
Variables are XYplorer native and environment variables.
Example:
- Determine <curitem> in another XYplorer instance (hWnd 197078):
copydata 197078, '<curitem>', 2; echo <get copieddata 3>;
Note that the single quotes in the example are essential else
<curitem> would be resolved in *this* instance of XYplorer
before being sent to the other instance.
> Note for DEVELOPERS:
The mode parameter in SC CopyData simply select different dwData
- If called with mode 0 then
cds.dwData == 4194304 (0x00400000)
= Do nothing special.
- If called with mode 1 then
cds.dwData == 4194305 (0x00400001)
= Data is XYplorer script; execute this script immediately.
- If called with mode 2 then
cds.dwData == 4194306 (0x00400002)
= Resolve variables in data and return to sender immediately.
So any application can use these dwData values to trigger a
specific reaction in XYplorer when it receives data via
WM_COPYDATA.
! DUBs: Since 20120830 dropping would not work anymore with buttons
pointing to pseudo-executables like *.vbs. Fixed. Now you can drop
on these buttons again. The following extensions are droppable:
.exe .bat .cmd .js .jse .vbe .vbs .wsf .wsh .xys .zip .zipx .gz
.gzip .tar .cab .arj .rar .7z
And you can extend the list of droppable extensions by editing
the tweak DropTargetCustomExtensions like this:
DropTargetCustomExtensions=bim.bam.bum
! User Buttons and Scripts: Some special icon resp. button keys
(dp1, dp2, dp12) did not generate the correct icons in all
contexts. Fixed.
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.
XYplorer Beta Club