FavMenu 2.0

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

This is getting better and better! Thanks!
license #76904
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

many thanks :)
just tested the new version and it works pretty fine...

... and now that my previously reported bugs are solved... I can report new ones... hehe... I only hope that you're still open to suggestions :)

so... here we go
- the menu does not autorefresh :(. Adding new items in TC don't show up in the scripts menu.....
- as said before... I use TC variables (%$DESKTOP%, etc) which obviously don't work in windows dialogs. Thinking further on this... you could (I know you could :P) add some lines to the script where I could set my own paths
Ex: %$DESKTOP%='E:\Docs\Desktop' (I don't know much of ahk sintax... so don't you laugh :twisted:)

:) ... if this is done... it will be hard to thank you enough... :)
TC for Linux please!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2TucknDar
thx a lot

2roentgen666
and now that my previously reported bugs are solved... I can report new ones
Those are not bugs. IT IS BY DESIGN !!!

- I am already thinking about refreshing the menu each time. Not a big deal but I don't update this menu so often, and when I do, its not the end of the world to press reload in the tray. If you just want to change items properties its better and 10x faster to do it in PROPERTIES dialog then in TC and that item is automatically refreshed

- TC Variables: why do you use those ? You can replace them in TC menu with acctual path if you want those paths to work. I could add this feature, but, that is too much job for something not very usable that can be easily fixed at your side. If you could give me the complete list of all pseudo variables I might do that for you.
Habemus majkam!
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

majkinetor ! wrote: Those are not bugs. IT IS BY DESIGN !!!
ohh no... not you too :twisted:
majkinetor ! wrote:Not a big deal but I don't update this menu so often, and when I do, its not the end of the world to press reload in the tray.
Not a big deal for me too... just felt some dark need to report a bug :P... and you see... :oops: I never thought about reloading the script myself :oops:
majkinetor ! wrote:TC Variables: why do you use those ?
:evil: do I really have to answer this? :evil: ... well... first that comes to my mind: using TC everywhere, on all systems... with no need to change anything
(as a side note: I've seen 'programs' that don't support %tmp%-a standard win variable - I just hate this... :evil: )
majkinetor ! wrote: If you could give me the complete list of all pseudo variables I might do that for you
and I won't be charged for stressing you too much??? :P :evil: that'd be cool.

anyway here you go
TC help wrote:pseudo environment variables supported in path names, pointing to locations of virtual folders:
%$APPDATA%
%$COMMON_APPDATA%
%$LOCAL_APPDATA%
%$DESKTOP%
%$COMMON_DESKTOPDIRECTORY%
%$PERSONAL% (My Documents)
%$COMMON_DOCUMENTS%
%$PROGRAMS%
%$STARTMENU%
%$COMMON_PROGRAMS% (All Users start menu)
%$FONTS%
%$STARTUP%
%COMMANDER_PATH% (:P)
(use lowercase to access env vars with these names)
TC for Linux please!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

The pseudo environment strings are built from so called CSIDLs
Some CSIDLs point to physical and some to virtual folders. All pseudo-environent strings available in TC point to physical folders.
There are several functions to get the path or item id list from a CSIDL.

Easy to add - I guess just 30 seconds :lol:

BTW: There is no virtual start menu folder. The start menu is just the start menu. If open try to edit it only the users' start menu can be edited.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2roentgen666
That's not a complete list :wink:
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I just saved the script, put in the path to TC an wincmd.ini and run it. But when I use Ctrl+w I get the following error:

Code: Select all

---------------------------
tc_favmenu.AHK
---------------------------
Error: Menu does not exist.  The current thread will exit.

Specifically: sub1

	Line#
	117: if (mnu = "-") or (mnu = "--")  
	118: Goto,plusminus
	120: OnShowWindow(true, 0)  
	121: Return
	123: Return
	127: Return
	135: MouseGetPos,mouseX,mouseY
--->	136: Menu,sub1,show,%mouseX%,%mouseY%
	137: Return
	142: {
	145: separator := false
	146: cmd_cnt = 0
	147: g_sub_cnt += 1
	150: sub_num = %g_sub_cnt%
	151: submenu_id = sub%sub_num%

---------------------------
OK   
---------------------------
What am I doing wrong?

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
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

XPEHOPE3KA wrote:2roentgen666
That's not a complete list :wink:
well ... I did by best :P. anyway... those are the ones that I use

Do you mind telling what other variables are available?
TC for Linux please!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

I've told that already - see the previous page.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I hope that newer TC versions will support all missing strings :roll:
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Lefteous wrote:I hope that newer TC versions will support all missing strings :roll:
like 'My Music', 'My Pictures'??? that would fit my taste :wink:
TC for Linux please!
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2roentgen666
like 'My Music', 'My Pictures'??? that would fit my taste
MyPictures already works ( %$MYPICTURES% ). MyMusic and MyVideos are really missing.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2Lefteous
Easy to add - I guess just 30 seconds :lol:
Why laughing? You said that it can be done faster and I beleive you, I didn't know about CSIDLs. I thought that I had to do manualy from the registry for each variable. Thx for the note. I will add this sooner or later. If only Ghisler listen to what other people are talking I wouldn't have to isue that sentence so often....
Nevertheless, you have to consider that this is AHK not C so, general API & COM interventions are not so fast.
BTW: There is no virtual start menu folder.
I know. But when you clik start button it will unite those 2 places in single view. Why would I need just 1 part?

2SheepDog
What am I doing wrong?
If you have empty submenus it will behave like that. Send me your DirMenu section to investigate, anyway.

2roentgen666
do I really have to answer this?
Yes you do. Because maybe I learn something from you.
I use ONLY portable programs on my computer. So if something can make me more portable it is good. But those vars point mostly to PERSONAL folders. And when you move your TC to anothers person computer, why would you wan't access to HIS personal folders.

2XPEHOPE3KA
what is wrong with you, again ?

2all
I will try to add refreshing menus in the future. I realised that it can be done only when menu is changed. This was originaly hard to notice since TC can change any part of the ini file at any moment without changing the dirmenu section.
I will do some smart recognition when only dirmenu is changed but this will not count editing existing items, just adding or removing. If you want to change existing item, it's best to use integrated Properties then TC anyway since it will only update that ini entery, without populating entire dirmenu again, like TC.
Habemus majkam!
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

:D :D :D

Mr Ghisler went to smoke a cigarette just in the middle of coding those variables.... and forgot about implementing the rest...

:D :D :D
MyPictures already works
anyway... thanks for the info :)
TC for Linux please!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2majkinetor !
what is wrong with you, again ?
Again nothing.
And when you move your TC to anothers person computer, why would you wan't access to HIS personal folders.
When I move to my university I want to access my documents there also, cuz they are MY documents.
Same with one's work, etc.
If only Ghisler listen to what other people are talking I wouldn't have to isue that sentence so often....
You seem to belong to the first category :wink:
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Post Reply