directkeys.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:OpenAI_Challenges 作者: AlwaysLearningDeeper 项目源码 文件源码
def ReleaseKey(hexKeyCode):
    extra = ctypes.c_ulong(0)
    ii_ = Input_I()
    ii_.ki = KeyBdInput( 0, hexKeyCode, 0x0008 | 0x0002, 0, ctypes.pointer(extra) )
    x = Input( ctypes.c_ulong(1), ii_ )
    ctypes.windll.user32.SendInput(1, ctypes.pointer(x), ctypes.sizeof(x))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号