I want to be able to return False in a function and then start up another function. This is because I made a testing tool that records but needs to record the coordinates and not let the mouseclick through.
What I have now in combination with a pyhook mousehook is this:
def OnMouseEvent(event):
if temp == 0:
temp = 1
originalcoordinates = x/y mouse
return False
if temp == 1:
do a lot of things that take up a lot of time
click on original coordinates
temp = 0
return False
At the moment the first return False works and doesn't let the mouseclick through but the second has to many arguments and time befor the return and the mouseclick handle is already passed on to windows and clicks.