You need to be logged in to post
Options
Index
#678258 - 10/18/21 04:25 PM [UserTracks (and other add-ons)] Scripting In Band In A Box
Registered: 02/05/15
Posts: 7294
Pipeline Offline
Veteran

Registered: 02/05/15
Posts: 7294
Scripting will allow you to create a single action or a GUI.
Hopefully this should be added to the Biab menu "Scripts"
so any AHK scripts in \bb\Scripts will shown in the menu and run from there with one click.
Any ahk scripts in sub folders will show in sub menus allowing you to put them in categories.

To get started Download https://www.autohotkey.com/
If you have Biab running As Administrator go to the install folder
C:\Program Files\AutoHotkey and set AutoHotkey.exe to Run As Administrator.

Here is a simple basic action to set the Tempo
Code:
#SingleInstance Force

winactivate, ahk_class TBandWindow
Send, ^!t

ExitApp
copy and paste into Notepad and save as Edit Tempo.ahk

winactivate will focus on the Biab window (ahk_class TBandWindow)
you get the window or dialog name by running WindowSpy.ahk and clicking on the window or dialog you want to focus on and it will give you the ahk_class name.

Send will send a keystroke or combination ^!t is ctrl+alt+t

^ = ctrl
+ = shift
! = alt
# = win

If we want to set the Tempo to 80bpm
Code:
#SingleInstance Force

winactivate, ahk_class TBandWindow
Send, ^!t
Send, 80
Send, {Enter}

ExitApp

{Enter} will send enter key to enter amount and close dialog.

To access menus we use WinMenuSelectItem
Code:
#SingleInstance Force

WinMenuSelectItem, ahk_class TBandWindow, , Edit, Insert Bar(s)...

ExitApp

The name needs to be exactly the same as in the actual menu.

Sleep will give a delay to give Biab time to run a function before sending another command.
Sleep, 1000 = 1 sec delay
so you can put that in the line before a Send to give Biab a bit of time to do what it needs to do.

Some Dialogs will allow short keys so if you press alt key they will show an undersccore for the shortcut key, so we
Send, !d
To navigate you can Send, {Tab} (this will remove Harmony)
Code:
#SingleInstance Force
WinMenuSelectItem, ahk_class TBandWindow, , Harmony, Melody Harmony (select)...
Sleep, 500
winactivate, ahk_class TSELECTMELODYHARMONYDIALOG
Send, {Tab 7}
Send, {Enter}

ExitApp

Send, {Tab 7} = send Tab 7 times
Send, +{Tab 3} = send shift+tab 3 times

To put a pause or message box with Ok button
MsgBox, Text to Show

Here's a simple always on top GUI with 1 button.
You can add more buttons, each button (gAction01) will have a function (Action01: ???? Return) below:

Code:
#NoEnv
#SingleInstance Force

Gui, +AlwaysOnTop

Gui, Font, S10 cBlue Bold, Arial
Gui, Add, Text, x10 y10, Some Text

Gui, Add, Button, x10 y30 h38 w130 gAction01, Name of Button

Gui Show, w300 h300, GUI Window Name

Return


Action01:
winactivate, ahk_class TBandWindow
Send, ^!t
Send, 80
Send, {Enter}

Return

GuiClose:
GuiEscape:
ExitApp


There is no end of info for doing almost anything, let me know what action you need or just do an internet search: autohotkey "what I want to do"
_________________________
ReaTrak Biab & Plugin in Reaper
Free Biab Chord Picker Tool

Top
#678295 - 10/18/21 11:27 PM [UserTracks (and other add-ons)] Re: Scripting In Band In A Box [Re: Pipeline]
Registered: 02/05/15
Posts: 7294
Pipeline Offline
Veteran

Registered: 02/05/15
Posts: 7294
You can create your own custom floating menu
BB21-Menu-Clone-ENG.ahk.mp4
Instead of MenuHandler change it to the function name Action22 and add that function below

Action22:


Return

_________________________
ReaTrak Biab & Plugin in Reaper
Free Biab Chord Picker Tool

Top


PG Music News
NEW! Xtra Styles PAK 12 for Band-in-a-Box®!

If you love our existing Xtra Styles PAKs, you'll definitely want to have a listen to our NEW Xtra Styles PAK 12, with 200 more fully-produced styles! 50 each for: Country, Jazz, Rock-Pop, and our new Blues styles option!

Video: Xtra Styles PAK 12 Demos

Order this month and save 40%! During our Xtra Styles PAK 12 special, which ends December 31st, all of our Xtra Styles PAKs 1-12 are on sale for just $29 each (reg. $49)! Looking for more Xtra Styles PAKs? You can purchase our complete library of all 2,000+ RealStyles with the Xtra Styles PAK 1-12 Bundle for only $199 (reg. $349)! Learn more & order now.

Note: These Xtra Styles require the UltraPAK, UltraPAK+, or Audiophile Edition of Band-in-a-Box® version 2021 or 2022.

