查找取QQ登陆窗口句柄

易语言 2020-07-23 15:29:07

查找取QQ登陆窗口句柄

.判断开始 (hwnd ≠ 0)
标题名称 = 取空白文本 (255)
hwnd1 = FindWindowEx (hwnd, 0, “ComboBox”, 0)
hwnd2 = FindWindowEx (hwnd1, 0, “Edit”, 0)
.如果真 (hwnd2 ≠ 0)
编辑框1.内容 = 到文本 (hwnd)
编辑框5.内容 = 到文本 (hwnd1)
编辑框2.内容 = 到文本 (hwnd2)
hwnd3 = FindWindowEx (hwnd, 0, “Button”, 0)
SendMessage (hwnd3, 13, 255, 标题名称)
.判断循环首 (标题名称 ≠ “ 登录QQ”)
hwnd3 = FindWindowEx (hwnd, hwnd3, “Button”, 0)
SendMessage (hwnd3, 13, 255, 标题名称)
.判断循环尾 ()
编辑框4.内容 = 到文本 (hwnd3)
hwnd1 = FindWindowEx (hwnd, 0, “Edit”, 0)
编辑框3.内容 = 到文本 (hwnd1)