How 2 copy a selected file path without Error Dialog?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Corey2341
Junior Member
Junior Member
Posts: 2
Joined: 2016-08-31, 07:17 UTC

How 2 copy a selected file path without Error Dialog?

Post by *Corey2341 »

SendMessage(hwnd, 1075, 2018, 0)

It works fine mostly. But when I selected the ".." folder on the top of list, TC shows a Error dialog.

Is there any way to avoid this msg?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC only shows this error if ".." is the only selected item, and it is OK because you can't copy path of that item. If there are selected multiple items and "..", TC silently deselects ".." item.
Corey2341
Junior Member
Junior Member
Posts: 2
Joined: 2016-08-31, 07:17 UTC

Post by *Corey2341 »

I was planning support TC in my Software,

sourceforge ccseer

But it's really user-unfriendly, if it keep showing error msg only because people just selected a parent folder path.

What can I do to solve it in my program?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, perhaps you could check if focused item index is 0 and its name is ".."...
History.txt wrote:25.11.11 Added: Send WM_COPYDATA with dwData='G'+256*'A' and lpData pointing to command to get back WM_COPYDATA with various info. Supported commands A: Active side (returns L or R), or two byte command: first byte: L=left, R=right, S=source, T=target. Second byte: P=current path, C=list count, I=caret index, N=name of file under caret. dwData of return is 'R'+256*'A' (32/64)
Post Reply