OPENATTRIBUTES documented?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13102
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

OPENATTRIBUTES documented?

Post by *Hacker »

Hi,
OPENATTRIBUTES does not seem to be documented completely anywhere? E.g. I'd like to see an example on how to automatically add a comment "OK" to all selected files but can't figure it out neither from help nor from history.txt (which I shouldn't have to read).

TIA
Roman
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
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: OPENATTRIBUTES documented?

Post by *petermad »

In the Help serach for OPENATTRIBUTES - https://tcmd.madsenworld.dk/openattributes.png

You need to save a Setting (F2) that add's the comment. If you name the setting for example: AddcommentOK - you can use:

Code: Select all

OPENATTRIBUITES= AddcommentOK
You can also find it in the Help via: Operation -> Menus -> Menu Files -> Change attributes
Last edited by petermad on 2023-07-28, 12:04 UTC, edited 2 times in total.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: OPENATTRIBUTES documented?

Post by *tuska »

Hi,
  1. "Change Attributes..." - Create template
    1. Position cursor on a file or folder, press and hold the Ctrl key and position cursor on the "Files" menu,
      then release the Ctrl key.
    2. Click on Menu "Files" > "Change Attributes..." > ☑️ Change plugin attributes:
    3. Code: Select all

      Plugin:	  Property:   Value:
      tc	  comment     OK
    4. F2 Load/save settings > Save settings: Comment-OK_for_Files&Folders > OK, OK
    5. The TC comment "OK" was created for file under cursor (descript.ion).
      Option: Delete the hidden file "descript.ion" if comment is not needed.
    6. See: wincmd.ini - section [attrplugin]

      Code: Select all

      Comment-OK_for_Files&Folders=tc.comment := OK
      
  2. Button (copy/paste onto your buttonbar)

    Code: Select all

    TOTALCMD#BAR#DATA
    OPENATTRIBUTES=Comment-OK_for_Files&Folders
    
    wcmicon2.dll,28
    OPENATTRIBUTES=Comment-OK_for_Files&Folders|https://www.ghisler.ch/board/viewtopic.php?t=79725
    
    
    -1
  3. Mark files and/or folders and click the button
  4. IMPORTANT note: Any existing comments will be completely overwritten with the text: OK (!).
I derived the solution from the topic "command MULTIRENAME==<settings>".
User avatar
Hacker
Moderator
Moderator
Posts: 13102
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: OPENATTRIBUTES documented?

Post by *Hacker »

petermad, tuska,
Thank you both very much. So these:
OPENATTRIBUTES <parameters> Change Attributes dialog: +f (subfolders), +a/-a +r/-r +h/-h +s/-s +L/+L2 +c +dDate +tTime Plugin_settings
"Plugin_settings" from Command Browser don't refer to specific plugin settings, but to saved change attribute dialog settings, I see. I was trying to use something like

Code: Select all

OPENATTRIBUTES= tc.comment:=OK
Thanks again. Still I think the Help could use some examples.

Roman
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.
hi5
Power Member
Power Member
Posts: 555
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: OPENATTRIBUTES documented?

Post by *hi5 »

Another reason to list all commands on one or two pages like the INI settings viewtopic.php?t=79563
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: OPENATTRIBUTES documented?

Post by *solid »

tuska wrote: 2023-07-28, 12:02 UTC
  1. Position cursor on a file or folder, press and hold the Ctrl key and position cursor on the "Files" menu,
    then release the Ctrl key.
What is the purpose of holding the CTRL key?
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: OPENATTRIBUTES documented?

Post by *tuska »

solid wrote: 2023-09-06, 17:12 UTC
tuska wrote: 2023-07-28, 12:02 UTC
  1. Position cursor on a file or folder, press and hold the Ctrl key and position cursor on the "Files" menu,
    then release the Ctrl key.
What is the purpose of holding the CTRL key?
I use ...

Code: Select all

SingleClickStart=1
F1 - Help wrote:A single click starts programs and opens files (Win98 WEB style)
In this case, it is sufficient to point to a file or a folder and press the left or right mouse button
to perform an action, e.g. opening a file with a single click.

It is also sufficient, for example, to position the mouse pointer on a single file WITHOUT MARKING it
and then perform an action.

When I move the mouse, the mouse pointer moves over the files in a window and the focus on the files is constantly changed.
If I drag the position indicator upwards to reach a menu item or a button the cursor would move upwards and stop on ".."
in the active window.

To be sure that an action is carried out for a certain file I must therefore
a) either position the cursor on a file, then press the Ctrl-key and hold it down until it is outside the active window
- OR -
b) position the cursor on a file, then move the mouse pointer horizontally to the left or right outside the active window
   and then move it upwards to the menu item or a button.

This method (a press on the Ctrl key) thus ensures that the action is carried out for the desired file.

Otherwise, it could happen that when you drag the mouse pointer upwards and then out of the active TC window
the wrong file is selected and the action is thus applied to the wrong file.
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: OPENATTRIBUTES documented?

Post by *solid »

2tuska
Thanks for detailed explanation. I've never used single click to start, even more, it was the first thing i've disabled when it was introduced in win98, when all the icons were underlined. That's why I didn't see the reason to hold the CTRL, with this option disabled it has no function in that case.
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: OPENATTRIBUTES documented?

Post by *tuska »

solid wrote: 2023-09-07, 09:53 UTC 2tuska
I've never used single click to start, even more, it was the first thing i've disabled when it was introduced in win98,
when all the icons were underlined.

That's why I didn't see the reason to hold the CTRL, with this option disabled it has no function in that case.
Yes, I agree with that.
I should perhaps have represented this point as an option [Ctrl key].

There are different options for SingleClickStart=.
- For SingleClickStart=1, 2, I think it is recommended to use the Ctrl key.
- For the other options, i.e. 0, 5, 6 the use of the Ctrl key is not necessary.
Post Reply