Using ctypes with jython

后端 未结 4 1581
梦如初夏
梦如初夏 2021-01-19 12:27

I have a trouble with using ctypes lib in my python script. Here is my code (found on the Internet):

if __name__ == \"__main__\":
    from ctypes import *
           


        
4条回答
  •  爱一瞬间的悲伤
    2021-01-19 12:29

    Ok, thx dudes! I just reconfig my NetBeans, now its using cPython. Everything works. I just had to changed the line user32.SetCursorPos(windowRect.left + x, windowRect.top + y) to: user32.SetCursorPos(c_ulong(windowRect.left + x), c_ulong(windowRect.left + y))

提交回复
热议问题