admin管理员组

文章数量:1565357

2024年6月10日发(作者:)

多线程同步操作多个窗口

RunApp ""

RunApp ""

RunApp ""

Delay 2000

Dimenv temp_Hwnd

temp_Hwnd = 0

Dim str, arr, i

str = ("无标题 - 记事本")

arr = Split(str, "|")

For i = 0 To UBound(arr) - 1

temp_Hwnd = (arr(i), 0, "Edit", 0)

BeginThread WriteString

While temp_Hwnd <> 0'判断多线程已经启动完毕,继续循环下一个。

Delay 500

Wend

Next

EndScript

Function WriteString()

Dim str, Hwnd

Hwnd = temp_Hwnd

temp_Hwnd = 0

Do

str = WaitKey

If Hwnd <> FocusWnd Then

Call ss(Hwnd, str)

End If

Loop

本文标签: 完毕启动记事本无标题