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. Managed C++/CLI
  4. Send Keyboard Values ??

Send Keyboard Values ??

Scheduled Pinned Locked Moved Managed C++/CLI
question
3 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.
  • F Offline
    F Offline
    Fritzables
    wrote on last edited by
    #1

    I am creating a console app that starts NOTEPAD.EXE but then needs to emulate the user accessing the menu. I have started the process by using Process::Start("NOTEPAD.EXE"); Now I need to simulate a user pressing 'Alt F' to access the file menu - how do I achieve this ?? Pete

    L 1 Reply Last reply
    0
    • F Fritzables

      I am creating a console app that starts NOTEPAD.EXE but then needs to emulate the user accessing the menu. I have started the process by using Process::Start("NOTEPAD.EXE"); Now I need to simulate a user pressing 'Alt F' to access the file menu - how do I achieve this ?? Pete

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Off the top of my head.... Use the non static version of Process::Start() so you have a Process object Call Process.MainWindowHandle() to get a handle to the window Then use Win32 functions or MFC to send messages to the window using the handle

      System.IO.Path.IsPathRooted() does not behave as I would expect

      F 1 Reply Last reply
      0
      • L Lost User

        Off the top of my head.... Use the non static version of Process::Start() so you have a Process object Call Process.MainWindowHandle() to get a handle to the window Then use Win32 functions or MFC to send messages to the window using the handle

        System.IO.Path.IsPathRooted() does not behave as I would expect

        F Offline
        F Offline
        Fritzables
        wrote on last edited by
        #3

        Thanks Josh, See how we go..... Pete

        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