Scripting Bugs
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Re: Scripting Bugs
get('copieddata', token=3) is suposed to return the received data, but stops at the first | inside data.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Scripting Bugs
Probably because it expects "|" as a delimiter like in "0: hWndSender|dwData|Data"?
One of my scripts helped you out? Please donate via Paypal
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Scripting Bugs
Did you really code it this way?
I think it should be get('copieddata', 3), shouldn't it?
I think it should be get('copieddata', 3), shouldn't it?
Re: Scripting Bugs
help says token 3 is supposed to return the Data portion, like a gettoken() with flag 2.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 65060
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Scripting Bugs
Confirmed. Fix comes. Thanks!SammaySarkar wrote:get('copieddata', token=3) is suposed to return the received data, but stops at the first | inside data.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Scripting Bugs
Hm - now even Don writes it this way... So just to verify - is it:
get('copieddata', token=3)
or
get('copieddata', 3)
get('copieddata', token=3)
or
get('copieddata', 3)
-
admin
- Site Admin
- Posts: 65060
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Scripting Bugs
I just quoted that casual way. It has to be written like this:
get('copieddata', 3)
get('copieddata', 3)
FAQ | XY News RSS | XY X
Re: Scripting Bugs
Peter, what if I typed it like that just to annoy you? 
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
PeterH
- Posts: 2826
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: Scripting Bugs
I'm not annoyed in any waySammaySarkar wrote:Peter, what if I typed it like that just to annoy you?
But I think many people are reading here - and I just want to avoid that they learn token=3, when XY in general doesn't use keyword operands, but only positional, and so you have to write 3
So this was nothing but the wish to get the verification for get('copieddata', 3)
Just again: not annoyed, nothing personal, no other thing but getting it (= the expression) right.
And the just-after-breakfast-list
Re: Scripting Bugs
copydata cannot send empty strings.
Code: Select all
copydata <hwnd>, 'string'; text get('copieddata', 3);copydata <hwnd>, ''; text get('copieddata', 3);Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Scripting Bugs
I know, sorry. (it was critical to get that working asapadmin wrote:You could have told me that.SammaySarkar wrote:xyplorer's copydata cannot send empty strings...Next version it can.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club