-
Notifications
You must be signed in to change notification settings - Fork 62
It zooms to upper left corner & It does not follow cursor #40
Comments
By any chance you have Ultrawide screen(s)? |
No, just have 1 monitor and 1920 x 1080 pixels |
https://github.com/tryptech/obs-zoom-and-follow/tree/pywinctl I figured out this branch works for me. |
I use a single monitor too and have the same issue. Here is the log:
By using the 'method' keyword it zooms at the normal view (not until we see just a few pixels) and can return to its previous state. However it's still zoomed in the upper left corner and doesn't follow the cursor. It might be because the |
I'm having the same issue. script log[zoom_and_follow_mouse.py] Key 'monitor' does not exist in data |
Same thing for me. |
Im experiencing the same issue. It zooms all the way into to the far left corner. Nothing is reported in the Script log. I have tried the version in Any thoughts? |
The only solution I found was to use the version from this commit. https://github.com/tryptech/obs-zoom-and-follow/tree/68e1aef99cb2d55a60324e1ea9d48f92815f8949 |
I have updated to try to account for the issue. I have gotten some reports that it works, and some that it doesn't. |
No changes for me, the problem persists. |
I pushed a fix in the Corner-Zoom-Hotfix branch. It refactors to using window handles in Windows and Linux, but I think it should address the corner zoom in theory. Please give it a try and let me know if the issue persists. I have some more verbose logging in that branch, so if the zoom still only goes into the top left pixel, please share the script log. |
Hello Tryptech! I have a single monitor of 3840*2160. When using a previous commit it zoomed to the upper left according to the defined Zoom Window Width and Zoom Window Height. It didn't follow cursor but was able to go back to full screen from there. Now with the Corner-Zoom-Hotfix branch, it crops the screen to the defined Zoom Window Width and Zoom Window Height at top left, then zooms into one pixel at the top left, and can only go back to the cropped window. It doesn't follow cursor as well. Here is the log:
I've tried a different capture method but it just changed from {'method': 0} to 1 and 2 with the same problem. |
@UBouveron Can I ask what OS and version of OBS you are using? At least with OBS 27.2.4 on Windows 11 build 22622, I'm encountering a bug where my monitor index is incorrect, but all the data is there. |
Sure, I use OBS 27.2.4 on Windows 10 21H2, build 19044.1826. |
@UBouveron So I'm not sure exactly why the information doesn't get pulled properly, but to resolve your issue and some other issues at the same time, I added in a monitor override to manually select the monitor that you are trying to track. Check the Corner-Zoom-Hotfix branch again and let me know if that performs any better on your end. |
Actually, I think I isolated out the issue. I disconnected all but one of my monitors and I can reproduce a similar error. In the case of one monitor, I think I can force an override with relative confidence so I'm going to go ahead with that. |
That's great news! I have updated PyWinCtl to 0.0.38 and for now the behavior is: zooms to top left according to the Zoom Window Width and Zoom Window Height, doesn't follow cursor but can go back to full screen. If that's helpful, here is the log of the whole process with checked monitor override:
|
For a moment, I had the same issue happen but I can't reproduce it. We'll have to go step by step to see at what point it's not getting the appropriate mouse coordinates. Commit c563be4 now has logging when you push the zoom button and follow button, and should also give you mouse coordinates every time you zoom in. |
I have tested the latest commit 499bc63 on Corner-Zoom-Hotfix branch... And it works!! It zooms to the mouse location and follows the cursor as expected. Thank you so much @tryptech! On a side note, a bad practice that I had was to set the same shortcut for enabling zoom and follow. I thought I needed to activate both at the same time, but actually it follows when you press the zoom alone. |
@UBouveron great to hear! I'll update the readme to recommend setting separate hotkeys to hopefully avoid the confusion in the future. If no one else has any problems, I'll go ahead and merge the branches after the weekend. |
@Ktr4ks That behavior looks expected. Did you set the bounding box for the source? |
Whops, I forgot about this. It's working now. Thank you very much! |
@Ktr4ks Can you provide me the script log when it errors? OBS version, Python version, and OS as well if you don't mind. |
@tryptech Alright
OBS version: 27.2.4 64bit. Edit: I tried with new sources, and sometimes I would get another error, and sometimes it would just zoom to the left up corner, and when I pressed the hotkey to activate zoom and follow, it would zoom to a single pixel. Dunno what I did, but it's now working correctly, at least for now. Edit 2: I tried again with a new window source, and the problem is back. It only works consistently with display capture. |
@Ktr4ks It should be fixed in the commit I just pushed to the hotfix branch. I moved a line I shouldn't have but it should be fine now. |
@tryptech Perfect! Everything is working correctly now. Thank you very much! |
I think this fixes most if not all instances of the bug. I'm merging the fix branch in, if anyone has the problem happen again, please open a new issue. |
Hello, I spend a couple of hours on this, but I still have the same problem. I tried the hotfix; but the problem remains the same. After using the hotkey it zooms in in the top left corner and when I press it again it zooms further into; until I can't see anything. After pressing it again it goes back to the top left corner (not the full screen). Also the mouse follow doesn't work. |
OBS 27.2.4 (64 bit) |
Opened new one: #51 |
Hello, I have downloaded this and followed all the instructions both in the Github and a tutorial video. However, It zooms to the upper left corner until I can see only a few pixels and it doesn't follow the cursor.
It is my first time downloading a script. Have I missed anything or is there anything missing / broken?
The text was updated successfully, but these errors were encountered: