Scroll Lock

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1184
Joined: 2012-03-23, 18:15 UTC
Location: UA

Scroll Lock

Post by *MaxX »

Please, add Scroll Lock support to TC.
We really need such a function to work same way as in MS Excel.
You may say that we should use mouse-wheel for this, but we really can't use it (no mouse on workstation) and need to scroll up or down without loosing cursor on the file.

p.s.
We really expect this function to be implemented as quick as you can.
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka/Makiivka
Contact:

Post by *LonerD »

Support.

But it will be great add cm-command for such scrolling too. Without on-off ScrollLook.
For example Up\Down - Standart navigation, Win+Alt+Up\Down - user's shortcut for navigate one position up-down without cursor moving.
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

I like the idea. Sometimes, scrolling a file panel with a keyboard would be really handy.

However I'm not sure, what keys should be used for that. ScrollLock is not very convenient and it's missing on some new keyboards altogether. Ctrl+Up/Down is a kind of new standard for this functionality nowadays, but TC already uses that combination for something else.

Maybe the best solution would be to add internal commands for scrolling up, down and also sideways and let users associate them with whatever key combinations they want.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Sorry, guys.

Seems as if I totally miss the point of what you are talking about.
In order to scroll through file lists you can use cursor up and cursor down or page up and page down.
So what should Scroll Lock do that the existing keys cannot do?

Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2karlchen
Scrolling without changing cursor's position. Something like using scrollbars with mouse, but without the mouse.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Support++

Since Scroll-lock is frequently missing on many keyboards, as already pointet out - especiallly on labtops - I suggest to use the Win key as modifier:

Win+UpArrow
Win+DownArrow
Win+LeftArrow (for horizontal scrolling)
Win+RightArrow (for horizontal scrolling)
Win+PgUp
Win+PgDn
Win+Home
Win+End

If additionally activating Scroll-lock (when available) would make all the same keys work as if the Win-key was pressed, then it would be fine.

Also cm_commands for all the same functions should be available for individual remapping.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

petermad wrote:Win+UpArrow
Win+DownArrow
Win+LeftArrow (for horizontal scrolling)
Win+RightArrow (for horizontal scrolling)
Win+Home
These hotkeys are global desktop windows management hotkeys in Windows 7:
- <W+Up> Maximize current
- <W+Down> Minimize current
- <W+Left/Right> Max to Left/Right half side
- <W+Home> Show/Hide all but current
and not usable in Windows 7.

Anyway, i support additional cm_commands.

Regards
Holger
User avatar
MaxX
Power Member
Power Member
Posts: 1184
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2All
Just noticed that all these keys do nothing TC and look like free:
Alt+Shift+Up
Alt+Shift+Down
Alt+Shift+Left
Alt+Shift+Right
Alt+Shift+PgUp
Alt+Shift+PgDn
Alt+Shift+Home
Alt+Shift+End

And no win-key needed...

These hotkeys might be also used in parallel with original suggestion.
User avatar
petermad
Power Member
Power Member
Posts: 16094
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

These hotkeys are global desktop windows management hotkeys in Windows 7:
- <W+Up> Maximize current
- <W+Down> Minimize current
- <W+Left/Right> Max to Left/Right half side
- <W+Home> Show/Hide all but current
and not usable in Windows 7.
Arrgh, that's right - then I see no other solution than using double modifiers like Ctrl+Alt.

Or make a Scroll-lock solution, but make it a configurable cm_command, so it can be remapped for keyboards without a Scroll-lock key.
Just noticed that all these keys do nothing TC and look like free:
Alt+Shift+Up
Alt+Shift+Down
Alt+Shift+Left
Alt+Shift+Right
Alt+Shift+PgUp
Alt+Shift+PgDn
Alt+Shift+Home
Alt+Shift+End
Well, some of these combinations do the same as Shift+Key (without Alt presed), that is: they select one or more files, or set focus to the command line. Only Shift+Alt+Home and Shift+Alt+End seems to be inactive.

Also Shift+Alt is Windows' default for toggeling keyboard layout - so there is a risk of inadvertently changing keyboard layout.

But Ctrl+Alt+Key doesn't seem to do anything presently. And personally I find it a little easier to press Ctrl+Alt than Shift+Alt.
Last edited by petermad on 2012-08-05, 21:10 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

AutoHotkey

Code: Select all

#IfWinActive ahk_class TTOTAL_CMD

^!Up::Send, {WheelUp}    ; Ctrl+Alt+Up
+!Up::Send, {WheelUp}    ; Shift+Alt+Up
^!Down::Send, {WheelDown}
^!PgUp::Send, {WheelUp 20}
^!PgDn::Send, {WheelDown 20}

#IfWinActive
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka/Makiivka
Contact:

Post by *LonerD »

Balderstrom
Scroll down one line and move cursor one line.
Script on hotkey Win+Alt+Down

Code: Select all

#NoTrayIcon
SendMode Input

#IfWinActive ahk_class TTOTAL_CMD
Send {DOWN}
ControlGetFocus, control, A
SendMessage, 0x115, 1, 0, %control%, A

ExitApp
Click Win+Alt, then Down... Down... Down... But work only first clicking. Where error?
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

@LonerD

If you want to move the cursor, and scroll the line - as if using the scroll wheel --- then you should either
1) Check if a Panel is the active control, if not then sending {TAB} will usually suffice to get the cursor back into the previous panel ---
if a panel is still not active, then a blocking control e.g. Find Files
or the like is active -- in that case, fail the hotkey.
2) OR just fail the hotkey if a panel isn't active.


What you are doing, is getting the active control --- which wont necessarily be a File Panel, and when you click first it activates the panel, thus making your controlgetfocus get the proper control.


Also pressing the WIN key might be removing focus from the currently active program. as the Win-key by itself (down/up) will activate the Start-menu.

Further the "Alt" key pressed in TC - if it's not assigned to QuickSearch, activates the FileMenu's above.

Thus it is generally (in these cases) better to define the Hotkey with AHK instead of TC, and you are able to avoid almost all of those quirky issues.

You could also query the active control with a WM_SENDMESSAGE among a few other 'tricks' to find what the last active panel (or current active panel) is.

The OP requested scrolling with the keyboard without losing focus on the File, which I thought to mean, do not actually move the cursor off of the currently selected file. Although it could mean (I suppose) scroll the file-cursor the same amount as you are scrolling the file-view... Except that can run into oddities - like when you can no longer scroll down the file-view, but the cursor keeps going down to the next+ file.
User avatar
MaxX
Power Member
Power Member
Posts: 1184
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Script on hotkey Win+Alt+Down
External script is NOT the soluton.
Such feature is needed to be internal.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

External Script is almost always the solution, because requests like these don't get implemented.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2Balderstrom
Yes, hacking is always a "solution", but it should be used only as a last resort, because of its disadvantages. And in this case, I don't see a reason why not implement this feature natively in TC. As your code snippet shows, the idea behind its implementation is rather simple.
Windows 10 Pro x64, Windows 11 Pro x64
Post Reply