How to send press hotkey to max?
I want to send press Ctrl+Backspace via maxscript but not works, please help.
--create test object select (convertToPoly (sphere())); subobjectlevel=2 $.EditablePoly.SetSelection #Edge #{34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64} --Function for send hotkey to max fn SendKeys_fn sysKey = ( desktopChildren = windows.getChildrenHWND (windows.getDesktopHWND()) --for i in desktopChildren do format "%\n" i max_hwnd=for i in desktopChildren where (i[4] == "3DSMAX") do (exit with i[1]) WM_ACTIVATE = 0x6 Windows.sendMessage max_hwnd WM_ACTIVATE max_hwnd 0 SendKeys = dotNetClass "System.Windows.Forms.SendKeys" SendKeys.SendWait sysKey ) SendKeys_fn "^{BACKSPACE}" -- send Ctrl+Backspace
Comments
Solution found!
Source: http://scriptcoding.ru/2013/06/25/wscript-shell-sendkeys/
Forums.cgsociety This
Forums.cgsociety This same problem