wnx = Application.GetWndHandle(); result = DLL.CallFunction("AutoPlay\\Docs\\CHCOLOR.DLL", "SelectColor", wnx..",\"FFFFFF\",\"HEX\",\"192;;192;;192\",\"FALSE\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL) result = tonumber(String.TrimLeft(String.Left(result, String.Find(result, "::", 1, false)-1), "#"),16); e=Application.GetLastError() if e ~= 0 then Dialog.Message("",_tblErrorMessages[e]) end Shape.SetFillColor("Plugin1", result)