VB.net keyboard buffer
-
Hi all, I have a program that wont support the windows messaging system, so i cant use "sendkey", it will accept keyboard input so if i could send keystrokes to the keyboard buffer this should work, I am trying to automate a proccess.
-
Hi all, I have a program that wont support the windows messaging system, so i cant use "sendkey", it will accept keyboard input so if i could send keystrokes to the keyboard buffer this should work, I am trying to automate a proccess.
Imports Microsoft.Win32 _ Public Sub keybd_event(ByVal bVk As Byte, ByVal bScan As Byte, _ ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer) End Sub 'Example of use sending Scroll Lock Key to system ' This can send control charactors as per your requirement where sendkeys doesnot work. Public Sub Test() If GetKeyState(VK_SCROLL) = 1 Then keybd_event(VK_SCROLL, 0, 0, 0) keybd_event(VK_SCROLL, 0, KEYEVENTF_KEYUP, 0) End If End Sub