[TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

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

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

[TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

For example: Ctrl/Alt + Shift + 1 for cm_OpenDriveByIndex -1/-101
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *ghisler(Author) »

It's currently broken when using a drive buttonbar. Please test with drive buttonbars off for now.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

It doesn't work on x32 anyway. In the presence/absence of a drive bar and/or drive selection list.
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

I write that it makes no difference whether the drive bar or the disk selection list is on or off, the result is the same — switching on the hotkey with a negative parameter does not occur.

Code: Select all

[Shortcuts]
CS+1=cm_OpenDriveByIndex
CS+1_params=-1
AS+1=cm_OpenDriveByIndex
AS+1_params=-101
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *ghisler(Author) »

Sorry, I don't understand your report. With -1, it switches to the last drive in the list, which is drive Y: in my case.
With -101 it switches to the last entry in the drive list, which is the Network Neighborhood.

This works here with both TC 32-bit and 64-bit when I turn off both drive button bars. It's broken only when I enable one or two drive button bars.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

Do you understand that we are discussing the "Parameters:" field in the hotkey settings on the Misc. page, and not any other options for specifying a negative number?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *ghisler(Author) »

Yes I do! My [Shortcuts] section contains this:
CS+1=cm_OpenDriveByIndex
CS+1_params=-1

And it works exactly as it should, it switches to the last entry of the dropdown combobox. What exactly doesn't work for you?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

I decided to bind the keys to cm_SrcNegOrder, and it turned out that Ctrl+Shift+1, Alt+Shift+1 and Alt+Shift+2 do not work on XP.

No problem with Alt+[0-9], Ctrl+[0-9], Shift+[0-9], Ctrl+Alt+[0-9], Ctrl+Shift+[0,2-9], Alt+Shift+[0,3-9] and Ctrl+Alt+Shift+[0-9]

I started it with a clean ini, killed everything in the task manager except system processes and TC.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *petermad »

it turned out that Ctrl+Shift+1, Alt+Shift+1 and Alt+Shift+2 do not work on XP.
I just tested under Windows XP and here all these combinations worked fine:
CS+1=cm_OpenDriveByIndex
CS+1_params=-1
AS+1=cm_OpenDriveByIndex
AS+1_params=-1
AS+2=cm_OpenDriveByIndex
AS+2_params=-1

AS+2=cm_OpenDriveByIndex
AS+2_params=-101

CS+1=cm_SrcNegOrder
CS+1_params=-1
AS+1=cm_SrcNegOrder
AS+1_params=-1
AS+2=cm_SrcNegOrder
AS+2_params=-1

So I don't thik it is a Windows XP issue.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

What, then, could it be? I checked on two keyboards.
petermad wrote: 2023-06-08, 18:56 UTC CS+1=cm_SrcNegOrder
CS+1_params=-1
Parameters are optional. I'm writing in general about the operability of combinations.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *petermad »

2Fla$her
My Windows XP is the Home version with SP3 installed, otherewise it is very virgin, with only a few installed programs, and very not tweaked.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *ghisler(Author) »

I just tried it in XP pro in a virtual machine, it works there too.
Maybe it's again a third party program interfering, e.g. by setting a global hook?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *Fla$her »

ghisler(Author) wrote: 2023-06-09, 08:14 UTC Maybe it's again a third party program interfering, e.g. by setting a global hook?
>>>
Fla$her wrote: 2023-06-08, 16:24 UTC I started it with a clean ini, killed everything in the task manager except system processes and TC.
So it has nothing to do with other programs. When you click these three hotkeys, even the mouse cursor with the background mode does not flicker.
Unless the NVidia driver could break something.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b6] Hotkeys for cm_OpenDriveByIndex don't work for negative values in the "Parameters:" field

Post by *ghisler(Author) »

Then does it work with positive parameters, or does it fail too, e.g.
CS+1=cm_OpenDriveByIndex
CS+1_params=1
If it works, then could you copy and paste -1 from the forum to your wincmd.ini? Your dash in the post looks longer, maybe it's the wrong dash character?
Author of Total Commander
https://www.ghisler.com
Post Reply