Xshell의 터미널 화면을 다룰 때 사용할 수 있습니다. 다음 함수와 변수를 사용하기 위해서는 xsh.Dialog과 함께 실행합니다. 예를 들면 'MsgBox()' 함수를 사용하고자 한다면 'xsh.Dialog.MsgBox()'와 같이 사용합니다.
Functions | |||||||||||||||||||||||||
반환값 | 함수 | 파라미터 | 설명 | ||||||||||||||||||||||
Long | MsgBox(LPCTSTR lpszMsg) |
| 메시지 박스를 띄웁니다. | ||||||||||||||||||||||
string | Prompt(LPCTSTR lpszMessage, LPCTSTR lpszTitle, LPCTSTR lpszDefault, BOOL bHidden) |
| 설명
반환 값
| ||||||||||||||||||||||
int | MessageBox(LPCTSTR lpszMessage, LPCTSTR lpszTitle, int nType) |
| 설명
반환 값
| ||||||||||||||||||||||
|
스크립트 예제(VB 스크립트)
Sub Main Dim hostname, username, password hostname = xsh.Dialog.Prompt ("Insert Hostname", "Prompt Dialog", "hostname", 0) username = xsh.Dialog.Prompt ("Username", "Prompt Dialog", "", 0) password = xsh.Dialog.Prompt ("Password", "Prompt Dialog", "", 1) if xsh.Dialog.MessageBox("Connect to " & hostname & " server", "MessageBox",1) = 1 then xsh.Session.Open("ssh://" & username & ":" & password & "@" & hostname) End If End Sub