TB Cycle with Indicator [script]
Posted: 06 Mar 2022 14:58
At first I was thinking, seeing the button set number on the toolbar was really not necessary. I still think that, but I'm starting to like the idea, necessary or not. This is my version of a Toolbar Cycle with Indicator. The script will cycle toolbars along with having visual indication of the current toolbar set number on the CTB. No dropdown menus; just click on the CTB. You can also use the same script to cycle toolbars with a User Defined Command (UDC) and have the same visual indicator on the CTB you've set up. In use, the UDC actually may be the better operationally. It will work whether you have 2, 3, or 4 toolbars.
- Place the script in you script folder and place the 4 icons included in your <xyicons> folder. I really like Kunkel's white version numbers. They look great going from light to dark modes. Thanks Kunkel.
- Make a new CTB with a name of "Toolbar Set #1". Though the name actually doesn't matter at this point. For left click assignment use:
- You'll have to add the same CTB to each of your toolbars. It makes sense to place them in the same position left-to-right.
- The first run only, the script will determine the CTB number and insert it in the script.
- For a UDC, select the "Load script file" option and for the name enter "TB Cycle with Indicator" and for the Script File enter,
"
- Important - For the first run, click on the CTB such that the CTB index is established). For subsequent runs click on either the CTB or run the UDC.
- If you want to use your own icons, simply change them on lines 31-34.
The script uses a heredoc technique similar to TheQwerty's Gallery Wall script. Thanks TheQwerty.
Please let me know if you have any issues. Thanks.
- Place the script in you script folder and place the 4 icons included in your <xyicons> folder. I really like Kunkel's white version numbers. They look great going from light to dark modes. Thanks Kunkel.
- Make a new CTB with a name of "Toolbar Set #1". Though the name actually doesn't matter at this point. For left click assignment use:
load "<xyscripts>\TB Cycle with Indicator.xys"; You can leave the icon field blank.- You'll have to add the same CTB to each of your toolbars. It makes sense to place them in the same position left-to-right.
- The first run only, the script will determine the CTB number and insert it in the script.
- For a UDC, select the "Load script file" option and for the name enter "TB Cycle with Indicator" and for the Script File enter,
"
<xyscripts>\TB Cycle with Indicator.xys" (no quotes). I set my key assignment as Numpad 5.- Important - For the first run, click on the CTB such that the CTB index is established). For subsequent runs click on either the CTB or run the UDC.
- If you want to use your own icons, simply change them on lines 31-34.
The script uses a heredoc technique similar to TheQwerty's Gallery Wall script. Thanks TheQwerty.
Please let me know if you have any issues. Thanks.