Python Gives Syntax Error But There Is No Mistake?
Can someone say why python doesn't allow this? # -*- coding: utf-8 -* import win32api,win32con,os,time,sys x_pad =464 y_pad =235 def tik(): win32api.mouse_event(win32con.MOUSE
Solution 1:
Look at the code immediately above the reported error:
defmousePos(cord):
win32api.SetCursorPos((x_pad + cord[0], y_pad + cord[1])
You're missing a closing parentheses.
Post a Comment for "Python Gives Syntax Error But There Is No Mistake?"