Page 1 of 1

[pb4] OPENBAR from cmdline doesn't work.

Posted: 2007-02-22, 21:15 UTC
by D1P
Subj.
If i try to run new OPENBAR cmd from TC commandline, it doesn't work (file not found message appear). But it work, when i try to run it from menu or toolbar button.

Posted: 2007-02-22, 22:58 UTC
by petermad
Exept for CD and cm_list it is the same thing with the other commands that takes parameters: OPENTABS, APPENDTABS, FTPOPEN, LOADSEARCH and SYNCOPEN.

Posted: 2007-02-23, 10:23 UTC
by ghisler(Author)
OPENBAR is not supported on the command line, just like the other commands with parameters. Currently it's not planned to change that.

Posted: 2007-02-23, 10:30 UTC
by Lefteous
Wouldn't it be great if %A would be expanded for internal command with parameters as suggested here?
http://www.ghisler.ch/board/viewtopic.php?t=12184

Posted: 2007-02-23, 22:06 UTC
by Hacker
[mod]Moved to TC 7 beta discussion forum.

Hacker (Moderator)[/mod]

... Not supported but can be done !!!!!

Posted: 2007-02-24, 06:33 UTC
by nsp
ghisler(Author) wrote:OPENBAR is not supported on the command line, just like the other commands with parameters. Currently it's not planned to change that.
:cry: :cry:

But...........:idea:

If you do a user command "em_LoadBarThatMrGhislerDoNotWantIUseFromTheCommandLine" or a shorter one like "em_LoadBar"
command: OPENBAR
parameter: %A

then, you can tip in the command line :
em_LoadBar c:\totalcmd\profiles\bars\MMedia.bar

And then ... the bar show up ! alleluia :)

( Please Mr Ghisler can you unify command as if it accepts parameter, it accepts in the same way :
:arrow: From the menu. (Done)
:arrow: During user command or alias definition. (Done)
:arrow: From the command line. (Almost done with dirty trick)
:arrow: Externally using windows send-message ! (instead of populating the command line !, very dirty trick)

This would be so kind !!!!!

Posted: 2007-02-24, 09:47 UTC
by Lefteous
2nsp
Wow - I didn't know that! didn't find anything in the history. It seems %A must be specified explicitely. It doesn't work if the parameters field is just empty.
Arrow From the command line. (Almost done with dirty trick)
Arrow Externally using windows send-message ! (instead of populating the command line !, very dirty trick)
What's so dirty about these two? User commands are used in all cases. Just typing

Code: Select all

cb <my bar>
is even simpler then typing openbar <my bar>.

Posted: 2007-02-24, 14:08 UTC
by nsp
Lefteous wrote: It doesn't work if the parameters field is just empty.
You are right ! I discover it just because i never let parameter empty if i want to use it via cmdline !
Lefteous wrote: What's so dirty about these two?
Personally i enjoy it and, i can most of the time do my stuff working with Powerpro, some prefers AHK ... ;)

1) You have to use a (additional) usercmd to make the std cmd work as you want !

This is a small trick that make TC not so user friendly to new/occasional users.

2) I do not understand why some command works from the menu or the cmd line and not using external automation tools (sendmessage) ...

3) we have wonderful %f %F %L ..... pseudo variable not available in cmdline and !

So i create temporary em_cmd in usercmd.ini in order to launch them externally ! ( It works like a charm ! )

4) cm_list do not accept parameters from cmd line ... so you call the external lister.exe .....


These are tricks, i use and share with people i convinced to use TC.

Posted: 2007-02-25, 16:10 UTC
by ghisler(Author)
Nice, you found a way to do it which wasn't even planned. :)