I had run into an issue (which I document in another video) and asked Maestrith, author of AHK Studio, to help me understand RGB, decimal and Hexadecimals. Unfortunately I didn’t record the entire session as I didn’t think we were going to go that deep. I did record most of it though and thought it was worth sharing.
Here are the two versions that Maestrith developed on the fly. Thanks again Maestrith! You’re quite the Whiz!
#SingleInstance,Force Gui,Add,Edit,vNumber Number gGo, w100 ,1 Gui,Add,UpDown Gui,Add,Text,w100 HWNDDisplay Gui,Show return Go: Gui, Submit,NoHide GuiControl,,%Display%,% Format("{:0x}",Number) return Escape:: Exitapp Return
And the second one
Gui,Add,Text,,Red: Gui,Add,Edit,vR Number gGo w100,1 Gui,Add,UpDown,Range,0-1000 Gui,Add,Text,,Green: Gui,Add,Edit,vG NUMBER gGo w100,1 Gui,Add,UpDown,Range,0-1000 Gui,Add,Text,,Blue: Gui,Add,Edit,vB NUMBER gGo w100,1 Gui,Add,UpDown,Range,0-1000 Gui,Add,Text,w100 HWNDDisplay Gui,Show return Go: Gui,Submit,Nohide RGB:="0x" Format("{:0x}",R) Format("{:0x}",G) Format("{:0x}",B) GuiControl,,%Display%,% RGB+0 return Escape:: ExitApp return