Maxsript: windows.sendMessage return value

polycounter lvl 12
Offline / Send Message
SimonT polycounter lvl 12
Hi guys, i have a callback to handle some dialog auto clicking like described in the help under "UIAccessor". To click a button i use windows.sendMessage but sometimes the click fails. I'm not sure why, maybe the command get's sucked by the operating system. However, i would love to just check the return value and if it failed, i just would repeat the operation.

BUT: the return value is always "0" - also when it's done successful. I guess it's because the return value is sent to the dialog i clicked away instead of sending it to my callback script.

Any idea how i can grab the return value into my callback script to check if the click was done? Thanks!
Sign In or Register to comment.