I use photoshop CS3 and windows 7, ESTK was intalled with photoshop, in fact ESTK launches only when i use the color picker with alt shortcut.
To solve the problem I have temporary renamed ESTK executable so it cannot be found but my computer slows down (probably because he's searching for the executable). Do you know how to fix this problem ?
About the notifier i don't realy understand everything but i can show you my code, it's not very clean but it works:
Code: Select all
try {
if (arguments.length >= 2)
{
var desc = arguments[0];
var event = arguments[1];
if (event == charIDToTypeID('setd'))
{
var ref = desc.getReference(charIDToTypeID('null'));
var cls = ref.getDesiredClass();
if (cls == charIDToTypeID('Clr '))
{
var property = ref.getProperty();
if(property == charIDToTypeID('FrgC') || property == charIDToTypeID('BckC') )
{
var rgb8to5Nearest = [0, 0, 0, 0, 0, 8, 8, 8, 8, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16, 16, 16, 24, 24, 24, 24, 24, 24, 24, 24, 33, 33, 33, 33, 33, 33, 33, 33, 33, 41, 41, 41, 41, 41, 41, 41, 41, 49, 49, 49, 49, 49, 49, 49, 49, 57, 57, 57, 57, 57, 57, 57, 57, 66, 66, 66, 66, 66, 66, 66, 66, 66, 74, 74, 74, 74, 74, 74, 74, 74, 82, 82, 82, 82, 82, 82, 82, 82, 90, 90, 90, 90, 90, 90, 90, 90, 99, 99, 99, 99, 99, 99, 99, 99, 99, 107, 107, 107, 107, 107, 107, 107, 107, 115, 115, 115, 115, 115, 115, 115, 115, 123, 123, 123, 123, 123, 123, 123, 123, 132, 132, 132, 132, 132, 132, 132, 132, 132, 140, 140, 140, 140, 140, 140, 140, 140, 148, 148, 148, 148, 148, 148, 148, 148, 156, 156, 156, 156, 156, 156, 156, 156, 165, 165, 165, 165, 165, 165, 165, 165, 165, 173, 173, 173, 173, 173, 173, 173, 173, 181, 181, 181, 181, 181, 181, 181, 181, 189, 189, 189, 189, 189, 189, 189, 189, 198, 198, 198, 198, 198, 198, 198, 198, 198, 206, 206, 206, 206, 206, 206, 206, 206, 214, 214, 214, 214, 214, 214, 214, 214, 222, 222, 222, 222, 222, 222, 222, 222, 231, 231, 231, 231, 231, 231, 231, 231, 231, 239, 239, 239, 239, 239, 239, 239, 239, 247, 247, 247, 247, 247, 247, 247, 247, 255, 255, 255, 255];
var bg_color = app.backgroundColor;
var bg_red = parseInt(bg_color.rgb.red + 0.5);
var bg_green = parseInt(bg_color.rgb.green + 0.5);
var bg_blue = parseInt(bg_color.rgb.blue + 0.5);
bg_color.rgb.red = rgb8to5Nearest[bg_red];
bg_color.rgb.green = rgb8to5Nearest[bg_green];
bg_color.rgb.blue = rgb8to5Nearest[bg_blue];
app.backgroundColor = bg_color;
var fg_color = app.foregroundColor;
var fg_red = parseInt(fg_color.rgb.red + 0.5);
var fg_green = parseInt(fg_color.rgb.green + 0.5);
var fg_blue = parseInt(fg_color.rgb.blue + 0.5);
fg_color.rgb.red = rgb8to5Nearest[fg_red];
fg_color.rgb.green = rgb8to5Nearest[fg_green];
fg_color.rgb.blue = rgb8to5Nearest[fg_blue];
app.foregroundColor = fg_color;
}
}
}
}
} catch (e) {}