Can't call MsgBox in Script file [4]

Can't call MsgBox in Script file

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

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


Re: Can't call MsgBox in Script file

Tuesday, July 16, 2013 11:39 PM - Alice

Try this:

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


Re: Can't call MsgBox in Script file

Wednesday, July 17, 2013 6:28 PM - Tom

I tried.
This script could run.
But the dialog shows nothing
Is xsh.screen.get method compatible with Traditional Chinese (Big5) ?


Re: Can't call MsgBox in Script file

Thursday, September 26, 2013 10:02 PM - le tian

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?


Re: Can't call MsgBox in Script file

Monday, September 30, 2013 9:08 AM - Support

I have explained it in your other thread.


---
Technical Support


Previous views: 133