Hey there, I want to do two commands at the same time , but I have to close the first one by myself and then the second command works. How to close the dialog automaticly? Thanks.
yeah, it was surprising to find out it doesn’t work in this case.
it depends on what you want and if it’s worth it, but what you can do is following:
scan pixels for a colour (let’s say foreground colour), when you find one, store it’s position.
then use the app.useTool, set it to magic wand with contiguous mode set to false and let it hit previously stored position.
that will give you the selection of the colour in the image.
pretty cumbersome imo, clicking ok might be much less painful option