…
source += ” public const int CB_GETCOUNT = 0x0146;
“
source += ” public const int CB_GETCURSEL = 0x0147;
“
source += ” public const int CB_GETLBTEXT = 0x0148;
“
…
I always wonder where do you get all that const definitions from?
i remember them all … all windows messages …
joke.
i do a googling as anyone else. for this particular codes for example -> “cb_ constants”
you should be able to extend the Ops easily and do another ‘interesting’ things enjoy!
it’s a hwnd of the preset combobox control. there are several way to get it … for example:
if the modifier opened and a photometric light selected…
h = windows.getchildhwnd #max "Command Panel"
c = windows.getchildhwnd h[1] "Color"
c = uiaccessor.getnextwindow c[1]
c = uiaccessor.getnextwindow c
combobox_hwnd = uiaccessor.getnextwindow c
another way is to use its resource ID , which probably the same for all recent versions
I adapted part of Serejah’s code to find the correct handle for me. Seems to be working for now!
Thanks to you both!
Out of curiosity, are there any other ways to change a photometric light’s preset? (i.e. which do not require the light to be selected?)
Actually, now that I have tried it in a practical test, it looks to me like the code is setting the dropdown list to the correct value, but the actual light color is not being updated…
you probably have to send “ENTER” key to the combobox control to confirm changing. or send a message to dialog that the combobox was changed