Solved

Send Mouse and Executing a Batch file with paras?

Posted on 1998-12-22
1
126 Views
Last Modified: 2010-04-04
How can i send the mouse pointer to certain cordinates on the screen and I have tryed repeatedly to execute a exe with paramiters. I want to execute a console app and dump it's output into a txt file to do that you have to execute it using -  console.exe >> Dump.txt  but i can't get delphi to run it like that? can any one help Me please?
0
Comment
Question by:cold17
1 Comment
 
LVL 17

Accepted Solution

by:
inthe earned 20 total points
Comment Utility
hi,
to set cursor position use:
SetCursorPos(x,y);

  and have a look here http://www.delphidevelopers.com/
do a site search for redirector and download redir.zip below is a bit of info about it i think it will be of help to you.



TRedirector:  Starts Dos prompts or Dos applications, hidden or shown, redirects the output to, say a TMemo, and can also send keystrokes from Delphi to the Dos prompt or dos application. It´s very useful for controlling Command line utils like compilers or compressing tools.

Regards Barry
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now