Thursday, May 9, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 10192  / 1 Year ago, wed, march 22, 2023, 5:23:18

Other than using xdotool is there a way to scroll down by a set amount using a command. In other words, what is the scrolling command?



I'm not looking for a keyboard shortcut, I want a command for scrolling by say 10px in the currently focussed window. I also don't want xdotool because I need the "deeper command", what is "executed" when the wheel is rolled.


More From » command-line

 Answers
1

xdotool lets you send keyboard keys too so all the standard stuff like:



xdotool key Page_Down
xdotool key Down Down Down # presses down three times with a 12ms delay
xdotool key --delay 2 Down Down Down # as above but 2ms





With respect to the "deeper command", there's no one such thing. A window is sent an event (like a mousewheel) and it (the program or —more commonly— its toolkit) decides how to interpret that.



The scrolling isn't directly controllable (unless you're using an application or framework that provides an interface for doing just that). I've explained this a little bit more in your last question.


[#24905] Wednesday, March 22, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aciousoun

Total Points: 178
Total Questions: 110
Total Answers: 98

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago
;