Code: Select all
pp := ComObjActive("Powerpoint.Application")
F12::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
pp.ActiveWindow.Selection.ShapeRange.Fill.ForeColor.RGB := %color%
return
Code: Select all
pp.ActiveWindow.Selection.ShapeRange.Fill.ForeColor.RGB := %color%
Code: Select all
pp.ActiveWindow.Selection.ShapeRange.Fill.ForeColor.RGB := 0xFFFFFF
Any ideas how to fix this type mismatch?