Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 09:26 AM.