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. VB Send Win32 Message to Other Apps

VB Send Win32 Message to Other Apps

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi guys, Is there a way to send key-strokes messages to other apps. Current senario; I usually open a MS Word, GFX editor etc. What I want the VB code to do is; I press a button -> VB tells All Open MS-Word, GFX editor etc. that Ctrl-P has been pressed, for example. Anyway to do this?

    K A 2 Replies Last reply
    0
    • L Lost User

      Hi guys, Is there a way to send key-strokes messages to other apps. Current senario; I usually open a MS Word, GFX editor etc. What I want the VB code to do is; I press a button -> VB tells All Open MS-Word, GFX editor etc. that Ctrl-P has been pressed, for example. Anyway to do this?

      K Offline
      K Offline
      Konstantin Vasserman
      wrote on last edited by
      #2

      I guess you could do it with API's: EnumWindows and SendMessage. VB have a native SendKeys statement, but you will still need to use EnumWindows to get all the window handles...

      1 Reply Last reply
      0
      • L Lost User

        Hi guys, Is there a way to send key-strokes messages to other apps. Current senario; I usually open a MS Word, GFX editor etc. What I want the VB code to do is; I press a button -> VB tells All Open MS-Word, GFX editor etc. that Ctrl-P has been pressed, for example. Anyway to do this?

        A Offline
        A Offline
        Armen Hakobyan
        wrote on last edited by
        #3

        SendKeys

        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