I changed #Include Class_ImageButton.ahk to #Include <Class_ImageButton> and it appears to have worked.
Now I get a new error:
---------------------------
Sample.ahk
---------------------------
Error: Blank parameter
Specifically: [0, 0xCF0000, , "White", 22, , "Yellow", 2]
Line#
017: GuiColor := "Silver"
018: Gui,Margin,50,20
019: Gui,Font,s10
020: Gui,Color,%GuiColor%
021: ImageButton.SetGuiColor(GuiColor)
023: Gui,Add,Button,w200,Common Button
025: Gui,Add,Button,vBT1 w200 hwndHBT1,Button 1
Line 2
---> 026: Opt1 := [0, 0xCF0000, , "White", 22, , "Yellow", 2]
027: Opt2 := [ , "Red"]
028: Opt5 := [ , , ,"Gray"]
029: if !ImageButton.Create(HBT1, Opt1, Opt2, , , Opt5)
030: MsgBox,0,ImageButton Error Btn1,ImageButton.LastError
032: Gui,Add,Button,vBT2 w200 h30 hwndHBT2,Button 2
033: Opt1 := [1, 0xF0F0F0, 0xC0F0FF, "Black", , , "Lime", 1]
034: Opt2 := {2: 0xE0E0E0, 3: 0xB0E0FF, 4: "Black"}
The program will exit.
---------------------------
OK
---------------------------
What does this mean? I can see that there's a blank parameter, but if you don't have that problem, it probably has to do with the
.
thanks