def main():
set_window_top()
print u'????? http://cn.vonvon.net/quiz/743 ??????'
print u'????????????????? y/n\n> ',
choice = raw_input()
offset_x, offset_x_r, offset_y, offset_y_r = 0, 0, 0, 0
if choice == 'y':
offset_x = 770
offset_y = 265
offset_x_r = 1145
offset_y_r = 640
elif choice == 'n':
print u'???????, ??????????????'
count_down(3)
offset_x, offset_y = win32api.GetCursorPos()
print u'?????, ????????'
count_down(3)
offset_x_r, offset_y_r = win32api.GetCursorPos()
print u'????????...'
global im
count = 50
while count:
count -= 1
im = grab((offset_x, offset_y, offset_x_r, offset_y_r))
mouse_move([sum(i) for i in zip((offset_x, offset_y), get_position())])
sleep(0.1)
mouse_click()
sleep(0.2)
评论列表
文章目录