2011-07-01 04:34:49 +08:00
|
|
|
from py_xdotool import *
|
|
|
|
from time import sleep
|
|
|
|
|
2011-07-01 05:30:36 +08:00
|
|
|
print getactivewindow()
|
|
|
|
print search(name="System Monitor")
|
|
|
|
print search(name="System Monitor", onlyvisible=True)[0].get_name()
|
|
|
|
'''
|
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
|
|
|
'''
|