Conversation

Notices

  1. @bitshift I can't get it to simulate mouse events correctly, but this appears to work: `xdotool search --name Spiral key w key s` !sk

    Thursday, 09-Aug-12 16:39:49 UTC from web
    1. @toksyuryel Ooh. Also, I apparently left Glitch open rather than just the home page, so... I may be slightly dead. D:

      Thursday, 09-Aug-12 16:46:30 UTC from web
    2. @toksyuryel And actually, both that and the AutoHotkey approach have advantage over java.awt.Robot-based ones, in that the latter has no way (that I've yet discovered) to select a particular window, let alone search for one by name.

      Thursday, 09-Aug-12 16:48:18 UTC from web
      1. @bitshift I'd say another benefit is being able to use simple shell scripting ☺ and it can be used with any X application, not just Java. Though you do lose cross-platform support with this method.

        Thursday, 09-Aug-12 16:57:03 UTC from web
        1. @toksyuryel Yep. Trade-offs for every approach. :(

          Thursday, 09-Aug-12 16:57:56 UTC from web
    3. @toksyuryel Alright, that didn't quite work. But I did learn that the idle timeout is about 15 minutes. So that's useful information. Gonna mess with the command some more to see if I can get it working.

      Thursday, 09-Aug-12 19:55:45 UTC from web
      1. Ok! The modification worked! Here is the complete command I'm using: `while sleep 3m; do xdotool search --name Spiral key --delay 1000 w key --delay 1000 s; done` /cc @bitshift

        Thursday, 09-Aug-12 21:01:02 UTC from web
        1. @toksyuryel I should probably mention that ending the loop is just a simple ^C

          Thursday, 09-Aug-12 21:17:21 UTC from web