Link to home
Start Free TrialLog in
Avatar of JoAnna
JoAnna

asked on

language difficulties

hi everyone,

I have some problems when running my program under an OS with a different language. It will execute another application (which is not made by me) and give it input to start calculating and to close the program. Closing the program needs to be done with a dialog whereas for an English OS you have to select Y (yes) to close.

I have managed to do this by getting the handle of the window and posting text into it, but I don't really know how to deal with the case of multiple languages (I don't want to write an other version for each language).

Is there a way to activate a button on a dialog by not giving the specific character or clicking? YES is not the default, so it could be solved by first giving TAB followed by ENTER, but this is not really what I would like to do.

I suppose it is also possible to retrieve information about the OS and see which are the default buttons for the language that has been set, but I do not know how to do that.. if anyone can explain it to me?

Thanks in advance for your help.
Avatar of mehdi_m
mehdi_m

sorry, can you explain more about your program?

do you want to close another program like "X" that your program exexuted it? if so, please tell me what is that "X" program? maybe there will be a better way to close it - you can control the closing event. but I didn't understand your question well. maybe I'm so...!

I will wait for your answer... .
Avatar of JoAnna

ASKER

hi Mehdi,

The program that I want to close is a Fortran program, running like an application under DOS mode, and I have to wait for it to finish before closing it (it doesn't exit by itself, but will popup a dialog to ask if you want to close it). Then I am reading the output, convert it et cetera and if necessary I am starting the Fortran program again.

I hope this explains it a bit better..
Avatar of JoAnna

ASKER

hi people,

I am still looking for a way to monitor the status of a program.. I hope somebody will be able to help me finding a solution.
ASKER CERTIFIED SOLUTION
Avatar of PatrickMMartin
PatrickMMartin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial