def calibrate(corner): coords = get_cursor_position() logger.info(Board) if (corner): Board.left_top = coords else: Board.right_bottom = coords
def type_mouse_current(): # Type Mouse("[X, Y]"). The typed Mouse action will move the cursor to # back to where it was when the command was spoken. Text('Mouse("[%d, %d]")' % get_cursor_position()).execute()
def type_mouse_current_position_button(mouse_button="left"): first_part_of_string = 'Mouse("[%d, %d], ' % get_cursor_position() second_part_of_string = '%s' % mouse_button full_string = first_part_of_string + second_part_of_string Text(full_string).execute()