External monitor(s)

4 views
Skip to first unread message

Vibeke

unread,
Mar 28, 2013, 11:04:36 AM3/28/13
to node-...@googlegroups.com
Is there any way to get information on the monitors(screens)? Ideally I would like to open a window on an external monitor - so that requires some information on how many many monitors are connected, their resolution etc.

Chris Turnbull

unread,
Apr 2, 2013, 7:56:29 PM4/2/13
to node-...@googlegroups.com
After a quick bit of Googling I found this: http://www.javascriptkit.com/howto/newtech3.shtml

I've tried it out on different screens (my two monitors are different sizes), and it does seem to report the correct size of the screen its on.


I wouldn't know how to target a window at a different monitor though.

Vibeke

unread,
Apr 3, 2013, 3:29:52 AM4/3/13
to node-...@googlegroups.com
Thanks but I am specifically enquiring about external monitors. In order to open a window on a specific monitor I would need information on the active monitors and which monitor a window is currently placed on.

Jonathan Chayce Dickinson

unread,
Apr 3, 2013, 9:37:56 AM4/3/13
to node-...@googlegroups.com
That will very likely need to be a feature request - likely an
extension to `window.screen` that lets you enumerate the
bounds/rectangle for each screen. The Window API
(https://github.com/rogerwang/node-webkit/wiki/Window) could then be
used in conjunction with that to find out which screen the window is
on and to move it to different screens.

I can't see anything in the documentation.
Jonathan
> --
> You received this message because you are subscribed to the Google Groups
> "node-webkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-webkit...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Michael Morrison

unread,
Apr 3, 2013, 11:25:30 PM4/3/13
to node-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages