i close a program with :
SendMessage (nHwnd, WM_SYSCOMMAND, SC_CLOSE, 0);
but this program want a confirm in a dialogbox with YES and NO button ( NO is the default button ).
i want send a message to this dialog box for validate the YES button for exit of this program.
with Psy++ this is the name of this dialog box "#32770 (Dialog)", "Question".
Thanks for help me, it is very important.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
i want sendmessage to a YES NO dialogbox
Started by
delepine
, Oct 25 2002 17:10
1 reply to this topic
Posted 25 October 2002 - 23:58
The only way I've found to do stuff like this is through VB. If the YES button is the default choice, it's easy enough (just send an enter key with SendKeys). Otherwise, you'll need to add enough SendKeys() with tab values to get you to the yes button.
Here's some code I used to make a program to enter a field and press enter in a pop-up window - Hope this can help!
Option Explicit
AppActivate "<WINDOW TITLE>"
DoEvents
SendKeys "<Whatever keystrokes you want to send the window>", True
DoEvents
AppActivate "<WINDOW TITLE>"
SendKeys "{enter}", True
DoEvents
DoEvents
Here's some code I used to make a program to enter a field and press enter in a pop-up window - Hope this can help!
Option Explicit
AppActivate "<WINDOW TITLE>"
DoEvents
SendKeys "<Whatever keystrokes you want to send the window>", True
DoEvents
AppActivate "<WINDOW TITLE>"
SendKeys "{enter}", True
DoEvents
DoEvents