PDA

View Full Version : Newbie Question, please just a short hint!


fritzbrause
8th May 2002, 14:47
with which program do you control other executables so elegant like in DVD2SVCD ?
can you do this with Delphi?
i am a newbie in this tasks, but i got a project, in which also needt to control some executables ;-)

please just an quick hint. i would be very thankful!

regards fritzbrause.

Nic
8th May 2002, 15:05
Alot of programs just use simple windows SendMessage calls to set text, press buttons, etc

i.e.
SendMessage(hWnd, WM_SETTEXT, 0, (LPARAM)"Set some text foo");

FindWindow can be used to find windows (FindWindowEx to find the child windows)

(also try to keep the subject of your threads related to the content...Thanks :) )

-Nic

ps
I dont know delphi so im not sure how much it helps :)

Tza
10th May 2002, 12:50
See "Window Functions" in MSDN.

I expect you'll need
FindWindow
EnumChildWindows
ShowWindow
GetWindowText

Look at Microsoft Spy++ for some of the things you can do.

TheWEF
11th May 2002, 05:02
have a look at this (http://www.swissdelphicenter.ch/torry/showcode.php?id=727).

wef. :)