Reputation: 11
I am trying to make a script in linux that uses Shift + right click in eight desired positions.
I already tried to emulate autohotkey in linux but it doesn't work correctly.
This is an example of autohotkey code "+" means "Shift" on autohotkey
Send +{Click 842, 464, right}
Send +{Click 853, 530, right}
Send +{Click 783, 531, right}
Send +{Click 713, 529, right}
Send +{Click 715, 461, right}
Send +{Click 714, 395, right}
Send +{Click 785, 394, right}
Send +{Click 852, 395, right}
MouseMove, StartX, StartY
Upvotes: 1
Views: 972
Reputation: 304
The equivalent Autokey script would be something like this:
system.exec_command("xte 'mousemove 842 464' 'mouseclick 3'", False)
system.exec_command("xte 'mousemove 853 530' 'mouseclick 3'", False)
...
where xte
must be installed.
See this example: https://github.com/autokey/autokey/wiki/Scripting#gnome-screenshot
Upvotes: 1