View Full Version : Filling in dialog boxes
MikeKelley 08-12-2007, 02:11 PM Is there a way to fill in values in the normal Max UI? I can get the Window handles, open and close and manipulate titles using the new Max 9 extensions, but I don't see any way to set values in those windows.
In Basic or C we'd use something like SendKeys but Max doesn't have anything like that. And I don't see anyway to use the Print function to redirect to a Window handle.
|
|
ypuech
08-13-2007, 09:00 AM
In fact, you can use SendKeys from the .Net Framework in script like this for example:
SendKeys = dotNetClass "System.Windows.Forms.SendKeys"
SendKeys.SendWait "{PRTSC}"
MikeKelley
08-13-2007, 11:28 AM
Thanks so much -- that does what I want.
I've done no programming (other than Maxscript :>) for the last five or six years and all this dotnet stuff is foreign to me. As I understand it, this is the direction MS took all their languages, right? And they call the same types of Windows functions I used to use in VB and C?
I probably should get some sort of dotnet reference book -- if anyone knows of a good one let me know. Sigh -- even when you retire they keep pulling you back in...
ypuech
08-13-2007, 11:56 AM
There's a lot of websites covering VB.NET/C# and .Net. My favourite is FunctionX. Its VB.NET tutorial is at http://www.functionx.com/vbnet/index.htm
MikeKelley
08-13-2007, 12:19 PM
Thanks -- I've bookmarked that page.
So much software, so little time...
CGTalk Moderation
08-13-2007, 12:19 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.