PG Music Home
Posted By: Pipeline What Menu Items Do You Use Most Of All ? - 11/07/20 06:11 AM
Rather than navigating menus you can add the most used items into the BB Quick Menu.
If you are running Biab As Administrator:
To run script only .ahk install https://www.autohotkey.com/ and set AutoHotKey.exe to Run As Administrator

Let me know what actions you need and I will give you the function code.
You have the text name up the top that runs the associated function below.
You can change the font size and color as well as the background color.
The script can be compiled to an exe when you have all the functions you need.

Copy the code and paste into Notepad then save as BB Quick Menu.ahk
Code:
Gui, +AlwaysOnTop

;Gui, Font, underline
Gui, Font, bold
Gui, Font, s9
Gui, Add, Text, cBlue gInsertBars4, Insert 4 Bars
Gui, Add, Text, cRed gDeleteBars4, Delete 4 Bars
Gui, Add, Text, cFuchsia gUnFold, Unfold
Gui, Add, Text, cGreen gFloatingMixerWindow, Floating Mixer Window
Gui, Add, Text, cBlack gPreferences, Preferences

Gui Color, 0xC0C0C0 
Gui, Show, w200 h200 Na

return

;FUNCTIONS

InsertBars4:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TPOPSTRINGDIALOG ; only if the bar dialog is not already open
{ 
    WinMenuSelectItem, ahk_class TBandWindow, , Edit, Insert Bar(s)...
    WinSet, AlwaysOnTop, On, ahk_class TPOPSTRINGDIALOG
    Winactivate, ahk_class TPOPSTRINGDIALOG
    Sleep, 50
    SendInput, {4}
    SendInput, {Enter}
}
return

DeleteBars4:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TPOPSTRINGDIALOG
{
    WinMenuSelectItem, ahk_class TBandWindow, , Edit, Delete Bar(s)...
    WinSet, AlwaysOnTop, On, ahk_class TPOPSTRINGDIALOG
    Winactivate, ahk_class TPOPSTRINGDIALOG
    Sleep, 50
    SendInput, {4}
    SendInput, {Enter}
}
return

UnFold:
  WinMenuSelectItem, ahk_class TBandWindow, , Edit, Song Form, Unfold (convert to 1 BIG chorus)
return

FloatingMixerWindow:
  WinMenuSelectItem, ahk_class TBandWindow, , Window, Floating Mixer Window
return

Preferences:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TMISCDIALOG ; only if the Preferences dialog is not already open
{ 
    WinMenuSelectItem, ahk_class TBandWindow, , Options, Preferences...
    WinSet, AlwaysOnTop, On, ahk_class TMISCDIALOG
    Winactivate, ahk_class TMISCDIALOG
}
  
return



GuiClose:
GuiEscape:
ExitApp


Attached picture BB-Quick-Menu.gif
Pipeline:

Is there a way to code the following key strokes that I use a lot of times?

It has to do with changing song folders as I have quite a few of them.

Here are my key strokes that I do with the mouse for scenario #1 which is when I am opening up songs in the Home Folder and want to go to another folder but not change the folder I am going to, to the home folder.

1. Song
2. Change
3. Choose Folder
4. Click the > next to the hard drive to open up the folder tree

jcland
Try this:
Top
Code:
Gui, Add, Text, cBlack gSongFolderChoose, Choose Song Folder

Function
Code:
SongFolderChoose:
Winactivate, ahk_class TBandWindow
Send, ^{F3}
WinWait, ahk_class TSongzDialog
Winactivate, ahk_class TSongzDialog
CoordMode, Mouse, Relative
MouseClick, left, 50, 105
Send, {DOWN 6}
Send, {Enter}
return
This one has Tabs, just put your text under the tab you want it on,
Gui, Tab, 1
here

Gui, Tab, 2
here

Gui, Tab, 3
or here

and as usual all the function at the bottom.

This will adjust the vertical size 180:
Gui, Add, Tab, x2 y180 h20 w200 AltSubmit gTab vTab

