CalypsoArt Posted September 22, 2016 Share Posted September 22, 2016 (edited) Hi, I'm looking for a script to toggle the Ribbon so I can make a button. In other words, when I click the button, the command would be: If Ribbon state = on, then RibbonClose. If Ribbon state = RibbonClose, then Ribbon. I tried editing and existing string but that was one command with 3 states. This is two different commands. I just don't know enough about the syntax. Oops. Found this macro already exits. Edited September 22, 2016 by CalypsoArt Quote Link to comment Share on other sites More sharing options...
ReMark Posted September 23, 2016 Share Posted September 23, 2016 There is a difference between a script and a macro. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 24, 2016 Share Posted September 24, 2016 This is what you want ; as a macro add ^c^c to code and make into 1 line (if (= (getvar "ribbonstate") 0) (command "Ribbon") (command "ribbonclose") ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.