how to simulate to press keystroke pagedown every 10 seconds

I would like to have the telegram-desktop page updated automatically to the last message, so I thought something that could simulate the pression of the keystroke pagedown, is it possible to get this with my leap 15.1?

Check out ‘xdotool’ perhaps. For example

xdotool key Page_Down

More info

man xdotool

maaanythanks, it worked!!lol!
I made this script:

#!/bin/bash
for i in {1..8000}
do
    sleep 10
    xdotool key Page_Down
#    echo "cazzo"
done

and launched it, and to stop it ctrl>C

Good result! :slight_smile:

If intention it to run it forever until manually interrupted just use

while true

manythanks, so the result should be this?:

#!/bin/bash while true
do
    sleep 10
    xdotool key Page_Down
#    echo "cazzo"
done

yeaaahhh, it works!! manythanks

#!/bin/bash
while true
do
    sleep 10
    xdotool key Page_Down
#    echo "cazzo"
done