RGB values with/without leading 0x
Posted: 16 Apr 2018, 00:59
- In various places you can specify colours either as ABCDEF or 0xABCDEF, causing confusion. E.g. GUI objects, PixelSearch, Progress, SplashImage.
- I would suggest to make 0xABCDEF the default everywhere. Advantages are that you can: omit double quotes, specify transparency, specify decimal integers, avoid fiddly conversions (dec to hex, then crop '0x').
- (Also re. colours, PixelGetColor/PixelSearch have BGR options in AHK v1, which might be useful to have in AHK v2. One reason is that if an AHK v1 script used the BGR mode, that bit of code cannot be easily converted at present.)
- Thanks for reading.
- I would suggest to make 0xABCDEF the default everywhere. Advantages are that you can: omit double quotes, specify transparency, specify decimal integers, avoid fiddly conversions (dec to hex, then crop '0x').
- (Also re. colours, PixelGetColor/PixelSearch have BGR options in AHK v1, which might be useful to have in AHK v2. One reason is that if an AHK v1 script used the BGR mode, that bit of code cannot be easily converted at present.)
- Thanks for reading.