rxhanson / Rectangle

Move and resize windows on macOS with keyboard shortcuts and snap areas
https://rectangleapp.com
Other
25.1k stars 742 forks source link

Can't position/resize Microsoft Visual Basic window (opened within Excel) #1255

Open philCryoport opened 9 months ago

philCryoport commented 9 months ago

macOS version: Ventura 13.5.1 Rectangle version: 0.70 (76)

Logs if applicable (In Rectangle menu, hold option, "View Logging...") 2023-09-11T15:23:22-07:00: AX sizing proposed: (967.0, 944.0), result: (967.0, 944.0) 2023-09-11T15:23:22-07:00: AX position proposed: (-3339.0, -993.0), result: (-3339.0, -993.0) 2023-09-11T15:23:22-07:00: AX sizing proposed: (967.0, 944.0), result: (967.0, 944.0) 2023-09-11T15:23:22-07:00: topLeft | display: (-3808.0, -98.0, 3808.0, 2135.0), calculatedRect: (-3808.0, -1055.0, 1904.0, 1067.0), resultRect: (-3658.0, -877.0, 967.0, 944.0), srcScreen: 43S423, destScreen: 43S423, resultScreen: 43S423 2023-09-11T15:23:28-07:00: Window under cursor fallback matched: Bartender 4 WindowInfo(id: 54, frame: (-3840.0, -1081.0, 10000.0, 25.0), pid: 1654, processName: "Bartender 4")

Hi! Have been using Rectangle since Spectacle stopped being maintained. LOVE THE APP. I recommend it to everyone who I find using macOS. PLEASE KEEP UP THE GOOD WORK.

Anyhoo, I'm needing to write Visual Basic for Applications within Excel (aka "Macros"). Yeah, they're still around -- and still have the same warning because...yes...they can be dangerous.

So Rectangle will let me move around the Excel row/column grid windows. However, when I try to use the Rectangle keyboard shortcuts to maneuver the Microsoft Visual basic window for the Excel file...it sorta "glitches" for a moment (like in Wreck-It-Ralph) and then just ends up where it was originally. If I try to move-and-resize the Visual Basic window with a few keyboard strokes in a row, the "glitch" only happens with the first keyboard shortcut; there's no "glitch" with the second, third, or fourth successive keyboard shortcut.

Dragging and dropping onto a corner also causes no placement and resize to fit the Rectangle-displayed shadow. If I dragged it into the upper-left-corner, the right portion of the Visual Basic window just shows.

Ideas?

rxhanson commented 9 months ago

Thanks for reporting. This is likely outside the control of Rectangle, unfortunately. Sometimes apps will use custom windows that won't properly accept Accessibility API commands every time for size/position (the only way that Rectangle can work), and this this looks to be the case here. Perhaps the best path forward is to file an issue with the Excel team.

philCryoport commented 9 months ago

Thanks for reporting. This is likely outside the control of Rectangle, unfortunately. Sometimes apps will use custom windows that won't properly accept Accessibility API commands every time for size/position (the only way that Rectangle can work), and this this looks to be the case here. Perhaps the best path forward is to file an issue with the Excel team.

Any particular language you would suggest using?

rxhanson commented 9 months ago

After looking back through your logs, let's first make sure that this is narrowed down a bit more. If you quit Bartender 4, do you still have this issue? I don't think that Bartender would be causing the issue here, but just want to make sure things are isolated.

philCryoport commented 9 months ago

After looking back through your logs, let's first make sure that this is narrowed down a bit more. If you quit Bartender 4, do you still have this issue? I don't think that Bartender would be causing the issue here, but just want to make sure things are isolated.

Alas, that didn't fix the issue. Good thought though...