[pb4] OPENBAR from cmdline doesn't work.

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

[pb4] OPENBAR from cmdline doesn't work.

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post 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.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to TC 7 beta discussion forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

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

Post 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 !!!!!
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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>.
User avatar
nsp
Power Member
Power Member
Posts: 1912
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Nice, you found a way to do it which wasn't even planned. :)
Author of Total Commander
https://www.ghisler.com
Post Reply