Pixel position tool
There are a number of ACTIONS that ask for a pixel position but there is no tool to measure or determine pixel position, thus requiring the user to guess forever. It would be great to build and ACTION the either creates pixel position by positioning the cursor on the window in question or uses a graphics interface to create it from an image.
- Chris Shaw @Chris_Shaw2021-04-14 18:47:16.174Z
The way to get the pixel position is by using OSX screenshot functions.
Press shift-ctrl-cmd-4 (not on the keypad) and your cursor will turn into a crosshair displaying the x/y coordinates of the entire screen. To get the position on a window, click the upper right corner of the window and drag to where you want to get the coordinates. It may be a a bit hard to see the coordinates so once you've dragged to the spot you're looking for, drag straight down or up from that point until you can read the x coordinate, go back to the desired position , then drag to the right or left to get the y coordinate.Once you've got the coordinates hit esc. If you let go of the mouse the mac will take a screenshot of the area you selected and copy it to the clipboard.
- MIn reply toMark_Mangini⬆:Mark Mangini @Mark_Mangini
Thanks Chris. That is very helpful. DIdn't know that utility. However, there are many X/Y coordinates that are "relative" to a floating window. How does one gather those? Floating windows can appear anywhere on the screen depending on where the user last left them.
Chris Shaw @Chris_Shaw2021-04-15 09:40:30.167Z2021-04-15 10:21:59.560Z
The above still applies. After pressing shift-alt-cmd-4, click (don’t release) on the upper left hand corner of the window you are referencing. When you do, the crosshair will display x:0, y:0. As you drag (while still holding down the mouse), the crosshair coordinates will update to show the position relative to where you first clicked.
Chris Shaw @Chris_Shaw2021-04-15 09:47:26.003Z
I believe this video should make this much clearer:
How to use "Mouse Click Relative to UI Element" to simulate mouse clicks in Pro Tools.
- In reply toMark_Mangini⬆:Chris Shaw @Chris_Shaw2021-04-15 15:53:18.366Z
Hey Mark,
I've posted a script to the store to help with this. It's a tool to determine X/Y coordinates relative to any focused window in PT. It's very easy to use.
Go to the store and search for "Get X/Y Coordinates" or look for the scripts published under my name.
Hope this helps
//CS//
Raphael Sepulveda @raphaelsepulveda2021-04-16 16:40:01.622Z
Hey Chris! You left a temp macro with a Mouse Click Relative to UI Element action in the package. I think that's where Mark is getting stuck in his post below.
Chris Shaw @Chris_Shaw2021-04-16 17:14:03.372Z
thanks.
Removed
- MIn reply toMark_Mangini⬆:Mark Mangini @Mark_Mangini
Thanks Chris. I'm still having a problem using Mouse Click Relative to UI Element. When I choose PICK to select the area in the app to click in, I press PICK in SoundFlow then I switch to the application (CMND/TAB) but the red area stays stuck in the Finder rather than giving me options in the application I switched to. So I can't select the UI element I desire. What is going on here?
- MMark Mangini @Mark_Mangini
No, I am not using that Macro. I am using a Macro Kitch built for me yesterday from code Christian wrote last week.
- In reply toMark_Mangini⬆:
Chris Shaw @Chris_Shaw2021-04-16 17:16:35.953Z
Out of curiosity, in which application are you trying to pick?
- MMark Mangini @Mark_Mangini
Sound Miner. Its a sound library browser.