/
xsh.Dialog
xsh.Dialog
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) |
| 설명
반환 값
| ||||||||||||||||||||||
|
변수 | ||
이름 | 종류 | 설명 |
IsPromptCanceled | BOOL | 프롬프트 다이얼로그에서 취소를 눌렀는지 확인합니다. |
스크립트 예제(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
Related content
xsh.Dialog
xsh.Dialog
More like this
스크립트 사용 변수값에 대한 api 갱신해주세요. [1]
스크립트 사용 변수값에 대한 api 갱신해주세요. [1]
More like this
xshell 업그레이드 [1]
xshell 업그레이드 [1]
More like this
스크립트 관련 문의 [1]
스크립트 관련 문의 [1]
More like this
xsh.Screen
xsh.Screen
More like this
WaitForStrings 오류문의 [2]
WaitForStrings 오류문의 [2]
More like this