Jump to content
Developer Wiki and Function Reference Links ×

Clicking Palette Button


Recommended Posts

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.181009-0001.thumb.jpg.f5baf2eb7c6f92c5b99cf898c4380bad.jpg Any out of the box ideas anyone? For example, disable dynamic button display and make it static?

Link to comment

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.

Link to comment

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.131144868_ScreenShot2018-10-09at20_05_26.thumb.jpg.564bf0d87218db95222b08c837b1e786.jpg1657921640_ScreenShot2018-10-09at20_05_07.thumb.jpg.535d80093c69c51fe7097843925cdf22.jpg

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 :(

 

 

Link to comment
  • 4 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...