コード例 #1
0
def calibrate(corner):
    coords = get_cursor_position()
    logger.info(Board)
    if (corner):
        Board.left_top = coords
    else:
        Board.right_bottom = coords
コード例 #2
0
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()
コード例 #3
0
ファイル: voice_dev_commands.py プロジェクト: tlappas/Caster
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()