G
Guest
Hello,
I am using the FindWindow and SendKeys methods to interact with another
application. This way I manage to fill a textbox in the other application.
But I can't find a way to "push" the OK button (in the top right corner) of
the other application winfow. To close and save the other application form.
Do you know how I can do that? On the keyboard of my Pocket PC Phone
Edition there is a key called "OK". When I push on it, it closes the current
window. Do you know the code of this key so that I can use it with the
SendKeys method ?. I tried {OK} but it isn't working.
I also tried the message SendMessage, with parameter WM_CLOSE. But this
close the other application without "saving" the form. I would need the
message equivalent to someone clicking on the OK button (close and save the
form).
Do you have any clue how I can do that ? Your help is greatly appreciated!
Lionel
I am using the FindWindow and SendKeys methods to interact with another
application. This way I manage to fill a textbox in the other application.
But I can't find a way to "push" the OK button (in the top right corner) of
the other application winfow. To close and save the other application form.
Do you know how I can do that? On the keyboard of my Pocket PC Phone
Edition there is a key called "OK". When I push on it, it closes the current
window. Do you know the code of this key so that I can use it with the
SendKeys method ?. I tried {OK} but it isn't working.
I also tried the message SendMessage, with parameter WM_CLOSE. But this
close the other application without "saving" the form. I would need the
message equivalent to someone clicking on the OK button (close and save the
form).
Do you have any clue how I can do that ? Your help is greatly appreciated!
Lionel