Can't Get Click To work? #304
|
I'm trying to make a click without mouse moving, can't get it to work at all? Simple code Also what paramaters does control_click() need? |
Answered by
spyoungtech
May 9, 2024
Replies: 1 comment
|
You could make a small adjustment and use - win.click(myK.get_mouse_position())
+ win.click(*myK.get_mouse_position())Or in the latest version of the library, you can also do something like this: pos = myK.get_mouse_position()
win.click(pos.x, pos.y)
You can always look at the signature in the code or in the api documentation:
The meanings of the arguments should either be plain or the same as in the AutoHotkey documentation . |
0 replies
Answer selected by
spyoungtech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
win.clickexpects separate x,y arguments. It's not quite consistent with the regularclickfunction, which also accepts a tuple in place of thexargument.You could make a small adjustment and use
*unpacking to do this:Or in the latest version of the library, you can also do something like this:
You can always look at the signature in the code or in the api documentation:
The meanings of the arguments should either be plain or the same as in …