You're welcome, but I have only adjusted an existent script.Ovg wrote:2Stefan2
Thank a lot for a cool script!
Is there a clock plugin?
Moderators: white, Hacker, petermad, Stefan2
version-no.
2Stefan2
At the moment we have TC 9.0 ß2 and files for beta2, i.e. totalcmd.exe + totalcmd64.exe show version-no. 9.0.0.0
Therefore I have adopted your code for me to:
if(v_TCVersion = "9.0.0.0")
v_TCVersion = 9.0b2
Do you think there is a possibility that you can change your code, that we could get this automatically?
Suggestion:
Please edit your code and change
FROM: SetTimer subTimer, 60000 ; 60000 are 60 seconds update cycle.
TO: SetTimer subTimer, 500 ; 500 are 0.5 seconds update cycle.
Reason: I think that every user who wants to use this code will finally work with parameter "500",
as if TC is minimized and then expanded, the user is NOT shown again.
At the moment we have TC 9.0 ß2 and files for beta2, i.e. totalcmd.exe + totalcmd64.exe show version-no. 9.0.0.0
Therefore I have adopted your code for me to:
if(v_TCVersion = "9.0.0.0")
v_TCVersion = 9.0b2
Do you think there is a possibility that you can change your code, that we could get this automatically?
Suggestion:
Please edit your code and change
FROM: SetTimer subTimer, 60000 ; 60000 are 60 seconds update cycle.
TO: SetTimer subTimer, 500 ; 500 are 0.5 seconds update cycle.
Reason: I think that every user who wants to use this code will finally work with parameter "500",
as if TC is minimized and then expanded, the user is NOT shown again.
Due to Norton Internet Security (missing entries in context menu in TC) I had to rename TOTALCMD64.EXE to Explorer.exe.
Please, what must adapted here or elsewhere to get the correct name (x64) in TC's Title bar :
I am not a programmer and could not get it to work.
Regards
Karl
Please, what must adapted here or elsewhere to get the correct name (x64) in TC's Title bar :
Code: Select all
;//Get the Bit Bittness Architecture:
; TOTALCMD.EXE
;TOTALCMD64.EXE
StringRight, vLastSix, v_TCExePath, 6 ; cm.exe OR 64.exe
StringLeft, vFirstTwo, vLastSix , 2 ; cm OR 64
if(vFirstTwo=64)
vBit = (x64)
else
vBit = (x86)
Regards
Karl
If you had renamed "TOTALCMD64.EXE" to "Explorer.exe",tuska wrote:Due to Norton Internet Security (missing entries in context menu in TC) I had to rename TOTALCMD64.EXE to Explorer.exe.
Please, what must adapted here or elsewhere to get the correct name (x64) in TC's Title bar :I am not a programmer and could not get it to work.Code: Select all
;//Get the Bit Bittness Architecture: ; TOTALCMD.EXE ;TOTALCMD64.EXE StringRight, vLastSix, v_TCExePath, 6 ; cm.exe OR 64.exe StringLeft, vFirstTwo, vLastSix , 2 ; cm OR 64 if(vFirstTwo=64) vBit = (x64) else vBit = (x86)
Regards
Karl
there is no '64' part anymore to extract for to detect the 64-bit executable.
; TOTALCMD.EXE
;TOTALCMD64.EXE
So we need another detection method. I don't know of any at the moment. So I am out.
2Stefan2
How about using the current title of the TC window? If there's a "x64" in there, it's x64, otherwise it's x86.
Regards
Dalai
How about using the current title of the TC window? If there's a "x64" in there, it's x64, otherwise it's x86.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Good idea, Dalai, 'using the current title'.
untested:
no time to test....
Don't work "Explorer64.exe" as name?
untested:
Code: Select all
;//Get the Bit Bittness Architecture:
;WinGetTitle, OutputVar [, WinTitle, WinText, ExcludeTitle, ExcludeText]
WinGetTitle, vTCTitle , Total Commander
;Total Commander - Name
;Total Commander (x64) - Name
vBit = (x86)
;IfInString, var, SearchString
IfInString, vTCTitle, (x64)
vBit = (x64)
no time to test....
Don't work "Explorer64.exe" as name?
Just for completeness I would like to point out - with regard to get the correct name (x64, x86) in TC's Title bar -
that this code: http://ghisler.ch/board/viewtopic.php?p=312713#312713 works only for one(!) TC-instance!
If you open another TC-instance you will get the same name (x64, x86) of the previous opened TC in TC's Title bar.
Example:
TC x64 is opened
TC x32 will be opened afterwards
TC's Title bar shows "x64" for both instances. => For TC x32 this is not correct!
Regards
Karl
that this code: http://ghisler.ch/board/viewtopic.php?p=312713#312713 works only for one(!) TC-instance!
If you open another TC-instance you will get the same name (x64, x86) of the previous opened TC in TC's Title bar.
Example:
TC x64 is opened
TC x32 will be opened afterwards
TC's Title bar shows "x64" for both instances. => For TC x32 this is not correct!
Regards
Karl
- randysejas
- Junior Member
- Posts: 30
- Joined: 2016-02-27, 14:12 UTC
Re: Is there a clock plugin?
How can i do that?... i put these lines in wincmd.ini??You could also start both apps from a batch:
Start "" Totalcmd
Start "" AutoHotkey script.ahk
Re: Is there a clock plugin?
randysejas wrote: ↑2020-04-30, 16:02 UTCHow can i do that?... i put these lines in wincmd.ini??You could also start both apps from a batch:
Start "" Totalcmd
Start "" AutoHotkey script.ahk
Here a MS-DOS Batch is meant (a plain text file with DOS commands and with *.bat or *.cmd extension)
Example batch file
LauchTCandAHK.cmd
Code: Select all
@ECHO OFF
Start "" "D:\rive\path to\Totalcmd\Totalcmd.exe"
timeout /T 30
Start "" "D:\rive\path to\AutoHotkey\AutoHotkey.exe" "D:\rive\path to\AutoHotkey\script.ahk"
PAUSE
For the syntax open a DOS-Box (cmd.exe) and type timeout /? or start /? ...and execute with Enter key.