|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This tracker defines the following observables:
"window added",
"window deleted",
"window properties updated",
"window moved",
"window resized",
"window iconified",
"window deiconified",
"window name updated",
"window stack updated",
"window icon updated",
my $tracker = $module->track("WindowList");
my @windows = $tracker->windows;
foreach my $window ($tracker->windows) {
print "+$window->{x}+$window->{y}, $window->{name}\n";
}
or:
my $tracker = $module->track("WindowList", "winfo");
my $x = $tracker->data("0x230002a")->{x};
or:
my $tracker = $module->track("WindowList", $options);
my $data = $tracker->data;
while (my ($winId, $window) = each %$data) {
next unless $window->match("CurrentPage, Iconified");
$module->send("Iconify off", $winId);
}
Default $options string is: ``!stack !icons names winfo''
To be written.
Last modified on April 26, 2010