What type number instead of 21 for FullPathSRC

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

What type number instead of 21 for FullPathSRC

Post by *sexy69 »

FullPathSRC.ahk

Code: Select all

#SingleInstance, Force
#IfWinExist, ahk_class TTOTAL_CMD
   FileDelete, B:\Temp\Path(ActiveWindow).txt
   SendMessage 1074, 21, 0, , ahk_class TTOTAL_CMD ;PathActiveWindow -> B:\TEMP\
   ControlGetText, varPathInTC, , ahk_id %ErrorLevel%
   StringReplace, varPathInTC, varPathInTC, >, \
   StringReplace, varPathInTC, varPathInTC, \\, \
   FileAppend,%varPathInTC%, B:\Temp\Path(ActiveWindow).txt
Return
SendMessage 1074, ??, 0, , ahk_class TTOTAL_CMD ;FullPathSRC -> B:\TEMP\file.txt

What type number instead of 21 for FullPathSRC
Skif_off
Member
Member
Posts: 132
Joined: 2013-09-30, 13:13 UTC

Post by *Skif_off »

Use %P%N (or %V) or add to script:
1. Send WM_USER+50 with wparam set to 1000 to get active panel: 1=left, 2=right;
2. Send WM_USER+50 with wparam set to 1007/1008 to get index of current item (caret);
3. Send LB_GETTEXTLEN;
4. Send LB_GETTEXT.

Add:

Sorry, I forgot:
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)
New WM_COPYData Examples.
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

I need a Full Path Source -> B:\TEMP\file.txt

If you know, then copy my code and correct it.
Post Reply