Posted on 2003-11-03
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.