# Path: AXUI/logger/logger.py
# LOGGER = logging.getLogger(logger_config.logger_name)


import ctypes
        import time
        import random
from ctypes import \
    c_int, c_uint, c_long, c_ulong, c_void_p, c_wchar, c_char, \
    c_ubyte, c_ushort, c_wchar_p, \
    POINTER, sizeof, alignment, Union
from AXUI.logger import LOGGER
        x_range = abs(abs_source_coords[0] - abs_dest_coords[0])
        y_range = abs(abs_source_coords[1] - abs_dest_coords[1])
        x_sample_size = x_range/10
        y_sample_size = y_range/10
        #choose the bigger one
        sample_size = x_sample_size > y_sample_size and x_sample_size or y_sample_size
        #build population
        if abs_source_coords[0] < abs_dest_coords[0]:
            x_population = list(range(abs_source_coords[0], abs_dest_coords[0]))
        else:
            x_population = list(range(abs_dest_coords[0], abs_source_coords[0]))
        while len(x_population)<sample_size:
            x_population = x_population*2
            
        if abs_source_coords[1] < abs_dest_coords[1]:
            y_population = list(range(abs_source_coords[1], abs_dest_coords[1]))
        else:
            y_population = list(range(abs_dest_coords[1], abs_source_coords[1]))
        while len(y_population)<sample_size:
            y_population = y_population*2
        #get coords
        if abs_source_coords[0] < abs_dest_coords[0]:
            x_coords = sorted(random.sample(x_population, sample_size))
        else:
            x_coords = sorted(random.sample(x_population, sample_size), reverse=True)
        if abs_source_coords[1] < abs_dest_coords[1]:
            y_coords = sorted(random.sample(y_population, sample_size))
        else:
            y_coords = sorted(random.sample(y_population, sample_size), reverse=True)
        #move mouse

# Path: AXUI/logger/logger.py
# LOGGER = logging.getLogger(logger_config.logger_name)


# Path: AXUI/driver/windows_driver/win32/mouse.py
import ctypes
        import time
        import random
from ctypes import \
    c_int, c_uint, c_long, c_ulong, c_void_p, c_wchar, c_char, \
    c_ubyte, c_ushort, c_wchar_p, \
    POINTER, sizeof, alignment, Union
from AXUI.logger import LOGGER

        x_range = abs(abs_source_coords[0] - abs_dest_coords[0])
        y_range = abs(abs_source_coords[1] - abs_dest_coords[1])
        x_sample_size = x_range/10
        y_sample_size = y_range/10
        #choose the bigger one
        sample_size = x_sample_size > y_sample_size and x_sample_size or y_sample_size
        #build population
        if abs_source_coords[0] < abs_dest_coords[0]:
            x_population = list(range(abs_source_coords[0], abs_dest_coords[0]))
        else:
            x_population = list(range(abs_dest_coords[0], abs_source_coords[0]))
        while len(x_population)<sample_size:
            x_population = x_population*2
            
        if abs_source_coords[1] < abs_dest_coords[1]:
            y_population = list(range(abs_source_coords[1], abs_dest_coords[1]))
        else:
            y_population = list(range(abs_dest_coords[1], abs_source_coords[1]))
        while len(y_population)<sample_size:
            y_population = y_population*2
        #get coords
        if abs_source_coords[0] < abs_dest_coords[0]:
            x_coords = sorted(random.sample(x_population, sample_size))
        else:
            x_coords = sorted(random.sample(x_population, sample_size), reverse=True)
        if abs_source_coords[1] < abs_dest_coords[1]:
            y_coords = sorted(random.sample(y_population, sample_size))
        else:
            y_coords = sorted(random.sample(y_population, sample_size), reverse=True)
        #move mouse

        LOGGER.debug("Mouse move from: %s to %s" , repr(abs_source_coords), repr(abs_dest_coords))