Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reach end of page with xdotool, how to page up and down

Tags:

x11

xdotool

How can I command a window to go to end of page with xdotool?

  • "key End" seems to send and End keystroke, but nothing happens: xdotool selectwindow key End

  • "click 5" scrolls down, but how to know if the page has reached the end?

Also, the PageUp and PageDown keys doesn't seem to be accepted.

run on Ubuntu 12.04

like image 972
nightcod3r Avatar asked Nov 30 '22 01:11

nightcod3r


1 Answers

xdotool is finicky about page up and page down. It doesn't recognize 'PgUp' or 'PageUp' or 'Page-Up'. What seems to work:

xdotool key Page_Up

and

xdotool key Page_Down
like image 166
earthling42 Avatar answered Dec 26 '22 20:12

earthling42