sub Reset_OnClick
if hs.ison("M5") then
hs.execx10 "M5","off",0
end if
hs.WaitEvents
if hs.isoff("M5") then
hs.execx10 "M5","on",0
end if
end sub
[other html code]
<form>
<input type="button" value="Reset Camera" name=Reset>
</form>
Clicking the button does not execute the sub?? Not sure why??
if hs.ison("M5") then
hs.execx10 "M5","off",0
end if
hs.WaitEvents
if hs.isoff("M5") then
hs.execx10 "M5","on",0
end if
end sub
[other html code]
<form>
<input type="button" value="Reset Camera" name=Reset>
</form>
Clicking the button does not execute the sub?? Not sure why??
Comment