Scroll files page down/up

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
lluke777
Junior Member
Junior Member
Posts: 11
Joined: 2018-01-30, 11:38 UTC

Scroll files page down/up

Post by *lluke777 » 2018-07-10, 09:38 UTC

I want to bind VIM like functionality to:
<Ctrl-d> - scroll half page down
<Ctrl-u> - scroll half page up

while in left or right pane.

How to do that? I cannot find proper function in Misc.

User avatar
Stefan2
Power Member
Power Member
Posts: 2213
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Script ScrollPage

Post by *Stefan2 » 2018-07-10, 11:19 UTC

There are no such functions in TC.


You would have to utilize a external script
( somehow related AHK script: https://ghisler.ch/board/viewtopic.php?p=330410#330410
or maybe VBS with sendkey ?)



Next create a user defined command:
[em_ScrollPage]
cmd=myScript.ext


Next assign the wanted shortcut keys to that command 'em_ScrollPage'





 

User avatar
Stefan2
Power Member
Power Member
Posts: 2213
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2018-07-10, 11:29 UTC

Hab's mal getestet, das funktioniert zB als x.vbs auf einen Button gelegt:

Code: Select all

Set WshShell = WScript.CreateObject("WScript.Shell")
'WshShell.SendKeys "{PGDN}"
'WshShell.SendKeys "{PGUP}"
'WshShell.SendKeys "{UP}"
WshShell.SendKeys "{DOWN 20}"

Mehr Infos zB hier:
https://msdn.microsoft.com/de-de/vba/language-reference-vba/articles/sendkeys-statement
https://social.technet.microsoft.com/wiki/contents/articles/5169.vbscript-sendkeys-method.aspx





 

lluke777
Junior Member
Junior Member
Posts: 11
Joined: 2018-01-30, 11:38 UTC

Post by *lluke777 » 2018-07-10, 19:25 UTC

AHK seems to be good solution. Thanx

Post Reply