MCPcopy
hub / github.com/Sentdex/pygta5 / SendInput

Method SendInput

original_project/keys.py:463–468  ·  view source on GitHub ↗
(self, *inputs)

Source from the content-addressed store, hash-verified

461
462 # send input
463 def SendInput(self, *inputs):
464 nInputs = len(inputs)
465 LPINPUT = INPUT * nInputs
466 pInputs = LPINPUT(*inputs)
467 cbSize = ctypes.c_int(ctypes.sizeof(INPUT))
468 return ctypes.windll.user32.SendInput(nInputs, pInputs, cbSize)
469
470 # get input object
471 def Input(self, structure):

Callers 15

sendKeyMethod · 0.95
sendMouseMethod · 0.95
PressKeyFunction · 0.80
ReleaseKeyFunction · 0.80
PressKeyFunction · 0.80
ReleaseKeyFunction · 0.80
PressKeyFunction · 0.80
ReleaseKeyFunction · 0.80
PressKeyFunction · 0.80
ReleaseKeyFunction · 0.80
PressKeyFunction · 0.80
ReleaseKeyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected