Shortcut 2.00 (Content plug-in)

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

Post by *Lefteous »

2XPEHOPE3KA
What was the reason?
The problem is to convert a displayed hotkey t its internal numeric represantation. Maybe I found a way to this conversion but if someone knows a pair of functions which does the job...
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

The problem is to convert a displayed hotkey t its internal numeric represantation.
But the feature worked somehow in shelllinks properties. At least at my place. =)
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 »

2XPEHOPE3KA
Yes "somehow" is correct but many hotkeys couldn't be displayed.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I also think I's better to have this, even if it's not always working (especially if it shows warning when it can't decode a hotkey).
Last edited by m^2 on 2007-02-05, 15:38 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

OK I'll try to find an acceptable solution.
User avatar
versalzen
Power Member
Power Member
Posts: 666
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

%ProgramFiles%

Post by *versalzen »

neat plugin, thanks :-)

please consider, that some user (including me) have shortcuts/lnk-files with Paths/Symbol Paths like: (here on winXP)

%ProgramFiles%\foo\bar.exe


thus, your plugin says, that the Icon Path Exists does not exist.
which is not true.
same with Working Directory Exists
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2versalzen
I couldn't reproduce this so far. Which version of the plug-in do you use?
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, the plugin doesn't work for virtual folders like \\Desktop\ or \\Documents\ at all, but it works fine in real folders like "C:\Documents and Settings\All Users\Dokuments\" or "C:\Documents and Settings\All Users\Desktop\" also for links containing paths like %ProgramFiles% or %SystemDrive%

so maybe versalzen has testet lnk files in a virtual folder?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
versalzen
Power Member
Power Member
Posts: 666
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

Post by *versalzen »

Lefteous wrote:2versalzen
I couldn't reproduce this so far. Which version of the plug-in do you use?
acording to the readme.htm, dated 28.11.2006 22:18, its > Shortcut 2.00 BETA 2. the same version, i downloaded today from the first post in this thread. sorry, did not mention that ;-)
petermad wrote:Well, the plugin doesn't work for virtual folders like \\Desktop\ or \\Documents\ at all, but it works fine in real folders like "C:\Documents and Settings\All Users\Dokuments\" or "C:\Documents and Settings\All Users\Desktop\" also for links containing paths like %ProgramFiles% or %SystemDrive%

so maybe versalzen has testet lnk files in a virtual folder?
hmmm.
virtual folders. dunno what they really are :-)

i tested on an NTFS filesystem in the folder:
"c:\Dokumente und Einstellungen\a-user\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch"

i'm not quite sure, but maybe i should mention that i deactivated
"datum des letzten zugriffs auf ein datei speichern" and "kurze (DOS-) dateiname abspeichern" im "NTFS dateisystem".
via tuneup utility (sorry, german version only. don't know the engl. equivalents)

wincmd.ini:

Code: Select all

Widths8=190,30,30,123,-16,243,120,-22,80,30,-16,-20,363,54,234
Headers8=Fenster\nBeschreibung\n*>>>\nPfad\nParameter\n*>>>\nArbeitsverzeichnis\nSymbol\n*>>>\nNr\nSymbolpfad\nAusführen als\nKommandozeile
Contents8=[=shortcut.Show Command]\n[=shortcut.Description]\n[=shortcut.Path Exists]\n[=shortcut.Path]\n[=shortcut.Parameters]\n[=shortcut.Working Directory Exists]\n[=shortcut.Working Directory]\n[=shortcut.Has Icon Location]\n[=shortcut.Icon Path Exists]\n[=shortcut.Icon Index]\n[=shortcut.Icon Path]\n[=shortcut.Run as]\n[=shortcut.Command Line]
Options8=-1|1
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2versalzen
I can reproduce this with the official version. It seems I have already fixed that in my development version.
User avatar
versalzen
Power Member
Power Member
Posts: 666
Joined: 2003-09-16, 11:52 UTC
Location: kölle, linksrheinisch.

Post by *versalzen »

Lefteous wrote:2versalzen
I can reproduce this with the official version. It seems I have already fixed that in my development version.
nice one .-) ok, i guess the rss-feed of totalcmd.net will inform me/us, when there is a new version available? thanks anyway.
Was nützt der Löffel für die Weisheit, wenn man zu weit vom Suppentopf entfernt sitzt?

