• Lvxferre [he/him]@mander.xyz
    link
    fedilink
    arrow-up
    10
    ·
    3 days ago

    At those times I’m fucking glad I overengineered my autoclicker script. This means, once Wayland hits me, switching from xdotool to ydotool won’t cause me too much pain. (Most of the script stays as it is, only base functions like “Click” get remade. And yes, I’m lazy.)

    • The_Decryptor@aussie.zone
      link
      fedilink
      English
      arrow-up
      9
      ·
      3 days ago

      I’d call that plain engineering; you’ve separated out the independent logic from the point where it actually touches the system. That’s how stuff should be built and operate.

      • Lvxferre [he/him]@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        3 days ago
        1. With mkvtoolnix-gui. I’m often editing anime episodes; adding/removing subtitles, removing non-native audio, removing those “ENCODED BY JOHN SMITH”, etc. Often the checkboxes I need to click are predictably placed, so I use an autoclicker to do it once instead of clicking multiple checkboxes 12~24 times in a row.
        1. Cheating on a shitty online gacha game I’ll never pour any money into.
    • megopie@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      Ah, I hadn’t even considered that Xdotool would be… well for X11. Thanks mentioning this, so I’ll know what the problem is next time I try to use my auto clicker script and it doesn’t work.

      • Lvxferre [he/him]@mander.xyz
        link
        fedilink
        arrow-up
        5
        ·
        3 days ago

        Yup.

        On a lighter side, apparently ydotool has a smarter design; instead of sending events to the X server like xdotool does, it emulates an input device. This means you can start using it before migrating to Wayland, and in case the Linux community eventually deprecates Wayland for something else, it should still work.

        Now I just need a Wayland equivalent to grabc. A lot of my autoclicker scripts relies on it for dynamic behaviour, like “keep clicking $pixel1 until $pixel2 changes colour”.