Michael Gilbert Posted October 9, 2018 Share Posted October 9, 2018 Is there any way that I can possible reference a button in Obj Info palette? I cannot use location based upon X & Y pixel distance from a found image such as "Rectangle" text. VS script, python, anyway at all? Just run out of ideas. If the buttons were static this would not be an issue but because the button array is dynamic am unable to specify location based on pixel location and Accessibility Inspector in OS X does not show a reference for the buttons per se. In prior versions a macro trigger, e.g. Command+1 (on numeric keypad) would click the bottom left button. However, unable to recreate in 2017 using Keyboard Maestro due to dynamic button array. Any out of the box ideas anyone? For example, disable dynamic button display and make it static? Quote Link to comment
JBenghiat Posted October 9, 2018 Share Posted October 9, 2018 Are you just looking for a way to assign a keyboard shortcut to the widget? There isn't any to access UI elements via scripting. You can create a dialog box that will allow for keyboard shortcuts, but not manipulate the existing palettes. I would recommend making a feature request. Quote Link to comment
Michael Gilbert Posted October 9, 2018 Author Share Posted October 9, 2018 Are you just looking for a way to assign a keyboard shortcut to the widget? Widget? Do you mean the Obj Info palette? I have a macro that can activate Obj Info palette regardless of initial conditions. Follow on macro to ascertain if selection is Group, Rectangle, Polygon, etc. Have macro to place cursor in x dimension field. But cannot work out how to click radio button - even when restricting to objects that are at 90 or 180 degrees. I thought I had solved it but then in use realised that the button array is not just displaying object orientation but actually expands or contracts based on x & y dimensions as per images. I can test for dims y>x, x=y, x<y where needed to work out orientation and shape, e.g. for a rectangle but because the button array expands and contracts I cannot use a pixel reference as a mouse click location which I would be able to do if button array was static. Bummer :( Quote Link to comment
Michael Gilbert Posted October 9, 2018 Author Share Posted October 9, 2018 Put in request as per your suggestion. Thanks for help. Quote Link to comment
Michael Gilbert Posted February 19, 2019 Author Share Posted February 19, 2019 Just for interest. I have figured out how to use Keyboard Maestro to click buttons. Using If statements, if X axis > Y axis, etc. This can also work for other objects but in each case only for 90 & 180 degrees but does the job for what we needed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.