2 monitors, 2 keyboards, 2 mice on 1 PC

Jim King

Honorable
Jan 29, 2013
4
0
10,510
is there a place where I can find sample code to allow me to control my computer with visual basic (VB6) so that I can have one person view and input data on the host monitor, while at the same time a second user views on an external monitor some, but not all of the data that the first user sees, and who then inputs data into the computer using an external keypad? This is for a psychological experiment in which the experimenter is using the host computer system and the subject is using the external monitor and keypad. Thank you. Jim King
 

PhilFrisbie

Distinguished
You cannot do that with just Visual Basic. On Windows, all attached keyboard inputs are summed into a singe message queue, as are all attached mice.

However, if you are willing to write your own keypad driver using C++ you could access the keypad directly and read its input separately from the normal keyboard input.
 

Jim King

Honorable
Jan 29, 2013
4
0
10,510
actually, the keypad is not an issue-it doesnt have to be independent. the only thing i want to keep separated are the images that the subject sees on the external monitor. he or she should only be able to see what I want them to see. the experimentes can see everything
 

Jim King

Honorable
Jan 29, 2013
4
0
10,510


ok, then if it's trivial, please answer me this, where can I find sample code to open one window in the host monitor and a different window in the client monitor? It may be trivial to you, but I don't have a clue where to look to find such code.
 

Jim King

Honorable
Jan 29, 2013
4
0
10,510



iJack, That's very interesting! I wasn't aware you could do that. And can you set up dual controls so that only parts of the "host" screen are displayed on the "client" screen that you dragged over to the second monitor? Oh and thanks for your input, my friend.