Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

zoom following cursor across ALL screens, not just the screen i'm trying to capture #121

Open
christiansass opened this issue Jul 12, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@christiansass
Copy link

christiansass commented Jul 12, 2023

I have four monitors on my setup and i run OBs in Display 2 and want to zoom and Capture in Screen 1 ONLY. it it seem to scale the cursor movements across ALL screens instead of tracking in just the boundaries of the screen I'm trying to capture...

it like the script is calculating the SUM of all the screens to determine the zoom location..., in effect i have to move my mouse to the lower display to get the zoomed view to move down on screen 1

image

how do i restrict the tacking to screen 1 only?
image

Win 10
OBS 29
python 310

image

image

@ebbnflow98
Copy link

Also having this issue, also on Windows 10.

Love the script! Great work.

@oldirtyewok
Copy link

Same here, also having this issue with multiple displays:
Windows 11, OBS 29, Python 310

@tryptech
Copy link
Owner

Multimonitor support was recently refactored as of 2023-09-11. Could you please try to reproduce the issue with the most recent version of the script?

@tryptech tryptech added the bug Something isn't working label Sep 12, 2023
@Christian-Espinosa
Copy link

Hello! Having the same issue here. Spent a day trying to figureout what it was that I was doing wrong. (Downloaded on the 22/09/23)

My settings:
Python 3.10.10
Obs 29.1.3

I did:
pip install PyWinCtl==0.0.38
pip install pymonctl
pip install pynput
pip install screeninfo

With all of this it runs (finally. Now, the settings in OBS:

The best settings seems to be "Enable Monitor Override" ON. Put the zoom follows the mouse through all screens (not the only one that has been selected)

If I try without the Override option, it seems to zoom alot to the top-left part of the screen.

Thanks for this awesome plugin! I really wish I could enjoy it. Such a pitty for now... :(

I really look forward to hearing from you! Hope the comment helps to pin point the bug.

@leporel
Copy link

leporel commented Sep 28, 2023

@tryptech i found possible problem in my case (windows, python 3.10.11)
pymonctl don't return all my monitors (one of them connected to nvidia card (primary), other to motherboard integrated gpu)

import pymonctl as pmc
from screeninfo import get_monitors

for m in pmc.getAllMonitorsDict():
    print(str(m))
print("--------------")
for m in get_monitors():
    print(str(m))

return:

\\.\DISPLAY5
--------------
Monitor(x=0, y=0, width=1920, height=1080, width_mm=527, height_mm=296, name='\\\\.\\DISPLAY1', is_primary=True)
Monitor(x=1920, y=0, width=1920, height=1080, width_mm=527, height_mm=296, name='\\\\.\\DISPLAY5', is_primary=False)

PS:
I replace pymonctl to screeninfo, and now for me zoom area work properly
who have same problem and dont have list all monitors here the edited script: https://gist.github.com/leporel/2cf40d164b2f00cf81aaecfc54b4af96

PSS:
i opened in pymonctl issue, it seems problem in pywin32

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants