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. 2 tera term application process within winform

2 tera term application process within winform

Scheduled Pinned Locked Moved C#
algorithmshelptutorialquestion
2 Posts 2 Posters 34 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
    Ronald Boucher
    wrote on last edited by
    #1

    I was able to get 2 seperate processes to run the tera term applications within WinForm successfully. I have a DUT that has 2 ports and each process to communicate with one of the port. Manually sending the command within the tera term process window works well. However, I have the list of commands using DataGridView above two terminals. I was planning on having the user to click on the command from the datagridview and send the command to one of the tera term process. I'm not sure on how to issue the command string to the process. Been searching online and wasn't sure on how to do this. Any ideas? If you want me to plug in the code, I would be happy to do so with what I did.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sneha2004sahani2004
      wrote last edited by
      #2

      The easiest way is not to try to “type” into Tera Term, just use its macro support. From your DataGridView click event, generate a .ttl file like:
      sendln "your command here"
      Then run it with:
      Process.Start("ttpmacro.exe", "myscript.ttl");
      That’ll send the command straight into the right Tera Term session. If you don’t need Tera Term at all, just use SerialPort.WriteLine() in C# instead.

      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