Although it wouldn't be a big surprise to me if there's a bug in this area of the program, I haven't been able to reproduce it yet. I ran the following script, both in debug mode (which often reveals more bugs) and in normal mode:
Code:
B1 = 100
G1 = 100
ColorParts(0x010101,B1,G1,G1)
MsgBox
ColorParts(Color, ByRef Blue, ByRef Green, ByRef Red)
{
Red := Mod(Color,256)
Color := Floor(Color/256)
Green := Mod(Color,256)
Blue := Floor(Color/256)
}
Does this script crash exactly as written above? What version of AutoHotkey are you using?
If anyone else can reproduce this problem, that would make it a certainty that this is a bug. Thanks.