-[8.50b4 32b] VerifyCopy & Wincmd.ini

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

-[8.50b4 32b] VerifyCopy & Wincmd.ini

Post by *sas2000 »

 
Hi, i've assigned TC hotkeys  F5 & CS+F5  to 2 AHK scripts this way.

F5=Ahk Script that Copy files
CS+F5=Ahk Script that Copy files + verify files after copy

These AHK scripts mark or unmark Verify checkbox in copy dialog window, so the first thing that each script do is to read  VerifyCopy=  value from Wincmd.ini to know if it is 0 or 1.

But i've found a problem, if you launch TC (Wincmd.ini -> VerifyCopy=0), you press F5 (cm_CopyOtherpanel) and you mark Verify checkbox, TC remember this setting during all session, but Wincmd.ini doesn't change from VerifyCopy=0 to VerifyCopy=1 , so it's impossible to me to know current VerifyCopy value and AHK scripts are useless.

I think that if TC remember this setting then VerifyCopy= value in Wincmd.ini should change. May you fix it please ? Thanks :!:
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

sas2000,
the first thing that each script do is to read VerifyCopy= value from Wincmd.ini to know if it is 0 or 1
Why do you need to do that? Is it not enough to simply check (or uncheck) the checkbox like this? Does its previous state matter?

Code: Select all

Control, Check, , &Verify, A
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.
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

Hacker wrote: Why do you need to do that? Is it not enough to simply check (or uncheck) the checkbox like this? Does its previous state matter?

Code: Select all

Control, Check, , &Verify, A
HTH
Roman
You're right, Control command it is easier to use and it works perfectly.

I am not a programmer at all and i tried to use IniRead because i didn't know Control command. Thank you very much :!: .
 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, you cannot determine it this way any more. Why? It's now specific to the operation. For example, you could start 5 copy operations (and put them in the background one by one), and use "Verify" in some, and copy without verify in the others.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

sas2000,
You're welcome. ;) I was just wondering if you are trying to achieve something specific.

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.
Post Reply