开发者

How to search for a window in perl

I want to search for a window in perl. If the window is not found i want to again start searching for it in 2 seconds. How to do this? I know i can find a 开发者_开发技巧window using FindWindowLike()


use Win32::GuiTest 'FindWindowLike';
use strict;
use warnings;

my @windows;
until ( @windows = FindWindowLike(...) ) {
    sleep 2;
}

though you may be better off using WaitWindowLike.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