Reusing a .exe

Trivium
06-28-2004, 08:14 AM
Hey guys, I am trying to get an app to work as follows:

User calls .exe file, which generates screens from a text script file.
User clicks a button on the form, which writes some values back, for another programming language to use.
The .exe file is recalled by the next screen, specifying a different little script file, now instead of populating a new screen, I'd like to reuse the window that is already open.

I have absolutely no idea how to call the same window again. Can somebody just give me a starting point on what I need to be doing here?

Many thanks!

Kalkran
06-28-2004, 09:35 AM
AppActivate "Caption Of Exe"
SendKeys "Bleh"

Or use the FindWindow and SendString (???) commands

Kalkran :D

Trivium
06-28-2004, 10:13 AM
Thanks for the quick reply, I'll try it out here shortly and let you know how it goes. I'll just have to figure out how to define the caption, because it's set dynamically from the other language as we go along. I'll bet my boss and I can figure something out though. ^_^

Many thanks again.

Kalkran
06-29-2004, 12:15 AM
:p Welcome :p
Do you shell the program before you activate it???
You could use this coding if that is what you do:
X = Shell("App.Exe")
AppActivate X
SendKeys "Bl3h...."

Kalkran

Trivium
06-29-2004, 07:50 AM
I'm actually calling it as a shell call from another programming language, so that's a no go. Otherwise that would be nice nifty-cool, I will try and remember it for future use though.

I'm just writing a visual basic front-end for some older software our company uses. Make it look nice and pretty, since the logic is already there, and works well, no need to rewrite it.

Thanks for the help, any more ideas will certainly be used for the furthering of my own knowledge on this stuff. ^_^

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum