Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading a radio button
#1
Hi I need QM to read a radio button and identify whether it is check off or not. Is there a way to do that. Thanks Karl
#2
Macro Macro2025
Code:
Copy      Help
int w=win("Find" "#32770" "" 0x1)
int c=id(1057 w) ;;radio button 'Down'
if but(c)
,out "checked"
else
,out "unchecked"

or

Macro Macro2026
Code:
Copy      Help
int w=win("Find" "#32770" "" 0x1)
Acc a.Find(w "RADIOBUTTON" "Down" "class=Button[]id=1057" 0x1005)
int stateFlags=a.State
if stateFlags&STATE_SYSTEM_CHECKED
,out "checked"
else
,out "unchecked"
#3
Thanks Gintaras it worked great. Karl


Forum Jump:


Users browsing this thread: 1 Guest(s)