Let me make sure I understand what you're saying:
If you use your macro in gimp, it works correctly once you add a small
delay between whatever it just did and the mouse positioning command.
Doing the same thing in Dota does not result in the desired behavior,
but it does produce a mouse click event, so we know that the macro did run.
In gimp, the left click produces a "dot". I assume you have a drawing
tool selected.
In Dota, what is supposed to happen if the left click occurs at the
specified location? Are you sure that position is inside the "button"
(or whatever it's called) which will take you to the next camp?
If the above is correct, then:
1) What is your macro doing before the delay and the mouse click?
(Preferably, show us the whole macro.)
If it's not doing anything, then you appear to be telling me that your
computer needs a break between a couple of keypresses and a mouse click.
That doesn't sound right. You couldn't play any games like that. (See #3
below.)
I assume your computer is powerful enough to run gimp manually when
AutoKey isn't involved. Dota is certainly far more demanding than gimp
is. What's your system load like when this happens? If gimp is just
sitting there waiting for you to do something, its contribution to the
load should be almost zero. If you have more than one core and aren't
doing a lot of other unrelated stuff, then I would guess that at least
one core should be almost idle.
2) Please also post the contents of .your_macro_name.json. It will be in
the same directory as your_macro_name.py. If you didn't put it in a user
defined directory, you should find it in a directory under
~/.config/autokey/data - probably in "~/.config/autokey/data/My
Scripts". You can see the directory it's in from the main AutoKey window
when you find it to edit it.
3) I'd still like to see a trace. It would be best if you started the
trace after you have the Dota window selected and all you need to do is
run the macro.
I just read your next post and I'd really like to see what AutoKey says
about moving the mouse cursor and clicking. I've read a bunch of traces,
but I've never looked at a mouse issue before. I could never get the
mouse to do anything at all in 0.90.4. It used to work according to the
original developer, but by the time I tried it, it didn't.
4) If you see anything that looks like an error message near the end of
the trace - after you activated your macro (there may be a few
complaints earlier in the trace that are always there and don't cause
any known issues), then it might be good to see a trace with gimp where
it does work correctly so we can compare the two.
Please forgive me for knowing nothing about (online) gaming. I thought
the actual name was "Dota" before I looked it up in Wikipedia!
I assume this is Defense of The Ancients, currently owned by Valve.
Since this game was not originally designed for Linux, what special
environment does it use? Wine? PlayOnLinux?
Or, is this played directly on the web in your browser? I took a brief
look at their website and that's what it looked like. And they say it
runs on Linux. (I have heard good things about Valve.)
Can we isolate this problem to that environment?
I.e. Does this problem occur anywhere outside the environment?
Does it occur in another game/application in the same environment?
If we can't solve this, I want to do as much as possible to fully
document it. Then, you can file it as an issue with (hopefully) all the
information the current developer needs to figure it out and get it fixed.
Are we going to have to buy a battle pass so our developer can test
this? The project is currently unfunded and none of the donation links work.
It would be great if there's a demo game or a free game where this issue
can be tested.
Joe