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. C#
  4. Start and use an external application

Start and use an external application

Scheduled Pinned Locked Moved C#
helpcsharpc++javaquestion
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.
  • R Offline
    R Offline
    Rey9999
    wrote on last edited by
    #1

    Hello to everybody! I've been programming in c# for a couple of months and got a problem in an application i'm creating for a little company. my application lets you control a little transponder reader, linked to the pc by a serial cable. this application should also let you update the firmware, using an external executable thet was created by another software house. this external program shows a little form with an "update!" button. users should click on this button to start firmware updating. the problem is, my boss doesn't want this little form to appear and wants instead the firmware to be updated without users have to click on this external form. i found the code of an old c++ program they used to do this. it used the function setTimer to give the little form a value corresponding to "enter" key, immediately starting the firmware update. is there any way to do this in c#? please understand i am relatively new to the world of programming. i studied a little java at the university and a little c# by myself. i'd really appreciate any help on this, because i can't really cope with this. oh and by the way sorry for my bad english. thanks in advance, Rey9999

    C 1 Reply Last reply
    0
    • R Rey9999

      Hello to everybody! I've been programming in c# for a couple of months and got a problem in an application i'm creating for a little company. my application lets you control a little transponder reader, linked to the pc by a serial cable. this application should also let you update the firmware, using an external executable thet was created by another software house. this external program shows a little form with an "update!" button. users should click on this button to start firmware updating. the problem is, my boss doesn't want this little form to appear and wants instead the firmware to be updated without users have to click on this external form. i found the code of an old c++ program they used to do this. it used the function setTimer to give the little form a value corresponding to "enter" key, immediately starting the firmware update. is there any way to do this in c#? please understand i am relatively new to the world of programming. i studied a little java at the university and a little c# by myself. i'd really appreciate any help on this, because i can't really cope with this. oh and by the way sorry for my bad english. thanks in advance, Rey9999

      C Offline
      C Offline
      codeprojectin
      wrote on last edited by
      #2

      Hi, 1. Checkout if the external program allows to you to have command line options for updates. like /u etc, to find out use /? or /help 2. Otherwise, use process ProcessInfo to call the application and use Process.Showwindow = false (dont remember the exact function name) and use Sendkeys "{SPACE}" if you still wish to do the old C++ way. 3. The otherway would be to use Win32API to execute commands and get hold of the window.

      R 1 Reply Last reply
      0
      • C codeprojectin

        Hi, 1. Checkout if the external program allows to you to have command line options for updates. like /u etc, to find out use /? or /help 2. Otherwise, use process ProcessInfo to call the application and use Process.Showwindow = false (dont remember the exact function name) and use Sendkeys "{SPACE}" if you still wish to do the old C++ way. 3. The otherway would be to use Win32API to execute commands and get hold of the window.

        R Offline
        R Offline
        Rey9999
        wrote on last edited by
        #3

        thanks for your fast reply! i tried solution no. 1 but this application takes no parameters. so i tried solution no. 2 but i noticed the "keystroke" is sent to my form, not to the external application; i think it's because my form is seen as the active application, not the external executable. i'd like to try solution no. 3 but i don't really know how to do it. i know i may sound annoying but can you give me a hint on using this Win32API stuff? i wish i knew more about programming but you know italian universities... thanks alot, Rey9999

        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