in reply to How to find the selected radio button in a Loft GUI

Found a solution:
use Win32::GUI(); use Win32(); use Win32::GUI::Loft::Design(); ... # window exists called AddUser which has 8 radio # buttons named: rb7, rb8, ... rb14 $win = $Win32::GUI::Loft::window{AddUser} for (7..14) { my $rb = "rb$_"; if ($win-> $rb-> Checked()) { ... found selected radio button ... }; last; };
Thanks for anyone who gave me advice.

Replies are listed 'Best First'.
Re^2: How to find the selected radio button in a Loft GUI
by jdporter (Paladin) on Jun 14, 2007 at 12:47 UTC

    You've got a bug: the last statement should be inside the inner if block.