Code
Click to reveal..

Code:
;Insert Color here like HEX 00C222
TabColors_Tab1=C0C0C0
TabColors_Tab2=C29200
TabColors_Tab3=000000

Gui, +AlwaysOnTop


Gui, Tab, 1
;Gui, Font, underline
Gui, Font, bold
Gui, Font, s9
Gui, Add, Text, x2 y10 cBlue gInsertBars4, Insert 4 Bars
Gui, Add, Text, x2 y30 cRed gDeleteBars4, Delete 4 Bars
Gui, Add, Text, x2 y50 cFuchsia gUnFold, Unfold
Gui, Add, Text, x2 y70 cGreen gFloatingMixerWindow, Floating Mixer Window
Gui, Add, Text, x2 y90 cBlack gSongFolderChoose, Choose Song Folder
Gui, Add, Text, x2 y110 cBlack gPreferences, Preferences


Gui, Tab, 2
Gui, Add, Text, x2 y10 cBlue gAnotherFunction, Another function



Gui, Tab, 3
Gui, Add, Text, x2 y10 cYellow gAnotherFunction, Another function




Gui, Add, Tab, x2 y180 h20 w200 AltSubmit gTab vTab
	, 1|2|3
	Gosub, Tab
Gui, Show, , BB Quick Menu
;Gui Color, 0xC0C0C0 


return

Tab:
GuiControlGet, Tab
Gui, Color, % TabColors_Tab%Tab%
return



InsertBars4:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TPOPSTRINGDIALOG ; only if the bar dialog is not already open
{ 
    WinMenuSelectItem, ahk_class TBandWindow, , Edit, Insert Bar(s)...
    WinSet, AlwaysOnTop, On, ahk_class TPOPSTRINGDIALOG
    Winactivate, ahk_class TPOPSTRINGDIALOG
    Sleep, 50
    SendInput, {4}
    SendInput, {Enter}
}
return

DeleteBars4:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TPOPSTRINGDIALOG
{
    WinMenuSelectItem, ahk_class TBandWindow, , Edit, Delete Bar(s)...
    WinSet, AlwaysOnTop, On, ahk_class TPOPSTRINGDIALOG
    Winactivate, ahk_class TPOPSTRINGDIALOG
    Sleep, 50
    SendInput, {4}
    SendInput, {Enter}
}
return

UnFold:
  WinMenuSelectItem, ahk_class TBandWindow, , Edit, Song Form, Unfold (convert to 1 BIG chorus)
return

FloatingMixerWindow:
  WinMenuSelectItem, ahk_class TBandWindow, , Window, Floating Mixer Window
return

SongFolderChoose:
Winactivate, ahk_class TBandWindow
Send, ^{F3}
WinWait, ahk_class TSongzDialog
Winactivate, ahk_class TSongzDialog
CoordMode, Mouse, Relative
MouseClick, left, 50, 105
Send, {DOWN 6}
Send, {Enter}
return

Preferences:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TMISCDIALOG ; only if the Preferences dialog is not already open
{ 
    WinMenuSelectItem, ahk_class TBandWindow, , Options, Preferences...
    WinSet, AlwaysOnTop, On, ahk_class TMISCDIALOG
    Winactivate, ahk_class TMISCDIALOG
}
  
return


AnotherFunction:
Winactivate,ahk_class TBandWindow
IfWinNotExist ahk_class TMISCDIALOG ; only if the Preferences dialog is not already open
{ 
    WinMenuSelectItem, ahk_class TBandWindow, , Options, Preferences...
    WinSet, AlwaysOnTop, On, ahk_class TMISCDIALOG
    Winactivate, ahk_class TMISCDIALOG
}
  
return





GuiClose:
GuiEscape:
ExitApp


Attached picture BB-Quick-Menu2.gif
Posted By: lambada Re: What Menu Items Do You Use Most Of All ? - 11/08/20 04:56 AM
Thanks Pipeline. I've downloaded the software to have a play around with. See you on the dark side....
© PG Music Forums