-
Notifications
You must be signed in to change notification settings - Fork 2
Linux
Automato for Linux is very new. Information regarding any dependencies required will be added here.
- Packages:
libxtst6 - On Ubuntu 19.04+,
libssl1.0is no longer included, and must be installed manually. According to the internet, the following should work:
$ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
$ sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb- Note: libssl1.0 is deprecated due to security flaws, however Automato does not actively use it (just a dependency of the lua networking module, which is not currently used in any public scripts).
I've been unable to find any way to accurately get the client rect (the area an app actually draws in) for another application's window on Linux. Various window managers add borders and titles of various sizes, and Automato just gets the whole area on Linux (as opposed to Windows where we just capture the "client" area the target game draws into, without borders, etc). When maximized, this seems correct, but when running in windowed mode this is off, and macros that try to drag an in-game window to the "top " of the game window will end up putting it in the wrong place. To work around this (until someone can find a solution), you can manually offset the area Automato captures and works within, but poking some values into settings.txt. On Ubuntu with default settings I found the following offsets (to the left, top, right, and bottom, respectively) to work well:
Pair
K xoffs
V 10
EndPair
Pair
K yoffs
V 37
EndPair
Pair
K woffs
V 9
EndPair
Pair
K hoffs
V 10
EndPair
You can debug and validate your calibration by running the Examples/TestCalibration script.