本文介绍了Postmessage发送“ctrl + N”。记事本不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

但无法发送Ctrl + N键

有谁能帮帮我?我需要无需关注发送密钥



我尝试过:



But can't send "Ctrl + N" key
Can anyone help me? I need to send the key without focus

What I have tried:

PostMessage (hwnd, WM_SYSKEYDOWN, Keys.F, 2 ^ 29) 'Working - Alt + F
PostMessage (hwnd, WM_CHAR, Keys.A, & H1C0001) 'Working - Shift + a = A
PostMessage(hwnd, WM_KEYDOWN, VK_CONTROL, vbNull) '4 Not working
PostMessage(hwnd, WM_KEYDOWN, Keys.N, vbNull)
PostMessage(hwnd, WM_KEYUP, Keys.N, vbNull)
PostMessage(hwnd, WM_KEYUP, VK_CONTROL, vbNull)

推荐答案



这篇关于Postmessage发送“ctrl + N”。记事本不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 23:59