speedo
11-11-2005, 12:03 AM
I am wondering if there is a way to close windows like the HotkeyFlash by reclicking a button in a floating window.
Here is an example of what I am trying:
macroScript OpenCloseTest category:"Kevin's Scripts"
(
rollout myRollout "Testing" width:160 height:93
(
button btn1 "Hotkey Menu" pos:[16,8] width:130 height:41
on btn1 pressed do
(
macros.run "Help" "HotkeyFlash"
)
)
myFloater=newrolloutfloater "My Controls" 178 86
addrollout myRollout myFloater
)
I am familiar with this example, but was not sure how to implement it into my version of the script:MatEditor.Open() --Opens the Material Editor
<bool>MatEditor.isOpen() --Returns true if the Material Editor is open
MatEditor.Close() --Closes the Material Editor
My question is, is it possible to do something like this with the macros.run thing? Or am I out of luck? I would love some help on this and have plenty of answers for questions that you might have.
Thanks in advance,
speedo
Here is an example of what I am trying:
macroScript OpenCloseTest category:"Kevin's Scripts"
(
rollout myRollout "Testing" width:160 height:93
(
button btn1 "Hotkey Menu" pos:[16,8] width:130 height:41
on btn1 pressed do
(
macros.run "Help" "HotkeyFlash"
)
)
myFloater=newrolloutfloater "My Controls" 178 86
addrollout myRollout myFloater
)
I am familiar with this example, but was not sure how to implement it into my version of the script:MatEditor.Open() --Opens the Material Editor
<bool>MatEditor.isOpen() --Returns true if the Material Editor is open
MatEditor.Close() --Closes the Material Editor
My question is, is it possible to do something like this with the macros.run thing? Or am I out of luck? I would love some help on this and have plenty of answers for questions that you might have.
Thanks in advance,
speedo
