Hello Folks,
I really appreciate the time and assistance everyone provides on this forum, and so wanted ask for some help.
I am trying to check a checkButton through maxscript but dont seem to be able to. I can press a normal button, but not a checkButton.
For example:
rollout accessTest "access test"
(
button one "press"
checkbutton two "Check"
on one pressed do print "One pressed!"
on two changed state do
(
if state ==true then
(print "check on")
else print "check off"
)
)
createDialog accessTest
then
RollOutHandle = (windows.getChildHWND 0 "access test" )[1]
pressHandle= (windows.getChildHWND RollOutHandle "press") [1]
checkHandle =(windows.getChildHWND RollOutHandle "Check") [2]
UIAccessor.PressButton pressHandle -- DOES press 'Press'
UIAccessor.PressButton checkHandle -- does NOT press 'Check'
UIAccessor.PressButtonbyName checkHandle "Check" -- only registers an UNcheck....
I have been trying to figure out the windows.sendMessage stuff but without any progress at all. I cant figure out why this doesn't work..
windows.sendMessage presshandle 0x00F5 0 0
Any help would be much appreciated, Thanks all.
miauu · 2013-03-30