Notifications
Clear all
[Closed] UIAccessor combobox selection problem
May 24, 2016 3:43 pm
Hi folks!
I’m working on a batch preview script that changes the screengrab preview settings and outputs image sequences of screengrab previews.
I am using the UIAccessor to push all the necessary buttons and start the screengrab.
In max 2014 everything runs smooth and works as intended.
In max 2016 however the file output dialogs work different.
Specifically the combobox on the max 2016 file output dialog doesn’t cooperate.
The combobox changes its selection visually, but it seems like there’s the notification missing to confirm the change.
This is part of the struct:
fn editcombobox hwnd parenthwnd index:8 = --index: 8:png 7:jpg
(
WM_COMMAND = 0x111 -- Windows Message: Command
CB_SETCURSEL = 0x014E -- ComboBox message: Set current selection
CBN_SELCHANGE = 1
my_id = UIAccessor.getWindowResourceID hwnd
windows.sendMessage hwnd CB_SETCURSEL index 0 -- set selection
windows.sendMessage parenthwnd WM_COMMAND ((bit.shift CBN_SELCHANGE 16) + my_id) hwnd -- message parent
true
),
I was searching everywhere and also found the exact same problem here, although this didn’t bring me the solution either. It worked for 2014, but not 2016…