RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

2Fla$her
By default, there is no [..] in the drive root.
Sure, I haven't enabled that either, but I still cannot reproduce what you are writing - could you please give an example with specified source and target dir and cursor positions before executing.

Edit for your case:
param=%N%Z
I did that again - now it works - I must have had the wrong ini-file loaded when I tried it the last time - sorry.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

but I still cannot reproduce what you are writing - could you please give an example with specified source and target dir and cursor positions before executing.
About the cursor position on [..] I wrote right away, and you understood correctly.
The only difference is the presence of [..] in the active panel and not in the target panel.
If you write that you cannot reproduce the navigation to the first list item (usually there is a folder), then what happens?
Last edited by Fla$her on 2025-03-24, 02:17 UTC, edited 1 time in total.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

If you write that you cannot reproduce the navigation to the list first item (usually there is a folder), then what happens?
That IS what happens here, but you wrote: "the cursor will jump to the first folder in the target drive root." and I understood that as the target panel would shift to the root in the target side and jump to the first folder.

I would have understood it the first time if you had written: "the cursor will jump to the first folder if the target drive is in the root."
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

That IS what happens here
OK. The error has been confirmed.
and I understood that as the target panel would shift to the root in the target side and jump to the first folder.
It's strange that you understand it this way, because there are no commands that could potentially affect the directory change.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

because there are no commands that could potentially affect the directory change.
Hmm, there are also no obvious reason why TC gives an extra error sound while going to the first item when no match is found - In that case I first get a TC message "No matches found" accompanied by Windows' "Asterisk" sound - and when I close that message box I get the Windows' "Default beep" sound. So I thought that the described jump to the root could be a TC misbehavior.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

Well, it's no secret to me. This message appears for the SELECTFILES* command. This is how it should be in the absence of a match. I thought you were aware of this.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

This message appears for the SELECTFILES* command.
It is not the appearance of the message that puzzles me - that is expected. It is, that after I close the message box I get the Windows' "Default beep" sound - the message box is already accompanied by the Windows' "Asterisk" sound - so why this extra sound, when I close the box?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

That is, do you hear 2 sounds instead of one? That's strange. I turned on the sounds and hear only "Asterisk".
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

I have configured Asterisk and Default beep differently in Window's Sound settings.

I hear Asterisk when the "No matches found!" dialog is shown - and thereafter Default beep when I close the dialog.

Also - if I place the cursor on [..] i hear Default beep (no dialog shown) when the cursor is moved to [..] in the target panel (or to the first item if target is in the root).

I have not configured Default beep for any of the TC events.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

Is the default sound heard on TC x32 and/or x64?
Overquoting is evil! πŸ‘Ž
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *igarny »

I am also getting 2 sound notifications with x64 version and the cursor loses its position on the target panel...

this is not a complaint, just I see you are so much into it.
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

To be honest, I don't like this window and signals anyway, so I decided to get rid of everything unnecessary (clipboard and all commands except panel activation):

Code: Select all

#β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
# Purpose:   place the cursor on the item in the target panel with
#            the same item name under the cursor in the active panel
# Parameter: 0 β€” the target panel will become active.
#β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
RegisterCommand 76549 PlaceCursorOnTheSameNameItemInTargetPanel
RegisterCommand 76550 PlaceCursorOnTheSameNameItemInTargetPanel 0

Func PlaceCursorOnTheSameNameItemInTargetPanel(lParam, SrcFocus=1)
   Local Check = 0, Name = GetCurrentItem(3)
   If Name = GetCurrentItem(4) Then
      If Not SrcFocus Then Check = 2
   Else
      Local i = 0, TPanel = RequestInfo(4)
      If Name = '..' Then
         If RequestInfo(11010) Then Check = 1
      Else         
         For i = 1 To RequestInfo(11002) - 1
            If Name = StrPart(SendMessage(TPanel, 0x0189, i, 0, 2), auTAB, 1) Then
               Check = 1
               Break
            EndIf
         Next
      EndIf
      If Check Then
         SendMessage(TPanel, 0x19E, i, 1)
         SendCommand(4006, 0, 1)
      EndIf
   EndIf
   If Check + SrcFocus = 2 Then SendCommand(4006)
EndFunc
If there is a match, only the cursor will be set, otherwise nothing happens.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 15999
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *petermad »

Fla$her wrote: 2025-03-24, 15:16 UTC Is the default sound heard on TC x32 and/or x64?
Both - tested with 64bit Windows 7 x64 and 32bit Windows XP.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *igarny »

Thank you guys for your time, focus and expertise.
Fla$her
Power Member
Power Member
Posts: 2982
Joined: 2020-01-18, 04:03 UTC

Re: RESOLVED: Locate the object file dir under cursor at the destination panel and switch to it

Post by *Fla$her »

petermad wrote: 2025-03-24, 23:19 UTC and 32bit Windows XP.
I can't confirm it. I set all the sounds in the standard scheme, enabled all the error reporting options (the last button after control sysdm.cpl,,3). I don't hear this sound after closing by cross, OK or Esc.

2igarny
Did you understand everything I wrote in the bottom post of the first page?
Overquoting is evil! πŸ‘Ž
Post Reply