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 Basic
  4. IS it possible in vb

IS it possible in vb

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studioquestion
2 Posts 2 Posters 0 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.
  • P Offline
    P Offline
    percyvimal
    wrote on last edited by
    #1

    Sir i need to develop a software where i have to change the ascii character into extended ascii character and send to the active application. say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it. Is it possible to achive this in vb 6 and if yes then how? Codes or ideas are greatly appreciated. Thanks in advance

    A 1 Reply Last reply
    0
    • P percyvimal

      Sir i need to develop a software where i have to change the ascii character into extended ascii character and send to the active application. say if a user type A from the keyboard it should be converted to say € irrespective of whatever the application is running may be it is visual studio or word or notepad or photshop u name it. Is it possible to achive this in vb 6 and if yes then how? Codes or ideas are greatly appreciated. Thanks in advance

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      In order to get your hands on the keystroke before NAY application got it, you would have to install a low-level keyboard hook. This is done by writing a callback function (one where the system calls you), and using the Win32 API calls to SetWindowsHookEx, UnhookWindowsHookEx, and CallNextHookEx. Documentation on these calls can be found on MSDN starting here[^]. Mind you, hooking into the system isn't really VB's forte'. I've never done it in VB. It just looked MUCH easier to write in C++. I did something similar to prevent the 'Window' key from being used.

      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