As the ‘C’ hotkey for picking color has no direct button you can’t assign a hotkey to the function. There used to be a way to script the same behaviour but this doesn’t work in 4R8. It’s possible to get some of the same thing with the code below but it only works for colors in the document, not the UI. My example is for a macro but you can easily adapt it as a plugin button. You need to assign a hotkey for it to work.
[IButton,???,“Pick a color from the document”,
[VarSet,col,[PixolPick,0,[MouseHPos],[MouseVPos]]]
[ISet,Color:Main Color,col/65536]
]
Changing the Live Boolean mode for a subtool is a little tricky - there’s no direct way so you need to simulate a “click” on the relevant icon. This routine will set it for the selected subtool:
[RoutineDef,SetBoolean,
[VarSet,activST,[SubToolGetActiveIndex]]
[ISet,Tool:Sub Tool:SubTool ScrollBar,0,([SubToolGetCount]-(activST+1))]
[VarSet,stPath,“Tool:Sub Tool 0”]
[VarSet,bWidth,[IWidth,#stPath]]
[VarSet,bHeight,7]
[Loop,1,
[If,(md&1 == 1),//make sure START is on
[If,([IModGet,“Tool:Sub Tool 0”]&1 != 1),
[IClick,#stPath,bWidth-117,bHeight]
]
[LoopExit]
,//else turn off if necessary
[If,([IModGet,“Tool:Sub Tool 0”]&1 == 1),
[IClick,#stPath,bWidth-117,bHeight]
]
]
[If,(md&2 == 2),//make sure Addition is on
[If,([IModGet,“Tool:Sub Tool 0”]&2 != 2),
[IClick,#stPath,bWidth-96,bHeight]
]
[LoopExit]
]
[If,(md&4 == 4),//make sure Subtraction is on
[If,([IModGet,“Tool:Sub Tool 0”]&4 != 4),
[IClick,#stPath,bWidth-75,bHeight]
]
[LoopExit]
]
[If,(md&8 == 8),//make sure Intersection is on
[If,([IModGet,“Tool:Sub Tool 0”]&8 != 8),
[IClick,#stPath,bWidth-54,bHeight]
]
[LoopExit]
]
]//end loop
,md]//Boolean mode: 1 = START, 2 = Addition, 4 = Subtraction, 8 = Intersection
To call the routine above just put the mode you want as the parameter, so that for subtraction you’d write:
[RoutineCall,SetBoolean,4]
HTH,