Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

VBscript to extract output

I am trying to extract a text value from a window.

With fx. WScript.Echo ("banana") the output is banana.


However, I cant seem to get WScript.Echo to output a string variable.

Where is the mistake?



image




Best Answer

I solved this one myself by not declaring the variable.


Dim Refl

Set Refl = GetObject(, "ReflectionIBM.Session")

 

With Refl

copytext = .GetDisplayText(1, 10, 12)

End with

 

WScript.Echo (copytext)

1 Comment

Answer

I solved this one myself by not declaring the variable.


Dim Refl

Set Refl = GetObject(, "ReflectionIBM.Session")

 

With Refl

copytext = .GetDisplayText(1, 10, 12)

End with

 

WScript.Echo (copytext)

Login or Signup to post a comment