Scripting Bugs

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: 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%).

:info: We strongly 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, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
admin
Site Admin
Posts: 65460
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting Bugs

Post by admin »

:whistle: :cup:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

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 ]

highend
Posts: 14691
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Scripting Bugs

Post by highend »

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

Post by PeterH »

Did you really code it this way?

I think it should be get('copieddata', 3), shouldn't it?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

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 ]

admin
Site Admin
Posts: 65460
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting Bugs

Post by admin »

SammaySarkar wrote:get('copieddata', token=3) is suposed to return the received data, but stops at the first | inside data.
Confirmed. Fix comes. Thanks!

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

:tup:
Icon Names | Onyx | Undocumented Commands | xypcre
[ 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

Post by PeterH »

Hm - now even Don writes it this way... So just to verify - is it:
get('copieddata', token=3)
or
get('copieddata', 3) :?:

admin
Site Admin
Posts: 65460
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting Bugs

Post by admin »

I just quoted that casual way. It has to be written like this:
get('copieddata', 3)

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Scripting Bugs

Post by PeterH »

:tup: :om: :cup:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

Peter, what if I typed it like that just to annoy you? :mrgreen:
Icon Names | Onyx | Undocumented Commands | xypcre
[ 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

Post by PeterH »

SammaySarkar wrote:Peter, what if I typed it like that just to annoy you? :mrgreen:
I'm not annoyed in any way :naughty: :D

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 :tup: :cup: :om:

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

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 ]

admin
Site Admin
Posts: 65460
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Scripting Bugs

Post by admin »

Fixed in v15.70.0111.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Scripting Bugs

Post by bdeshi »

admin wrote:
SammaySarkar wrote:xyplorer's copydata cannot send empty strings...
You could have told me that. :) Next version it can.
I know, sorry. (it was critical to get that working asap :ghost: )
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply