Xshell Forum

Can't call MsgBox in Script file

Last post: Monday, September 30, 2013 9:08 AM by Support, 4 reply

 
Tuesday, July 16, 2013 11:09 PM - Tom

Can't call MsgBox in Script file

 
I call MsgBox function in script file
A dialog shows "no privilege"

my code:

Sub Main
Dim String1
String1=xsh.Screen.Get(5, 41, 5, 80)
MsgBox String1
End Sub

Program Ver. : Xshell 4
Tuesday, July 16, 2013 11:39 PM - Alice

Re: Can't call MsgBox in Script file

 
Try this:

Sub Main
Dim String1
String1=xsh.Screen.Get(5, 41, 5, 80)
xsh.Dialog.MsgBox(String1)
End Sub\
Wednesday, July 17, 2013 6:28 PM - Tom

Re: Can't call MsgBox in Script file

 
I tried.
This script could run.
But the dialog shows nothing
Is xsh.screen.get method compatible with Traditional Chinese (Big5) ?
Thursday, September 26, 2013 10:02 PM - le tian

Re: Can't call MsgBox in Script file

 
thank you!Automatic login to solve the problem, but I encountered a new problem, I want to use xsh.Screen.Get () to get the first character of current line, do not know how to write?
Monday, September 30, 2013 9:08 AM - Support

Re: Can't call MsgBox in Script file

 
I have explained it in your other thread.


---
Technical Support