Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Detect multiple displays

Author
Message
PEH
20
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 9th Apr 2010 00:49
Does anyone know how to detect if the user has another display connected in extend mode? (not "span mode" because it is not supported in win 7 yet)

"get desktop width" only returns the width of the main display. Same with the darkside commands.
Attila
FPSC Reloaded TGC Backer
21
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 9th Apr 2010 21:19
You can check for graphic cards and you will get for each port where a display could be attached a 'virtual' card. But all those cards got the same name and the command 'set graphics card' need the name to select the card.
current graphics card$() will return the name of the actual used card but not the display or 'port'.

Try this:


But if you attach 2 screen to one card (which is the usual way to work with two screens), you can not set the card nor select the current display (or so it seems) because its the same card and the same name.
I don't know about other commands to find out about graphic cards, ports and displays.Maybe someone else has an idea

When you find a solution to determine the display and/or to set the display where the output is directed in full screen mode, it would be helpful when writing a screensaver as example.
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 12th Apr 2010 10:56
If you need to know what i`m thinkin then :

Actually dbpro handles your monitors automaticly you need just to give value to Multimonitor Mode so it`ll know where to draw what.
If player have 3 monitors you type 3.

I`m not sure you can detect if there is second or third monitor but you can give it as option in your game and player can choose between 1,2,3 monitors, or something like that.

Where there is a will, there is a way.
I often edit my posts, that`s who i am
PEH
20
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 13th Apr 2010 01:39
@luskos:
I have been able to use multiple monitors using the command you referenced but I haven't been able to detect multiple monitors.

The reason I would like to be able to is because it is more professional to be able to automatically detect them.

Several screensavers that come with windows 7 have this built into them.

@Attila:
I will have to mess around with those commands some. Will get back to you soon hopefully.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 13th Apr 2010 01:52
Yes I understand. I don't think there is a command...

Rawwrr. Sig Fail.

Login to post a reply

Server time is: 2026-07-26 14:30:46
Your offset time is: 2026-07-26 14:30:46