/
What does xsh.Screen.Synchronous do?

What does xsh.Screen.Synchronous do?

PROBLEM DESCRIPTION or QUESTION


What does xsh.Screen.Synchronous do exactly? How can I incorporate this into my script?

RESOLUTION


Synchronization means that the output of the terminal synchronizes with some external output such as message boxes.
For example, let's suppose that the following messages are printed in the terminal.

$ cat test.txt  Netsarang => the first match blah blah blah blah blah blah Computer => the second match

A sample VB script:

Sub Main     xsh.Screen.Synchronous = true     xsh.Screen.WaitForString("Netsarang")     xsh.Dialog.MsgBox("1st match")     xsh.Screen.WaitForString("Computer")     xsh.Dialog.MsgBox("2nd match") End Sub

 

If the value is set to true, the terminal output stops when the first match message box appears. So the script can then find the second match.
However, if the value is set to false, even though the first match dialog box appears, the rest of the messages are printed in the terminal. So after closing the first message box, the second match box would not pop up.




Related content

xsh.Screen.Synchronous 역할
xsh.Screen.Synchronous 역할
More like this
vb script 사용 관련 질문 [1]
vb script 사용 관련 질문 [1]
More like this
일정 주기로 특정 문자열을 보내는 스크립트
일정 주기로 특정 문자열을 보내는 스크립트
More like this
VB스크립트를 이용한 다중 세션 오픈 [1]
VB스크립트를 이용한 다중 세션 오픈 [1]
More like this
스크립트 관련 문의 [1]
스크립트 관련 문의 [1]
More like this
윈도우 11 24H2 버전에서 waitforstrings 함수가 작동하지 않는 문제
윈도우 11 24H2 버전에서 waitforstrings 함수가 작동하지 않는 문제
More like this