Button Names Refresh From Table

Get help with using AutoHotkey and its commands and hotkeys
MusoCity
Posts: 29
Joined: 24 Mar 2018, 20:45

Button Names Refresh From Table

17 May 2018, 23:34

I need to change the button/function name from a table as I change the radio selection, one radio has the Key C,C#,Db,D... and the other the Scale Major, Minor, Harmonic_Major, Harmonic_Minor, ....
It needs to refresh/redraw the names when the key/scale is changed.
So if the Key is on C# and Scale on Minor it will read the C#Minor table.

Code: [Select all] [Download] GeSHi © Codebox Plus

CMajor = {"C", "Dm", "Em", "F", "G", "Am", "Bdim", "CMaj7", "Dm7", "Em7", "FMaj7", "G7", "Am7", "Bm7b5"}
C#Major = {"C#", "Ebm", "Fm", "F#", "G#", "A#m", "Cdim", "C#Maj7", "D#m7", "Fm7", "F#Maj7", "G#7", "A#m7", "Cm7b5"}


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Hellbent
Posts: 143
Joined: 23 Sep 2017, 13:34

Re: Button Names Refresh From Table

18 May 2018, 03:13

This could be one approach

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

MusoCity
Posts: 29
Joined: 24 Mar 2018, 20:45

Re: Button Names Refresh From Table

18 May 2018, 21:49

Not sure how I would use that with the 2 Radios or DropDownList as one has 17 choices and the other 13 choices.
Hellbent
Posts: 143
Joined: 23 Sep 2017, 13:34

Re: Button Names Refresh From Table

18 May 2018, 22:10

I'm not trying to add your text to the buttons. This just shows how to change one set of button names to another set.
The whole thing about the number of buttons I have and how I added them only had to do with setup for the swap to take place in the "swap" label.


It needs to refresh/redraw the names when the key/scale is changed.


Here it is with radios

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

MusoCity
Posts: 29
Joined: 24 Mar 2018, 20:45

Re: Button Names Refresh From Table

19 May 2018, 17:58

Thanks I think I see now, I was just coming from Lua where I made the GUI:

Image
Lua-Key-Scale.gif
(50.83 KiB) Not downloaded yet

Return to “Ask For Help”

Who is online

Users browsing this forum: Flipeador, Mipha, Rishu0182 and 59 guests