RX14 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Mouse Position #207

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure if this is intended or a bug but AK isn't moving the mouse when 
clicking. I don't see a way to move it in the API either. Some applications 
require a mouse hover before clicking. Is this possible?

Ubuntu 11.10 x64
AK GTK 0.71.2

Thx

Original issue reported on code.google.com by kantlive...@gmail.com on 11 Jul 2012 at 6:14

GoogleCodeExporter commented 9 years ago
bug reported last year and still not fixed?

is AutoKey dead now?

Original comment by Cdrink...@googlemail.com on 12 Oct 2013 at 4:52

GoogleCodeExporter commented 9 years ago
I'm hitting the same issue, and have solved it by using the xte command from 
the xautomation package:

    system.exec_command("xte 'mousemove 400 240'", False)
    system.exec_command("xte 'mouseclick 1'", False)

Bonus: this is an AutoKey to easily figure out what the mouse's current x/y 
position is:

    # Uses xmousepos from the xautomation package
    position = system.exec_command("xmousepos", True).split(" ")
    dialog.info_dialog("Current mouse position", "%s\n\nx: %s\ny: %s\nrel x: %s\nrel y: %s\n" % (" ".join(position), position[0], position[1], position[2], position[3]))

regarding Cdrink's comment: From the project home page:
Project Status
AutoKey has now reached v0.90 and is (from the point of view of the developer) 
feature complete. It is built using current toolkits (GTK3 and QT4) so should 
be reasonably future-proof. We are actively looking for maintainers to assist 
with fixing minor bugs. At this stage no new feature work is planned, but 
patches may be considered.

(i.e. AutoKey is not actively developed, but if you submit a patch to fix this 
it should get included at some point)

Original comment by emil...@klein.st on 4 Sep 2014 at 9:18