SC CopyData enhanced question

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

SC CopyData enhanced question

Post by binocular222 »

Hi Don,

I tried new beta and my Autohotkey Program does not received WM_Copydata from XYplorer.
However, the returned message seems to have redundant (unreadable) characters in the trailing.
Maybe a leading zero on lp.data

Besides, the instruction in change log here http://www.xyplorer.com/xyfc/viewtopic. ... 550#p84875 might be incorrect.
<curitem> should be double quote instead of single quote.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: SC CopyData enhanced question

Post by admin »

Well, I explained why it HAS to be single quoted. Have you read it?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: SC CopyData enhanced question

Post by binocular222 »

My Autohotkey application received resolved variable regardless <curitem> is quoted or not.
But my main concern is the trailing unreadable characters.
Does anyone using C+ or other programming language experience the same?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: SC CopyData enhanced question

Post by binocular222 »

Sorry Don for buzzing this topic again,
But I'm very close to successfully get WM_Copydata from XYplorer.
Can you check whether lpdata contains trailing unreadable characters/data?
The string I received from XYplorer contains from 0 to 8 trailing-excessive characters?!
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: SC CopyData enhanced question

Post by admin »

Not here.

What characters do you get?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: SC CopyData enhanced question

Post by binocular222 »

E:\7Utilities\XYplorer\XYplorer.exe虴佑皇௔皇ٺJ
C:\Program Files佑皇௔皇ٺJ
D:\Music\Nam佑皇௔皇ٺJ
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: SC CopyData enhanced question

Post by admin »

You know that .cbData contains the length of the data?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: SC CopyData enhanced question

Post by binocular222 »

Yes, here is the result:
lpdata: E:\7Utilities\XYplorer\XYplorer.exe装佑皇௔皇ٺJ cbData: 70
lpdata: C:\Program Files佑皇௔皇ٺJ cbData: 32
lpdata: D:\Music\Nam佑皇௔皇ٺJ cbData: 24

Apperantly, the lenght is not correct
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: SC CopyData enhanced question

Post by admin »

OK, what data are you sending to XY?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: SC CopyData enhanced question

Post by binocular222 »

Oh, I see it
String length = cbData / 2
Aghhhhhhhhh
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: SC CopyData enhanced question

Post by admin »

Aaah! Yes, I should have seen that too.

Post Reply