Notifications
Clear all

[Closed] Particle View HWND?

Hi, anyone know how to find the Particle View’s HWND?
I’m basically aiming to get the standard Cache Op’s “Update” button, the maxscript command for this doesn’t seem to exist.

Thanks!

10 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

windows.getchildhwnd 0 "Particle View"
--or
for d in UIAccessor.GetPopupDialogs() where (UIAccessor.GetWindowText d) == "Particle View" do exit with d
--or
for d in UIAccessor.GetPopupDialogs() where (UIAccessor.GetWindowDllDescription d) == "ParticleFlow View (Autodesk)" do exit with d

Awesome! thanks denisT! you’re a life saver.
haha it never occurred to me that the particle view was a child of the window’s desktop!

thanks again!
Jeff

Hi
In other cases ,if some apps have version after the title , like this… “FBX Import (Version: 2009.3)”
you can use findString fn:


     for d in UIAccessor.GetPopupDialogs() where 
     findString (UIAccessor.GetWindowText d) "FBX Import" != undefined do exit with d
     

here is some other fn for UIAccessor if anybody need…



fn getAllDialogsHWND = ( for i in UIAccessor.GetPopupDialogs() collect (UIAccessor.GetWindowText i) )
 fn closeDialogByTitle window_text =
 (
 	local ace = UIAccessor.GetPopupDialogs()
 	for i in ace where findString (UIAccessor.GetWindowText i) window_text != undefined do 
 	(
 		UIAccessor.CloseDialog i
 		--UIAccessor.PressButtonByName i "Cancel"
 		exit
 	)
 )
 fn getDialogHWND window_text =
 (
 	for d in UIAccessor.GetPopupDialogs() where
 	findString (UIAccessor.GetWindowText d) window_text != undefined do exit with d
 )
 fn getDialogData window_text =
 (
 	for i in UIAccessor.GetPopupDialogs() where 
 	findString (UIAccessor.GetWindowText i) window_text != undefined do 
 	(
 		format "WindowText:%
" (UIAccessor.GetWindowText i)
 		format "WindowClassName:%
" (UIAccessor.GetWindowClassName i)
 		format "WindowResourceID:%
"(UIAccessor.GetWindowResourceID i)
 		format "GetChildWindows:%
"(UIAccessor.GetChildWindows i)
 		format "GetParentWindow:%
"(UIAccessor.GetParentWindow i)
 		format "GetFirstChildWindow:%
"(UIAccessor.GetFirstChildWindow i)
 		format "GetPrevWindow:%
"(UIAccessor.GetPrevWindow i)
 		format "GetNextWindow:%
"(UIAccessor.GetNextWindow i)
 		format "IsWindow:%
"(UIAccessor.IsWindow i)
 		format "GetWindowDllFileName:%
"(UIAccessor.GetWindowDllFileName i)
 		format "GetWindowDllDescription:%
"(UIAccessor.GetWindowDllDescription i)
 		exit
 	)
 )
  

thanks for the additional samples MerlinEl, those are very much appreciated!

Also see this Windows Inspector from Zinovaty Konstantin

Windows Inspector – Program for viewing and editing properties of visual objects in Windows 9x/NT (Button’s, Edit’s, Window’s, etc.) visible and not. And for catching incoming Windows messages.

Download page- http://sottnick.narod.ru/winspeng.htm

Also see this Windows Inspector from Zinovaty Konstantin

you can also use my .Net Property Inspector I wrote a while ago , it allow you to output property as maxscript value at the same time … enjoy

Martin

edit : limit for .txt is 19k …what a non sense …anyway !!!

Nice Utility!
Thank you!

Track! thanks for the link, sadly the tool seems to hang on a japanese OS…

martroyx! awesome tool! I love it! thanks!:applause:
(it works in 2009, doesn’t seem to be working in my 2008, but it’s no biggie)

Thank jeff and track, I use that one often when dealing with .net …it’s very useful but it could be improved a lot

I don’t have 2008 to test on but you should be able to get 2008 support pretty easily : unquote line9 and change maxform to a standard form at line 905 then .show() at line 1290 …

Martin