View Single Post
  #1  
Old 10-02-2018, 06:07 PM
King908 King908 is offline
Registered User
 
Join Date: Jun 2018
Posts: 6
Allow Script to Pause to Copy Output into Text Box

Good evening,
I thank you all for the continued support, and examples have been helpful. So my script below works. But I have to type in the information from the output into the Text Box, would like to be able to possibly copy it from the screen into the text box. Any suggestions?

#$language = "VBScript"
#$interface = "1.0"

crt.Screen.Synchronous = True

' This automatically generated script may need to be
' edited in order to work correctly.

Sub Main
crt.Screen.Send "su - root" & chr(13)
crt.Screen.WaitForString "#"
crt.Screen.Send "command to list array" & chr(13)
crt.Screen.WaitForString "#"
crt.Screen.Synchronous = False
crt.Screen.Synchronous = True

THIS PART ON SCREEN NOW SHOWS THE NAME I AM WORKING ON FOR THE NAME. I HAVE TO TYPE IT INTO THE TEXT BOX BELOW:

' Prompt the end user for data'
strAnswer = InputBox("Please enter the LESS Array Name on Screen:")
crt.Screen.Send "/opt/sun/directory command "
crt.Screen.Send strAnswer
crt.Screen.Send " disk " & chr(13)
End Sub
Reply With Quote