-
1. Re: How to query active tool?
kamih Jan 31, 2014 1:08 PM (in response to kamih)Hi,
So after receiving some very useful help and suggestions from Chris Cox and Tom Ruark, here's what I did.
3) I added a new function that uses the Get function from PSActionControlProcs. With this, I am able to correctly query the active tool when I receive a select event callback.
Here is the code for this function: http://pastebin.com/HSW98Y7g
Note that this won't work for older versions than CS3.
2) Nothing I can do for this.
1) I register an idle event callback at startup, and call my query function during the first callback. I then unregister the idle event callback. If I notice that the query failed, then I assume that this is an older version of PS, and I use the old method during the select event callback.
I hope this helps someone!
Feel free to contact me if you need more details.
Cheers,
Guillaume