Mario
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2versalzen
i guess the rss-feed of totalcmd.net will inform me/us, when there is a new version available?
New versions are announced first here in the forum and later on totalcmd.net.
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Bug report:
I and fenix_productions identified a bug that affects most tools that analyze .lnk files including Shrotcut.wdx.
With a shortcut generated by Skype (attached below) such tools show incorrect information - most importantly that the target is

Code: Select all

C:\WINDOWS\Installer\{5C82DAE5-6EB0-4374-9254-BE3319BA4E82}\Skype.ico
It's not hard to notice that it's bad because double clicking it opens Skype. Correct link information (generated by TinyHexer) is:

Code: Select all

File: '\\VBOXSVR\Shared\2008-07-02\Untitled1' 
Position: 0x00000000 
-- Header -- 
Signature: 0x0000004C ('L') 
GUID: {00021401-0000-0000-C000-000000000046} 
Flags: 0x000050DD 
LNK contains shell item id list (0x01) 
LNK contains description (0x04) 
LNK contains a relative path string (0x08) 
LNK contains a working path (0x10) 
LNK contains a custom icon (0x40) 
LNK contains unicode filenames (0x80) 
File Attr.: 0x00000000 
Created: 0x0000000000000000 ( 12:00:00 AM) 
Modified: 0x0000000000000000 ( 12:00:00 AM) 
Last Access: 0x0000000000000000 ( 12:00:00 AM) 
File size: 0 
Icon index: 0 
ShowWnd: SW_SHOWNORMAL (0x01) 
Hotkey: 0x00000000 
Reserved: 0000000000000000 
-- Shell Item ID List -- 
Length: 0x0127 
Description: Uruchom Skype 
Relative path: ..\..\..\..\Program Files\Skype\Phone\Skype.exe 
Working directory: C:\Program Files\Skype\ 
Icon filename: C:\WINDOWS\Installer\{5C82DAE5-6EB0-4374-9254-BE3319BA4E82}\Skype.ico 
Other data: 1580 bytes 
If you have some troubles with finding correct .lnk filetype reference, Tiny Hexer saves it's structure viewer definitions as scripts that seem easy to analyse.
The problematic shortcut:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="Skype.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="Skype.7z"

N3q8ryccAAJ5tNJliwQAAAAAAAAhAAAAAAAAAOx//SAAJgAwACE/wPuybx6wMWOkTAeIZrlQfW8J
wqfrPv2OpIqKDL6dx9Oxz/t+LS8C50aHNhJjAkedQTJfErMp6dZWRa0IUjTmzf7oSjkwotNZUmsS
kq4/rHjO0GzRNlE+kY2IV3ZQHXZrOvqlIecemmkTVF1v7it+dv5+5whFqVg4qk/+9peyijk0ko0C
OtZZOSgQYihl6mlVNKPdxgxB2+CxnuzaCm4LCpyCcsxmesG4//bsI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cJUPOjt6Osdb4r4TwGN3OP3A7tlGlC
OVynQCMACf/KU+lJxgKwibzdmTgErzNOts/tmVrDPFWZaQKjzSkfERF0ppDmqoCltXruwsHglrlh
RDmVXKOq0CXe1kkB2+g6hTT3DnllKeMAAACBMweuD9VZ9KHXJNP+s34x4pabsPZ6OKSSjR6cxpBS
aAl08dMTO485SmBLz+VFD3Sn/VqzbV0yvyDKVYnbIxhN3B+ayL7yxEW2xG7piK1ObELS7RsQABcG
hDMBCVgABwsBAAEjAwEBBV0AAEAADFwKAQgE62YAAA==
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

What do you expect to see in the "Path" field? Just nothing as in the Windows property dialog?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Windows property dialog doesn't show anything about the Installer directory on my PC.
If there is a path field (I'm not sure about "Element docelowy", which is rather "target"), it's empty.
I'd expect the plugin to show what does the .lnk point to. And regarding the fields it supports now, I would expect "path" or "command line" to show it.
Icon path in the "path" field is definitely misleading.
And considering that "path" means something else (what?), it incorrect.
Answering your question: Yes, I think that your plugin should provide correct information regardless what Windows shows.
ADDED:
BTW it's a very major Windows' security vulnerability.
I have an idea how to write crapware running practically w/out any rights (even on a guest account), almost as powerful as current ones that use kernel drivers.
Does anybody know a good place to report it?
Post Reply