- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I'm having a problem with a dialog that comes up in certain situations when using re scale tool from Time Configuration. Since re scale functionality is not accessible directly through MaxScript I had to access to it using UIAccessor.
I need to click always on "Yes" in this window. I used UIAccessor.PressDefaultButton() and it works, however if the user is working in a different window than 3ds Max (for example, is doing something in windows Explorer) it will do "Enter" in those cases and it can be risky and not expected, that's why I'm digging into a solution to hit only "Yes" button for this window.
if theDialogName != undefined and matchpattern theDialogName pattern:"*Biped*" then
(
UIAccessor.PressButtonByName WindowHandle "Yes"
)
If I print inside this condition theDialogName it returns "Biped" so I know I'm in the correct window.
And here is the pop up window
Hope someone can help me with this. Any advice or tip is very appreciated.
Thanks
Solved! Go to Solution.