Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Detecting "second" monitor ID

Avatar from Gravatar.com
Nicola Farina
12 discussion posts
Hi guys,

I have a bunch of triggers that I need to point to "second" screen I attached, but sometimes this is on left and other times on right. Using a laptop on docking stations and using it with external direct connected screens too, I need my triggers to point to which monitor is not the Windows main one.

With MoveToNext or MoveToPrevious I need to define the exact position, that for me can change.

How can I build a function to detect the ID of which I consider not the main Windows screen at the moment? I always use two screens at maximum, so I could be satifisfied using the first low value of an array (for example).

Thanks.
13 days ago  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is the laptop always monitor ID 1 in your setups?
9 days ago  • #2
Avatar from Gravatar.com
Nicola Farina
12 discussion posts
No, because when on docking stations, I tipically don't use the laptop monitor (the lid is closed).

Examples:
- laptop only (obvious one-screen setup)
- laptop screen (sometimes on left, sometimes on right) + 1 external screen (Windows main)
- 2 externals (on the left is the Windows main) and no laptop screen (lid closed)

As you can see, the "first second" screen ID is what I looking for (but tell me if I'm wrong).

Many thanks.
8 days ago  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, interesting. Is the second monitor always a higher ID than the primary?
4 days ago  • #4
Avatar from Gravatar.com
Nicola Farina
12 discussion posts
Need to check, I'll get back to you in few days.
4 days ago  • #5
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply