Share

Win32::GuiTest

Tracker: Bugs

5 2 new functions - ID: 2152985
Last Update: Attachment added ( samjam )

WaitNewWindowLike(\@old_windows, $rest)
Like WaitWindowLike except the first parameter is a list
reference
to windows that already exist and should be ignored.

Usually used like this: my @handles=FindWindowLike(...);
system("explorer c:"); my
($explorer)=WaitNewWindowLike(\@handles,
...);

where ... represents the same parameters each time.

NOTE: When called in a list context it returns ALL matching new
windows

WaitNotWIndowLike(\@not, ...)
Like WaitNewWindowLike it takes an array reference of windows
to
ignore

The function returns when there are no more matching windows
left.

Useful after having sent a WM_CLOSE or something, to wait when
windows have all gone away.

e.g. for (FindWindowLike(undef, undef, 'CabinetWClass')) {
CloseWindow($_); } WaitNotWindowLike(undef, undef, undef,
'CabinetWClass');

Returns a list of matching windows that would not go away


Sam Liddicott ( samjam ) - 2008-10-08 10:41

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
extra.patch WaitNewWindowLike and WaitNotWindowLike Download

Change ( 1 )

Field Old Value Date By
File Added 296543: extra.patch 2008-10-08 10:41 samjam