RealBand 2022 is Here!

There are over 30 new features to RealBand 2022, including the ability to install multiple VST plugins from a folder at a time, improved Audio Chord Wizard detection routines, the ability to record mixer movement for the masters/subgroups, new Transpose/Stretch All Tracks dialog lets you transpose/stretch/reduce all tracks and then conveniently save to a new file, the new settings to save selected tracks only and exclude muted tracks when saving all tracks to individual files, the option to save all tracks to a compressed format, and much more.

RealBand is included in ALL Band-in-a-Box® for Windows purchases – during our special (which ends December 31st) to save up to 50% when you purchase your Band-in-a-Box® 2022 for Windows Upgrade!

Check out our Band-in-a-Box® packages page for all the purchase options available.

If you need any help deciding which package is the best option for you, just let us know. We are here to help!

Learn more about all the new features in RealBand 2022 for Windows.

Band-in-a-Box® 2022 for Windows is Here!

Band-in-a-Box® 2022 for Windows is here! There are 50+ new features, 222 new RealTracks(20 more than we've released in previous versions), new RealStyles, MIDI SuperTracks, Instrumental Studies, Artist Performances, Xtra Styles PAK 12, New "playable RealTracks" Hi-Q sounds, 2 sets of "RealDrums Stems," and more!

We're having a SALE on Band-in-a-Box® 2022 Upgrade purchases until December 31, 2021 - save up to 50% when you purchase your Band-in-a-Box® 2022 for Windows Upgrade!

We've packed our Free Bonus PAK & 49-PAK with some amazing Add-ons! The Free Bonus PAK is automatically included with most Band-in-a-Box® for Windows 2022 packages during our special, but for more even more Add-ons (including 60 Unreleased RealTracks) upgrade it to the 2022 49-PAK for only $49. You can see the full lists of items in each package, and listen to demos here.

Check out our Band-in-a-Box® packages page for all the purchase options available.

If you need any help deciding which package is the best option for you, just let us know. We are here to help!

Learn more about all the new features in Band-in-a-Box® 2022 for Windows.

Celebrate National Jukebox Day with Band-in-a-Box®!

Happy National Jukebox Day!
(November 24)

Don't own a Jukebox? Well, if you have Band-in-a-Box®, you actually do with the Jukebox feature!

What does the Band-in-a-Box® Jukebox do?

Using the directory you choose, the Band-in-a-Box® Jukebox will provide you with background music by continuously play the entire list of Band-in-a-Box® songs within that folder! There are many options for you to customize your Jukebox experience, including: Only Play song with melodies, Change Melody Instrument, Random order Playback, Audible Count-in, Harmony Settings, and more! Plus, the Jukebox will continue to play while you use other programs, providing your favorite music for continued background listening.

To learn more about the Jukebox feature in Band-in-a-Box® for Windows, check out Chapter 5 of our online manual.
Mac Jukebox details found here.

Tell Us Your Favorite Band-in-a-Box Features

Did you know we have a My Favorite Things forum? We'd love it if you shared your favorite features in Band-in-a-Box and RealBand there, along with what features you use the most and why - we absolutely LOVE getting feedback!

Take a peak at other posts while you're there - you never know... someone else's favorite feature might become yours too!

RealTracks Artist Pat Martino

We are saddened to hear of the passing of jazz guitar legend Pat Martino yesterday.

Pat was part of our RealTracks Artist "Jazz Pollwinners 2" series in 2014. You can learn about Pat and listen to his RealTracks contribution here.

Pat had been playing guitar since he was just 12 years old, and devoted himself to music in grade ten. On top of years of performing (he began playing professionally in 1961), Pat received many awards for his playing, including the "Jazz Legacy" Award in 2016 presented by Pennsylvania State Senator Vincent Hughes and his wife Sheryl Lee Ralph-Hughes.

Learn even more about Pat Martino when you visit his website, http://www.patmartino.com/.

A Look Back... Band-in-a-Box® 2015 NAMM Demonstration #TBT

Watch Tobin (and Charlie!) demonstrate Band-in-a-Box® 2015 for Windows at the 2015 NAMM Show: Play video...

Tobin does a great job of showing just how easy it is to create a song with Band-in-a-Box!

This video was posted on January 23, 2015 to the Keyboard Instrument Chops and Gear YouTube Channel.

Forum Stats
35195 Members
63 Forums
71651 Topics
624240 Posts

Max Online: 2537 @ 01/19/20 07:09 AM
Newest Members
Hufe, Ysolin75, kittyjkat321, Dange, ShemS76

35195 Registered Users
Top Posters (30 Days)
jpettit 424
Matt Finley 243
MusicStudent 207
Rob Helms 204
Pipeline 199
VideoTrack 197
PeterGannon 189
Rustyspoon# 162
rayc 150
MarioD 140
Today's Birthdays
No Birthdays