How to Send F5 to TC from my program (see inside)

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

First google result led me to this and I can't find any difference in logic between = and := except syntax. Both perform reading, concatenating, and then assigning.
eitang
Senior Member
Senior Member
Posts: 250
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

Post by *eitang »

MVV,

in the same site, I found some little differences, but the := can always replace the = assignment. With slight syntax differences:
My comment:
in AHK %var% means the value of the var.
Without % it is a litteral string.
CopyOfVar = %Var% ; With the = operator, percent signs are required to retrieve a variable's contents.

CopyOfVar := Var ; Unlike its counterpart in the previous
section, percent signs are not used with the := operator.

Preferred also because it (:=) supports an expression syntax nearly identical to that in many other languages.
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: https://eitang.pagesperso-orange.fr/
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

eitang,
Which version of Delphi was your las one ?
Honestly, I don't remember anymore, it was a very long time ago. :D

The line where you fill up the list:

Code: Select all

FileDateList = %FileDateList%%TimeStamp%`n
is totally opaque to me... I presume that FileDateList is the name of the list (containing files*.* in the currently treated folder).

I don't understant how the = sign adds items ???
Actually, it's the list of the file dates, no reason to care about the file names.
The adding works like this:

Code: Select all

FileDateList                  = %FileDateList%                     %TimeStamp%                           `n
NewContent                    = OldContent                    plus NewValue                         plus `n
Updated list of all the dates = Current list of all the dates plus the date of the newly added file plus `n
FileDateList = %FileDateList%%TimeStamp%
NewContent = OldContent plus NewValue
Updated list of all the dates = Current list of all the dates plus the date of the newly added file

HTH
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.
eitang
Senior Member
Senior Member
Posts: 250
Joined: 2003-05-19, 20:08 UTC
Location: France
Contact:

Post by *eitang »

Hacker,

>> NewContent = OldContent plus NewValue

Ah! thank you. I could have figured it out: the %list% is (like always in AHK) the content of the list. Really stupid of me.

Thank you very much.

I am learning AHK with pleasure ! Thanks for that too <g> Also using SciTe!
Best Wishes,

Eitan Gilboa (License #: 17011)
URL: https://eitang.pagesperso-orange.fr/
Post Reply