in reply to Perl for OLE & OCX
my $HALi = Win32::OLE->new('HALiCnt.HALi'); my $c = $HALi->{'Modes'}->Count(); [download]