Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: HELP xMessageBox MB_Help Issue Problem 16384
I am using 16388 that gives YES, NO and HELP buttons. I get the return code for YES and NO, but nothing returns on HELP.
Here is the API documentation for the Help button. http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx
It states: MB_HELP Windows 95/98/Me, Windows NT 4.0 and later: Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner. Notice: It merely sends a 'system message' to the script. The WinBatch script is not equipped to handle monitoring for a message. The Help button is not really a valid option for WinBatch.
I recommend creating your own WIL Dialog with each of these buttons. For Example:
title = 'MessageBox test' text = 'Are you having fun?' MyDialogFormat=`WWWDLGED,6.2` MyDialogCaption=title MyDialogX=152 MyDialogY=177 MyDialogWidth=176 MyDialogHeight=059 MyDialogNumControls=004 MyDialogProcedure=`DEFAULT` MyDialogFont=`DEFAULT` MyDialogTextColor=`DEFAULT` MyDialogBackground=`DEFAULT,DEFAULT` MyDialogConfig=0 MyDialog001=`009,035,036,012,PUSHBUTTON,"PushButton_OK",DEFAULT,"Yes",1,10,32,DEFAULT,DEFAULT,DEFAULT` MyDialog002=`065,035,036,012,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"No",2,20,DEFAULT,DEFAULT,DEFAULT,DEFAULT` MyDialog003=`125,035,036,012,PUSHBUTTON,"PushButton_3",DEFAULT,"Help",3,30,DEFAULT,DEFAULT,DEFAULT,DEFAULT` MyDialog004=`011,011,152,012,VARYTEXT,"VaryText_1",DEFAULT,`:text:`,DEFAULT,40,DEFAULT,DEFAULT,DEFAULT,DEFAULT` ButtonPushed=Dialog("MyDialog") Pause('ButtonPushed',ButtonPushed) Exit
Article ID: W17611
Filename: xMessageBox MB_Help Issue.txt
File Created: 2009:11:05:09:39:46
Last Updated: 2009:11:05:09:39:46