Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio 2015 & .NET 4.6
  4. VB.net keyboard buffer

VB.net keyboard buffer

Scheduled Pinned Locked Moved Visual Studio 2015 & .NET 4.6
csharp
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12337107
    wrote on last edited by
    #1

    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.

    K 1 Reply Last reply
    0
    • U User 12337107

      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.

      K Offline
      K Offline
      K SIS
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups