Search results

  1. R

    Create loop with xdotool [HELP]

    Apologies for the delay... What I'm trying to do is get the "F12" key sent repeatedly to a game, even if it's minimized. Also, I want the "F12" key to be sent only if no other keyboard keys are currently being pressed by me. In short: - I have a game, where the "F12" key must be pressed every 5...
  2. R

    Create loop with xdotool [HELP]

    Thanks again for the help... We're making progress from completing my script, little by little making adjustments and it's almost perfect, in the role I want. xdotool (according to its manual) is able to send keystrokes (even with minimized window), the command line; xdotool key --window...
  3. R

    Create loop with xdotool [HELP]

    Thank you for your help. What I'm doing is exactly that, sending the "F12" key to the window named class "programfile". With the script below the function is working; #!/bin/bash while true; do sleep $(shuf -i2-5 -n1); xdotool key --window $(xdotool search --class 'programfile') F12; done...
  4. R

    Create loop with xdotool [HELP]

    Update: I managed to make the key repeat work, in an interval between 2s and 5s using the script: #!/bin/bash while true; do sleep $(shuf -i2-5 -n1); xdotool key --window $(xdotool search --class 'programfile') F12; done However, key repeat only works if the window is focused, I think the...
  5. R

    Create loop with xdotool [HELP]

    After some reading and effort, I managed to come up with the following script; #!/bin/bash while true; do sleep 3.00; xdotool key --window 0x2800001 F12; done It's working in parts. It sends the "F12" key but only when the window is active, I would like to send the "F12" key even if the window...
  6. R

    Create loop with xdotool [HELP]

    Hello Linux community. I recently changed my operating system and am using a Linux distribution and I am extremely satisfied, my computer is very efficient and working like I never imagined, very good indeed. I'm trying to automate a certain function but I'm having difficulties, I would like...
Top