Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/p/i/pizzabot-HEAD/win32bot.py   pizzabot(Download)
def drag(x,y,movx,movy):
	win32api.SetCursorPos((x,y))
	win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
	time.sleep(.1)
	win32api.SetCursorPos((x+movx,y+movy))
def rungame():
	win32api.SetCursorPos((0,0))
	img=sshot(boardstartx,boardstarty,boardstartx+(8*sqx),boardstarty+(8*sqy))
	gameboard=[]
	getcolors(img,gameboard)

src/l/i/libMA-HEAD/bluestack.click.py   libMA(Download)
def click(x, y):
    hwnd = win32gui.GetForegroundWindow()
    x1, y1, x2, y2 = win32gui.GetWindowRect(hwnd)
    x, y = x1+x, y1+y
    win32api.SetCursorPos((x, y))

src/e/n/enso-portable-HEAD/enso/commands/win_tools.py   enso-portable(Download)
    def SetCursorPosition(self, posTuple):
        '''Also, check out win32api.mouse_event for a way to simulate a mouse event'''
        win32api.SetCursorPos(posTuple)
 
'''

src/s/t/starjeweled-bot-HEAD/mouse.py   starjeweled-bot(Download)
def move(x, y):
    win32api.SetCursorPos((x, y))
 
def click(x, y):
    move(x, y)

src/b/u/Burrito-Bot-HEAD/bison.py   Burrito-Bot(Download)
def set_mouse_pos(pos=(0,0)):
	x,y = pos
	x = x + offset.x
	y = y + offset.y
	win32api.SetCursorPos((x,y))

src/b/u/Burrito-Bot-HEAD/Burrito-bot_OLD/bison.py   Burrito-Bot(Download)
def mousePos(x=(0,0)):
    win32api.SetCursorPos(x)
    #Temporary position. Eventually this will receive arguments based on
    #game logic
    tmp = (156, 335)

src/p/y/python-windows-tiler-HEAD/pwt/window.py   python-windows-tiler(Download)
            rect = self.windowrectangle
 
            win32api.SetCursorPos(((rect[2] + rect[0]) // 2
                ,(rect[3] + rect[1]) // 2))