Recent

Author Topic: Control Console Application  (Read 5125 times)

katyan

  • New Member
  • *
  • Posts: 21
Control Console Application
« on: March 13, 2010, 07:51:09 pm »
Hi,

Is there a way to control console application on Windows?

I need to  send key strokes to other program which runs in a console. The main goal is to control console application from lazarus GUI program (simulate key strokes).

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1225
    • Burdjia
Re: Control Console Application
« Reply #1 on: March 15, 2010, 08:15:30 am »
I think the best way to use console applications is using pipes. Read about the TProcess class. Here you have a tutorial explaining how to use some of it's characteristics.
« Last Edit: March 15, 2010, 08:18:52 am by Ñuño_Martínez »
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018