You can use this to manipulate the Xshell terminal screen. To use the following function and variable, execute it with xsh.Dialog. For example, if you want to use the MsgBox() function, append xsh.Dialog.MsgBox() in the front like this: xsh.Dialog.MsgBox().
Functions | | | |
|
|
|
Return Value | Function | Parameter | Description |
Long | MsgBox(LPCTSTR lpszMsg) | - LpszMsg
String you want to send.
| Open a message box. |
string | Prompt(LPCTSTR lpszMessage, LPCTSTR LPCTSTR lpszTitle, LPCTSTR lpszDefault, BOOL bHidden) | | Anchor |
---|
| _GoBack | _GoBackLPCTSTR lpszDefault, BOOL bHidden)- lpszMessage
The string to be displayed in the Prompt Dialog Box - lpszTitle
The string to be displayed in the title bar of the Prompt Dialog Box - lpszDefault
Initial default string of Prompt Dialog Box input box - bHidden
If set to True, input will be hidden (e.g. *****)
| Description - Returns user’s input from Prompt Dialog Box
Return Values - User’s input from Prompt Dialog Box
|
int | MessageBox(LPCTSTR lpszMessage, LPCTSTR lpszTitle, int nType) | - lpszMessage
The string to be displayed in the Message Box - lpszTitle
The string to be displayed in the title bar of the Message Box - nType
Dictates button types. Refer to the table below
| Description - Displays a message box with a variety of buttons and return values depending on the user’s button selection
Return Values - Refer to the nType parameter description below
|
nType | Button | Return Value | 0 | OK | 1 | 1 | OK / Cancel | 1 / 2 | 2 | Abort / Retry / Ignore | 3 / 4 / 5 | 3 | Yes / No / Cancel | 6 / 7 / 2 | 4 | Yes / No | 6 / 7 | 5 | Retry / Cancel | 4 / 2 | 6 | Cancel / TryAgain / Continue | 2 / 10 / 11 |
|