or an internal command to the TOTALCMD.EXE
for to execute all that "WM_USER+50" and CM_ plus EM_ commands from an external scripting tool?
In combination with an new system variable like %Commander_Return%
set by TC and filled with the returned value of the executed command.
Using SendMessage is fine, but often to much explanation and additional tools and script sharing needed.
Something like:
Code: Select all
@ECHO OFF
totalcmd.exe /E=U "1000" ;;; get active panel
If %Commander_Return% = 1 Then set MyCommand=9 (leftpath) Else set MyCommand=10 (rightpath)
totalcmd.exe /E "CD %MyCommand%"
totalcmd.exe /E "CM_GOTOFIRSTENTRY 0"
totalcmd.exe /E "cm_GotoNext"
totalcmd.exe /E "em_LaunchNotepad"
totalcmd.exe /E "CD C:\Temp"
Example commands as found on the forum:
New cm_ commands for navigation
viewtopic.php?p=431290#p431290
TC9: "Send WM_USER+50 with wparam" - how-to?
viewtopic.php?p=310263#p310263