10-29-2013, 03:51 PM
Macro Macro2132
Macro Macro2123
Macro Macro2133
;test with:
;http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_checkbox
;in Internet Explorer
int w=wait(3 WV win("Tryit Editor v1.8 - Windows Internet Explorer" "IEFrame"))
Acc a.Find(w "CHECKBUTTON" "" "a:value=Bike" 0x3004 3)
if a.State&STATE_SYSTEM_CHECKED
,out "checked"
else
,out "unchecked"
a.DoDefaultAction ;;toggle
;test with:
;http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_checkbox
;in Firefox
int w=wait(3 WV win("Tryit Editor v1.8 - Mozilla Firefox" "Mozilla*WindowClass" "" 0x4))
Acc a.FindFF(w "INPUT" "" "value=Bike" 0x1004 3)
if a.State&STATE_SYSTEM_CHECKED
,out "checked"
else
,out "unchecked"
a.DoDefaultAction ;;toggle
;test with:
;http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_checkbox
;in Chrome
int w=wait(3 WV win("Tryit Editor v1.8 - Google Chrome" "Chrome_WidgetWin_1"))
Acc a.FindFF(w "input" "" "value=Bike" 0x1004 3)
if a.State&STATE_SYSTEM_CHECKED
,out "checked"
else
,out "unchecked"
a.DoDefaultAction ;;toggle