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? |
Beta Was this translation helpful? Give feedback.
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 . |
Beta Was this translation helpful? Give feedback.
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 …