The system calls the hook procedure before sending the WM_CREATE or WM_NCCREATE message to the window. Or another starting point that looks interesting…Ī window is about to be created. Therefore, custom processing can be made at this point, since we get a first crack at the message. This means that the hook gets all messages first, before the target window procedure(s) gets it. HookHandle = SetWindowsHookEx( WH_CALLWNDPROC, I’m searching the cobmobox the same way as you … and don’t see a better way.īut the really interesting thing is how to pop-up dialogs in hidden mode (or out of screen at least) If (c = for c in windows.getchildrenHWND hwnd where c = "ComboBox" do exit with c) != ok doĭefault: UIAccessor.PressDefaultButton() - in case of OpenGL b = windows.getchildHWND hwnd "Antialiasing Quality:" called in CircleAntialiasingQuality() filename: C:\Denis-code.ms position: 1335 Error occurred in notification() filename: C:\Denis-code.ms position: 628 Here is the log: CircleAntialiasingQuality() …and the log to the Listener confirm that 'cause it drops on the next line. I have not time for tests now, I just suspect (before running the code) something unsafe in this line: b = windows.getchildHWND hwnd "Antialiasing Quality:" Also to stop it I should type “DialogMonitorOPS.enabled=off” directly to the mini-listener because the callback auto close the floater Listener. Well, good to know about CB_GETCOUNT, thanks, but your code do not work in Max 2009.Īfter running the D3D-config dialog is closed, Pref.-dialog stay open, and the monitorOps notification stay active. Hi Denis, you have many years behind in programming and I was sure you’ll not resist and will dominate with some optimized code Here is my version that has to work for any max version (2009 ) and any graphic card:… "3ds Max": UIAccessor.PressDefaultButton()ĭialogMonitorOPS.RegisterNotification notification id:#PreferenceWatcher If (UIAccessor.isWindow hwnd) do case (UIAccessor.GetWindowText hwnd) ofī = windows.getchildHWND hwnd "Configure Driver."ī = windows.getchildHWND hwnd "Antialiasing Quality:"Ĭount = ndMessage c CB_GETCOUNT 0 0Ĭurrent = ndMessage c CB_GETCURSEL 0 0 Hwnd = DialogMonitorOPS.GetWindowHandle() Here is my version that has to work for any max version (2009 ) and any graphic card:ĭialogMonitorOPS.unRegisterNotification id:#PreferenceWatcher
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |