2011-07-01 04:34:49 +08:00
|
|
|
from py_xdotool import *
|
|
|
|
from time import sleep
|
|
|
|
|
2011-07-01 12:27:00 +08:00
|
|
|
active = get_active_window()
|
|
|
|
print 'bla', active.get_geometry()
|
|
|
|
|
|
|
|
print get_pixel_color(0, 0)
|
2011-07-01 05:30:36 +08:00
|
|
|
print search(name="System Monitor")
|
2011-07-01 12:27:00 +08:00
|
|
|
print search(name="System Monitor", onlyvisible=True)[0].get_pid()
|
2011-07-01 05:30:36 +08:00
|
|
|
'''
|
2011-07-01 04:34:49 +08:00
|
|
|
mousemove(0, 0)
|
|
|
|
sleep(1)
|
|
|
|
click_at(100, 100, 3)
|
|
|
|
sleep(1)
|
|
|
|
click_at(500, 100, 1)
|
2011-07-01 05:30:36 +08:00
|
|
|
'''
|