Danke.

Roman
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
intTCCommand := 2127 ; cm_OpenRecycled
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD
Code: Select all
intTCCommand := 2122 ; cm_OpenDrives
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD
Code: Select all
intTCCommand := 2122 ; cm_OpenDrives
run, C:\totalcmd\TOTALCMD64.EXE /N ; new window
Sleep, 500
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD
Code: Select all
intTCCommand := 2122 ; cm_OpenDrives
run, C:\totalcmd\TOTALCMD64.EXE /O /T ; new tab in the existing window
Sleep, 500
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD
Code: Select all
run, C:\totalcmd\TOTALCMD64.EXE
Sleep, 1000
intTCCommand := 2122 ; cm_OpenDrives
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD ; works
MsgBox, cm_OpenDrives worked
intTCCommand := 2123 ; cm_OpenControls
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD ; does not work
MsgBox, cm_OpenControls did NOT work
intTCCommand := 2127 ; cm_OpenRecycled
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD ; works
MsgBox, cm_OpenRecycled worked
Code: Select all
cm_OpenNewTab=3001 ;Open new tab
SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
Code: Select all
intTCCommand := 2123 ; cm_OpenControls
SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD ; does not work
MsgBox, cm_OpenControls did NOT work Errorlevel: %Errorlevel%
It just does nothing. I tried on 2 PCs (same config: Win 7 64-bit).hi5 wrote:The cm_OpenControls works fine here, both 32 and 64 bit. What does the error level say:- note it can be a bit slow...Code: Select all
intTCCommand := 2123 ; cm_OpenControls SendMessage, 0x433, %intTCCommand%, , , ahk_class TTOTAL_CMD ; does not work MsgBox, cm_OpenControls did NOT work Errorlevel: %Errorlevel%
Yes, I've look at this lists but too quickly, obviously... I'll try it later tonight. Thanks.hi5 wrote:To open a new tab you need to use another SendMessage firstlook in TOTALCMD.INC for all codes (if you haven't already) - there is also a section on Tabs.Code: Select all
cm_OpenNewTab=3001 ;Open new tab SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
Code: Select all
cm_OpenNewTab=3001
cm_OpenDrives := 2122
cm_OpenRecycled := 2127
cm_OpenControls := 2123
cm_OpenNetwork := 2125
cm_OpenDesktop := 2121
run, C:\totalcmd\TOTALCMD64.EXE
WinWait, ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenNetwork%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenRecycled%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenControls%, , , ahk_class TTOTAL_CMD ; thid opens the recycle bin again
SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenDrives%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenNewTab%, , , ahk_class TTOTAL_CMD
SendMessage, 0x433, %cm_OpenDesktop%, , , ahk_class TTOTAL_CMD
Code: Select all
cm_OpenNetwork := 2125
cm_OpenRecycled := 2127
cm_OpenDrives := 2122
cm_OpenDesktop := 2121
run, C:\totalcmd\TOTALCMD64.EXE, , , OutputVarPID
WinWait, ahk_pid %OutputVarPID%, , 15
SendMessage, 0x433, %cm_OpenNetwork%, , , ahk_class TTOTAL_CMD
run, C:\totalcmd\TOTALCMD64.EXE, , , OutputVarPID
WinWait, ahk_pid %OutputVarPID%, , 15
SendMessage, 0x433, %cm_OpenRecycled%, , , ahk_class TTOTAL_CMD
run, C:\totalcmd\TOTALCMD64.EXE, , , OutputVarPID
WinWait, ahk_pid %OutputVarPID%, , 15
SendMessage, 0x433, %cm_OpenDrives%, , , ahk_class TTOTAL_CMD
run, C:\totalcmd\TOTALCMD64.EXE, , , OutputVarPID
WinWait, ahk_pid %OutputVarPID%, , 15
SendMessage, 0x433, %cm_OpenDesktop%, , , ahk_class TTOTAL_CMD
Yes. It works.Dalai wrote:Can you open the control panel by typing cm_OpenControls in TC's command line?
When typing manually? No. When using the SendMessage? No sound, no mouse pointer change. Really as if nothing happened.Dalai wrote:Do you hear some Windows sound after doing so?
This has been added to the wishlist for TC v9 and has been developed. Thanks fo ghisler for this.Dalai wrote:If there were a command SAVETABS (as opposed to OPENTABS and APPENDTABS) this would be an easy task.
Code: Select all
cm_CopySrcPathToClip := 2029
SendMessage, 0x433, %cm_CopySrcPathToClip%, , , ahk_class TTOTAL_CMD
For those interested, I will continue the discussion with him on my website.Hello Jean,
em_commands should be appended to the file usercmd.ini located in the TC Home dir.
Below an example from my file which contains 2 em_commands to save all open tabs into a file
and restore them.
em_commands are used the same way as cm_commands.
I suggest adding such commands by your set-up and manually for the portable version.
Example Usercmd.ini entries:
[em_savealltabs]
cmd=SAVETABS2L %COMMANDER_PATH%\SAVETABS2L.tab
menu=Save all tabs to file
[em_OpenSavedTabs]
cmd=OPENTABS %COMMANDER_PATH%\SAVETABS2L.tab
menu=Open tabs from file
Discussion has been moved to a page dedicated to TC support in QAP:JnLLnd wrote:For those interested, I will continue the discussion with him on my website.
http://www.quickaccesspopup.com/support/#comment-11574