You are not logged in.
hello,
I once used this script to automatically press F5 every 4 seconds:
$ cat f5.sh
#!/bin/bash
while true;
do xdotool key F5
sleep 4
doneNow it doesn't work anymore:
$ sh f5.sh
^[[15;3~^Cwhat could be the cause? I use X and openbox.
I even tried it on another user and another WM, but it doesn't work there either, so it's not a setup problem with my account.
Last edited by quellen (2025-11-04 12:16:34)
sorry for my bad english
Offline
What do you mean by "doesn't work"?
cat # type F5 - similar to the output in your post?What and where do you expect F5 to do (you're not spamming aur.archlinux.org, are you?
)
Offline
What do you mean by "doesn't work"?
cat # type F5 - similar to the output in your post?What and where do you expect F5 to do (you're not spamming aur.archlinux.org, are you?
)
It doesn't work in the sense that it doesn't press F5.
I can't tell you why I need to press F5 every 4 seconds, it's a secret :þ
sorry for my bad english
Offline
According to your OP F5 was pressed at least once by the script - test it w/ "xev -event keyboard" (you'll need to focus the xev window) - so I'm afraid you'll have to reveal at least parts of your secret (which is waiting for ticketmaster of black friday offers?) - notably what client you expect to respond to the F5 press.
Offline
I solved it by using Ctrl+Shift+R instead of F5. I wonder why F5 isn't working anymore...
#!/bin/bash
while true;
do
xdotool key "Control_L+Shift_L+r"
sleep 4
donesorry for my bad english
Offline
Your OP clearly shows F5 being send to the TE and the resulting escape sequence not handled by the shell.
The problem isn't the script or xdotool but whatever you expect F5 to do in the specific client (your secret)
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Are you using KDE? I also have an xdotool script that does F5 that recently stopped working.
I also noticed that if I do xdotool key F3, it opens the window menu, i.e. the one that appears when you right on the title bar (has options like Move to Desktop, Maximize). But this doesn't happen if I just press F3. There is a shortcut under Window Management called Window Menu, mapped to Alt+F3; if I disable it, the menu no longer appears with xdotool key F3. Something definitely seems afoot here, but I was also able to solve my issue with Ctrl+Shift+R, so I didn't dig in deeper.
Offline
Are you using KDE? I also have an xdotool script that does F5 that recently stopped working.
no. i use only openbox.
sorry for my bad english
Offline
Appears to be due to xkeyboard-config: https://github.com/jordansissel/xdotool/issues/491
Offline
Appears to be due to xkeyboard-config: https://github.com/jordansissel/xdotool/issues/491
Then I solved it with this script:
#!/bin/bash
while true; do
xdotool key XF86Reload
sleep 4
donesorry for my bad english
Offline