(x, y, store)
Find the resolution of the monitor and adjusted x, y coordinates.
Find the resolution of the monitor and adjusted x, y coordinates.
Find the resolution of the monitor and adjusted x y coordinates .
def get_monitor_coordinate(x, y, store):
    """Find the resolution of the monitor and adjusted x, y coordinates."""

    if store['ApplicationResolution'] is not None:
        try:
            resolution, (x_offset, y_offset) = monitor_offset((x, y),  [store['ApplicationResolution'][0]])
        except TypeError:
            return None
            
        return ((x - x_offset, y - y_offset), resolution)
            
    elif MULTI_MONITOR:
    
        try:
            resolution, (x_offset, y_offset) = monitor_offset((x, y), store['MonitorLimits'])
        except TypeError:
            store['MonitorLimits'] = monitor_info()
            try:
                resolution, (x_offset, y_offset) = monitor_offset((x, y), store['MonitorLimits'])
            except TypeError:
                return None
        
        check_resolution(store['Applications'][store['CurrentProgramName']]['Data'], resolution)
        return ((x - x_offset, y - y_offset), resolution)
        
    else:
        resolution = store['Resolution']
        
        return ((x, y), resolution)
def get_monitor_coordinate ( x , y , store ) : if store [ 'ApplicationResolution' ] is not None : try : resolution , ( x_offset , y_offset ) = monitor_offset ( ( x , y ) , [ store [ 'ApplicationResolution' ] [ 0 ] ] ) except TypeError : return None return ( ( x - x_offset , y - y_offset ) , resolution ) elif MULTI_MONITOR : try : resolution , ( x_offset , y_offset ) = monitor_offset ( ( x , y ) , store [ 'MonitorLimits' ] ) except TypeError : store [ 'MonitorLimits' ] = monitor_info ( ) try : resolution , ( x_offset , y_offset ) = monitor_offset ( ( x , y ) , store [ 'MonitorLimits' ] ) except TypeError : return None check_resolution ( store [ 'Applications' ] [ store [ 'CurrentProgramName' ] ] [ 'Data' ] , resolution ) return ( ( x - x_offset , y - y_offset ) , resolution ) else : resolution = store [ 'Resolution' ] return ( ( x , y ) , resolution )