Trying to Solve for:
I want users to be able to save transparency preferences and have their saved preference update the GUI upon launch from the saved ini file
Issue:
the "checked" state of the radios i'm using for the different transparency options will update visibly and show the right radio is selected but it won't update the associated "winset transparent" setting for the GUI
Things I've tried:
Too many to remember.
![Smile :-)](./images/smilies/icon_e_smile.gif)
;Here's how I'm pulling from the ini and updating checked state:
IniRead, Trans1, ProfileSettings.ini, Settings, Trans1, 0
IniRead, Trans2, ProfileSettings.ini, Settings, Trans2, 0
IniRead, Trans3, ProfileSettings.ini, Settings, Trans3, 0
IniRead, Trans4, ProfileSettings.ini, Settings, Trans4, 0
IniRead, Trans5, ProfileSettings.ini, Settings, Trans5, 0
IniRead, Trans6, ProfileSettings.ini, Settings, Trans6, 0
IniRead, Trans7, ProfileSettings.ini, Settings, Trans7, 0
Loop 7
{
If (Trans%A_Index% = 1)
Trans%A_Index% = Checked
else
Trans%A_Index% =
}
Gui,Main: Add, Radio, x5 y160 %Trans1% Group vTrans1 gTransSet, 0
Gui,Main: Add, Radio, x45 y160 %Trans2% vTrans2 gTransSet, 10
Gui,Main: Add, Radio, x5 y183 %Trans3% vTrans3 gTransSet, 25
Gui,Main: Add, Radio, x45 y183 %Trans4% vTrans4 gTransSet, 35
Gui,Main: Add, Radio, x5 y206 %Trans5% vTrans5 gTransSet, 50
Gui,Main: Add, Radio, x45 y206 %Trans6% vTrans6 gTransSet, 60
Gui,Main: Add, Radio, x5 y229 %Trans7% vTrans7 gTransSet, 75
;Here's the label I have attached to the radio group and it function fine as long as i'm manually selecting the radio
TransSet:
Gui, Submit, NoHide
If(Trans1==1)
Winset, Transparent, 255
else if(Trans2==1)
Winset, Transparent, 230
else if(Trans3==1)
Winset, Transparent, 200
else if(Trans4==1)
Winset, Transparent, 166
else if(Trans5==1)
Winset, Transparent, 136
else if(Trans6==1)
Winset, Transparent, 102
else if(Trans7==1)
Winset, Transparent, 72
return
I've even tried having a version this label run after the iniread is completed but it still doesn't update the current GUI state. Thanks for any help you can provide and I'm a bit of a novice on autohotkey so if you can provide example scripts it would be great.
Thank you