[Closed] Filling in dialog boxes
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.
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}"
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…
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
Thanks – I’ve bookmarked that page.
So much software, so little time…