I notice that Win.SendMessage(zButtonHandle,240,0,0)
works for radio buttons as well as checkboxes (but not menus)
for example in Calculator you can test which is selected:
Hex/Dec/Oct/Bin and Degrees/Radians/Grads
BTW, that test script had too many items for debug (max 6)
so it should be:
;;--------- Test All Child Handles ---------------
local i zButtonHandle zChildText zIndex
local zParentHandle = win.handle("calculator")
local zButtonList = Win.Childhandlelist(zParentHandle)
;; I also tried:
;; local zButtonList = Win.Childhandlelist(zParentHandle,"c=button")
local zListSize = word(zButtonList,0)
win.debug(zListSize," :: ",zButtonList)
for (i=1;i<=zListSize;i=i+1)
zButtonHandle = word(zButtonList,i)
zChecked = Win.SendMessage(zButtonHandle,240,0,0)
zIndex = win.indexfromhandle(zButtonHandle)
zChildText = win.childtextbyindex(zParentHandle,zIndex)
win.debug(i,zChecked,zButtonHandle,zChildText)
endfor
quit
;---------------------------------------
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/