#12 2 new functions

open
nobody
None
5
2014-07-13
2008-10-08
Sam Liddicott
No

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

Discussion

  • Sam Liddicott
    Sam Liddicott
    2008-10-08

    WaitNewWindowLike and WaitNotWindowLike

     
    Attachments