2010年1月12日 星期二

如何取得滑鼠座標

標題只是個晃子,
主要是要測試 http://tohtml.com/
效果好像真的不錯優~

#!/usr/bin/python
# -*- coding: utf-8 -*-

import win32gui
import time

while (True):
    x,y = win32gui.GetCursorPos()
    time.sleep(0.2)
    print x,y

沒有留言:

張貼留言