TCMenu: Menu starts sometimes somewhere.

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Clas Hortien
Member
Member
Posts: 198
Joined: 2003-03-03, 15:03 UTC

TCMenu: Menu starts sometimes somewhere.

Post by *Clas Hortien »

Hello,

i use the tcmenu addin very often, but sometimes (5 - 10 times a day) it happens that the menu doesn't opens underneath the button, but somewhere on the screen, sometime even outside the TC window.

Look here for a picture.
[url]http://www.hortien.com/upload/tcmenu.jpg[/url]

It may be related to the mouse move and the speed of the mouse move, but i can't proof it.

Furthermore, it is possible to speedup the process of opening the menu ? Sometimes it last very long to open the menu.

Best regards

Clas[/url]
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

This happens all the time for me. It's one reason I tend not to use my TCMenu configured toolbar buttons very much.

Well, that and the fact that TCMenu doesn't support the TC "?" parameter.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
It may be related to the mouse move and the speed of the mouse move
Yes, it is related to mouse movements. It can be affected by anti-virus software too.

2JohnFredC
Well, that and the fact that TCMenu doesn't support the TC "?" parameter.
At least in our company we are using "?" parameter for years. This is a fact.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

For me the biggest lack is that it could not handle %Commander_path% or other systemvariable.
Thus it is for me completely useless.


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

2 VadiMGP
At least in our company we are using "?" parameter for years. This is a fact.
Here is a typical TC button parameter that behaves the way I need:

Code: Select all

?%P%N
...and here is my TCMenu button parameter line:

Code: Select all

c:\utility\wincmd\bars\editors.bar -A %P%N -$
Where do I put the "?"... I need the popup dialog to propose the %P%N value as the default, in exactly the same way that TC does in a regular button.

Any help greatly appreciated.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Sheepdog
For me the biggest lack is that it could not handle %Commander_path% or other systemvariable.
If you have some problem with specific button definition, put your .bar file here. In general, TCmenu handles all environment variables including %Commander_path%.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2VadiMGP
Can you really put %Commender_path% as a part of path to the .bar file? Like this: "%commander_path%\new.bar -$" ? I haven't been able to do it :-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

When I make a button:
Command: TCmenu.exe
Parameter:%Commander_path\ini\%username\addon.bar

I get the message:
"Cannot open 'ommander_pathini\sernameAddon.bar'"
When I replace %Commander_path% and %username% with valid paths it works perfectly well.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Sheepdog
For me the biggest lack is that it could not handle %Commander_path% or other systemvariable.
In this thread you'll find an example of a TCMenu call which uses environment strings. %COMMANDER_PATH% is supported too.

2JohnFredC
TCMenu doesn't support the TC "?" parameter
You have to write the question mark into the parameter field. It may not be sorrounded by quotation marks. TCMenu has its own parameter dialog.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Lefteous wrote:2Sheepdog
For me the biggest lack is that it could not handle %Commander_path% or other systemvariable.
In this thread you'll find an example of a TCMenu call which uses environment strings. %COMMANDER_PATH% is supported too.
2Lefteous
Okay, with the variable in the command- field it works fine. Thanks

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

2Lefteous
You have to write the question mark into the parameter field. It may not be sorrounded by quotation marks. TCMenu has its own parameter dialog.
Could you provide an example? I can't get it to work the way I want.

For instance, this...

Code: Select all

 -A ? %P%N -$
... produces this (8k):
http://www.jfcinc.net/Interfaces/tcmenu01.jpg

But, I want it to do this (8k):
http://www.jfcinc.net/Interfaces/tcmenu02.jpg

Sorry if I am just particularly dense about this. I'm getting old.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2JohnFredC
c:\utility\wincmd\bars\editors.bar -A %P%N -$

Where do I put the "?"...
2djk
Can you really put %Commender_path% as a part of path to the .bar file?
2Sheepdog
When I make a button:
Command: TCmenu.exe
Parameter:%Commander_path\ini\%username\addon.bar
All these cases are not related to TCMenu processing. You mixed up TC and TCMenu processing. "?" parameter (as well as environement variables) in TCmenu button definition processed by TC before starting TCmenu. TCmenu in his turn handles parameters and variables defined in subbar passed to TCMenu. Check readme file for "Special parameters" and "Environment Variables" sections.
For example:
I get the message:
"Cannot open 'ommander_pathini\sernameAddon.bar'"
This strange filename passed to TCmenu by TC! I wrote to Mr. Ghisler about this problem but unfortunately i don't get any answer on this issue.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

VadiMGP wrote:
I get the message:
"Cannot open 'ommander_pathini\sernameAddon.bar'"
This strange filename passed to TCmenu by TC! I wrote to Mr. Ghisler about this problem but unfortunately i don't get any answer on this issue.
You are right. Sorry for make you ('re tool) responsible for it. It never occured to me that TC itself could not be able to pass his 'own' variable.
But I just tried to open my wincmd.ini in Textpad and get the same strange Error message.

Thanks for your hint, I'll post an bug report.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2VadiMGP
True, sorry :oops:
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

OK I guess I had something confused. It doesn't look like I can "?" the parameter string I pass to TCMenu without having the entire string (not just the %P%N) presented in the TC "?" dialogue, as in this:

http://www.jfcinc.net/Interfaces/tcmenu03.jpg

As I understand the behavior, TCMenu uses the string values to the right of the "?" as the PROMPT string for an empty parameter dialog (see images linked to my previous post).

That now finally makes sense to me. Like I said, I must be getting old.

So I guess this is a request that TCMenu itself support a "?" dialog in a manner that lets me modify the parameter string (that is, for my purposes, the filename as represented by the %P%N paramater in the TC parameter string) AFTER I select from the TCMenu...

Thanks
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
Post Reply