473,439 Members | 1,963 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,439 software developers and data experts.

Is it possible to switch the monitor input (analog/digital) programmatically?

Hi,

i have the following constellation:
I have two PCs an only one Monitor.

Earlier i had two monitors and used "Synergy" to use my single Mouse & Keyboard for both PCs.
This worked fine.

But now i gave one of the monitors away, so only one is left.

What i am trying to now is:
I want to add a command to synergy that tells the monitor to switch between its both inputs (analog & digital).

With this i could easily use the functionality of Synergy and the performance of a directly connected monitor (instead of using RDP or something similar which tunnels the output over LAN).

So again in short:
Is it possible to tell the monitor from inside windows to switch its input?

---------------
I just got an idea:
Maybe the monitor switches its input by itself when i tell windows to disable the video output (energy-save mode for the monitor).
---------------

Greetings Finomosec;
Jul 26 '07 #1
1 15413
I found a solution.

Ugly but working:
I found the tool http://www.skynergy.com/hotkeyz.html .
And i am using http://synergy2.sourceforge.net .

I installed Synergy-Server on prometheus and Synergy-Client on andromeda and configured it like this:
Expand|Select|Wrap|Line Numbers
  1. section: screens
  2.     andromeda:
  3.     prometheus:
  4. end
  5. section: options
  6.     keystroke(Control+Alt+3) = switchToScreen(andromeda) ; keystroke(Control, andromeda)
  7.     keystroke(Control+Alt+2) = switchToScreen(prometheus) ; keystroke(Control, prometheus) ; keystroke(Control+Alt+2, andromeda)
  8. end
Then i installed HotKeyz on both PCs and configured it like this:
PC: prometheus
name: Switch to Andromeda
hotkey: Control + Alt + 1
command: Multiple Commands
command 1: Remap
params 1: [ControlD][AltD][3][AltU][ControlU]
command 2: Monitor Off

PC: andromeda
name: Switch to Prometheus
hotkey: Control + Alt + 2
command: Monitor Off

How it works ...
When i hit Control+Alt+1 on prometheus
1.) HotKeyz executes Control+Alt+3
2.) [1.] triggers Synergy to send a keystroke to andromeda to wake it up
3.) [1.] triggers Synergy to switchToScreen(andromeda), which sends all following keyboard an mouse activity to andromeda
4.) HotKeyz turns the monitor off
5.) Now the monitor notices, that there is no signal from prometheus anymore and switches to andromeda

When i hit Control+Alt+2 on andromeda
1.) Synergy calls switchToScreen(prometheus)
2.) Synergy sends a keystroke to prometheus to wake it up
3.) Synergy sends Control+Alt+2 to andromeda
4.) [3.] triggers HotKeyz on andromeda which turns of the monitor
5.) Now the monitor notices, that there is no signal from andromeda anymore and switches to prometheus

voilą ...

Tipp:
Hold the mouse still while switching. Otherwise it may happen, that the switch doesn't work as expected. (Instead the focus switches, but the monitor does not.)

Greetings Finomosec;
Jul 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: kjm | last post by:
Hi everyone, I have recently acquired a Logitech Rumble pad to use as an input device. I have been having trouble getting the event que to respond that a button or hat arrow has been pressed. ...
13
by: webzila | last post by:
Hello, I have to write a program for an 8051 micro-controller using micro-C to monitor Switch 1 and if the switch in pushed the message "switch 1 pushed" should be displayed in the LCD. Also the...
4
by: simchajoy2000 | last post by:
Hi, Is it possible to programmatically detect what display settings the user has on their monitor with ASP.NET? I need to be able to resize some of the things on my webpage if the user has...
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
0
by: Neji | last post by:
Is it possible to switch between dual monitors with the keyboard? For example, if I am on the left-hand monitor, can I press a keyboard combination to teleport the mouse cursor to the middle of...
2
by: cj | last post by:
Any body know a neat trick to put a analog clock on a form that would be updated by a timer? Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy...
1
by: ziamughal | last post by:
sir tell me briefly that what is the analog and digital signal.the digital signal can be defined as the signal that will in the 0 and 1 format. but do the zeros and ones travel in the wires.and...
1
by: mynkow | last post by:
I want to switch monitor Analog/Digital mode with c# code. How can I do this? 10x in advance!
7
by: Rohit | last post by:
Hi, I am working on a switch module which after reading voltage through a port pin and caterogizing it into three ranges(open,low or high), passes this range to a function switch_status() with...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.