MiniListener Focus

6 votes
Version: 
0.01a
Author Name: 
Vojtech Cada

Sets keyboard focus to the MiniListener input field. If you want to use it, run the .mcr file once via Scripting -> Run Script or by drag&dropping it to the viewport. It creates an item in the Shortcuts category under Customize UI, which you can then assign a shortcut to.

 

 

AttachmentSize
MiniListenerFocus.mcr522 bytes

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

I guess this should work fine in all 2012+ versions

(
 
	hwnd = (dotNetClass "Autodesk.Max.GlobalInterface").Instance.TheListenerWindow
	windows.sendMessage hwnd 0x0007 0 0 -- WM_SETFOCUS
 
	setListenerSel #(-1,-1)	
	setListenerSelText ""
 
)
Martin Breidt's picture

works in 2017

FWIW: The oldest version I have is 2017 and there the script works just fine as a hotkey as well as a button.

Haider of Sweden's picture

.

I got this error

No ""get"" function for undefined

I run Max 2016

Kind regards
Haider
www.haider.se

Martin Breidt's picture

Nice one!

Five lines of code, and each one is interesting :-)
Nice, thank you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.