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

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

src/p/y/PyUserInput-0.1.9/pykeyboard/windows.py   PyUserInput(Download)
            shifted = self.is_char_shifted(character)
        except AttributeError:
            win32api.keybd_event(character, 0, 0, 0)
        else:
            if shifted:
                win32api.keybd_event(self.shift_key, 0, 0, 0)
            char_vk = win32api.VkKeyScan(character)
            win32api.keybd_event(char_vk, 0, 0, 0)
            shifted = self.is_char_shifted(character)
        except AttributeError:
            win32api.keybd_event(character, 0, KEYEVENTF_KEYUP, 0)
        else:
            if shifted:
                win32api.keybd_event(self.shift_key, 0, KEYEVENTF_KEYUP, 0)

src/p/y/PyUserInput-HEAD/pykeyboard/windows.py   PyUserInput(Download)
            shifted = self.is_char_shifted(character)
        except AttributeError:
            win32api.keybd_event(character, 0, 0, 0)
        else:
            if shifted:
                win32api.keybd_event(self.shift_key, 0, 0, 0)
            char_vk = win32api.VkKeyScan(character)
            win32api.keybd_event(char_vk, 0, 0, 0)
            shifted = self.is_char_shifted(character)
        except AttributeError:
            win32api.keybd_event(character, 0, KEYEVENTF_KEYUP, 0)
        else:
            if shifted:
                win32api.keybd_event(self.shift_key, 0, KEYEVENTF_KEYUP, 0)

src/e/n/enso-portable-HEAD/enso/enso/platform/win32/selection/_ContextUtils.py   enso-portable(Download)
    # This creates the keyboard event (this function is the one called
    # by keyboard driver interupt handlers, so it's as low-level as it gets)
    win32api.keybd_event( vkCode, scanCode, eventType, 0 )
 
 
        # event wrapper.
        if key in ["SD", "AD", "ID", "CD"]:
            win32api.keybd_event( mapping[key], 0, KEYEVENTF_KEYDOWN, 0 )
            continue
        if key in ["SU", "AU", "IU", "CU"]:
            win32api.keybd_event( mapping[key], 0, KEYEVENTF_KEYUP, 0 )

src/t/w/twitch-plays-HEAD/lib/game.py   twitch-plays(Download)
    def push_button(self, button):
        win32api.keybd_event(self.button_to_key(button), 0, 0, 0)
        time.sleep(.15)
        win32api.keybd_event(self.button_to_key(button), 0, win32con.KEYEVENTF_KEYUP, 0)

src/t/w/TwitchPlaysPokemon-HEAD/TwitchPlaysBot/Launch.py   TwitchPlaysPokemon(Download)
    '''
    for i in args:
        win32api.keybd_event(VK_CODE[i], 0, 0, 0)
        if QUICK_PRESS == False:
            time.sleep(0.2)
        if QUICK_PRESS == True:
            time.sleep(.01)
        win32api.keybd_event(VK_CODE[i],0 ,win32con.KEYEVENTF_KEYUP ,0)

src/g/m/gmediafinder-HEAD/GmediaFinder/gmediafinder.py   gmediafinder(Download)
        if self.fullscreen == True and self.mini_player == False and self.timer > 55:
            if sys.platform == "win32":
                win32api.keybd_event(7,0,0,0)
            else:
                send_string('a')