You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you do not state what platform you are running this on I can only speculate. However, I think the issue is that these functions are not invoked sequentially; when a mouse button is clicked, on_click is eventually called and the check whether isRun is True is performed. Since it is not, g36k is called, a fake event is emitted and isRun is reset to False. Some time later, the fake event will cause on_click to be called again, but isRun has already been reset.
I suggest you check out the feature-injected branch. On that branch, you get an extra argument to on_click: injected. This argument signals that the current event was not generated by the user, but rather some other controller; this appears to be what you are after.
I would love some feedback on that branch; it has remained unmerged for six years already, but I have at least kept it up-to-date.
The above is my py code. When I run to ctr.click(Button.left), I can't output print("end "), and my mouse is stuck.
The text was updated successfully, but these errors were encountered: