Send script to topmost XY via WM_COPYDATA

Discuss and share scripts and script files...
Post Reply
highend
Posts: 14578
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Send script to topmost XY via WM_COPYDATA

Post by highend »

Reference: viewtopic.php?p=227057#p227057

It's a signed executable, rename the attached .xys to .exe

Code: Select all

0 arguments     : It takes the clipboard content to send it to XY
<> 0 argument(s): All argument(s) are combined into a single one!
                  So they can be:
                      01. A full path to a script file (quote it if it has spaces!)

                      02. A one-liner script
                          Using double-quotes inside the script is allowed but
                          YOU have to make sure it's syntactically correct!

Scripts send via wm_copydata require a trailing "::"
The .exe makes sure it exists and if not, adds it, so all these calls should work:

Examples
========
// Clipboard contains the script
"XY_Send script.exe"


// Script to read & send, make sure it exists
"XY_Send script.exe" "D:\a.xys"


// Script code to send
"XY_Send script.exe" $r = popupmenu("a|b"); e $r;

Variations for double/single quotes (all of them should work):
"XY_Send script.exe" "e "a";"
"XY_Send script.exe" "e 'a';"
"XY_Send script.exe" 'e "a";'
"XY_Send script.exe" 'e 'a';'
"XY_Send script.exe" e "a";
"XY_Send script.exe" e 'a';
v0.2
XY_Send script.xys
(44.38 KiB) Downloaded 622 times
One of my scripts helped you out? Please donate via Paypal

Post Reply