2016-12-03 2 views

답변

1

다음 음성 명령은 CTRL 키를 3 초 동안 누르고 있습니다. 키를 누르고있는 시간과 키를 변경할 수 있습니다.

' Tested with Dragon NaturallySpeaking 12.5 Professional on Windows 7 SP1 x64 Ultimate 
' From http://nuance-community.custhelp.com/posts/2cd74d2484 
' Lindsay Adam 
' www.pcbyvoice.com 

Declare Function keybd_event Lib "user32.dll" (ByVal vKey As _ 
Long, bScan As Long, ByVal Flag As Long, ByVal exInfo As Long) As Long 

' You can find all the virtual key codes in the following link: 
' http://msdn.microsoft.com/en-us/library/ms927178.aspx 
Const VK_CTRL = 17 

Sub Main 
    keybd_event(VK_CTRL,0,0,0) 
    Wait(3) 
    keybd_event(VK_CTRL,0,2,0) 
End Sub 

http://msdn.microsoft.com/en-us/library/ms927178.aspx (자신의 robots.txt에 나를 https://web.archive.org 자신의 웹 사이트를 미러링 할 수 없습니다) :

enter image description here