Hello all,
I have a problem that I am hoping can be resolved with a simple VBS text doc.
I have two computers on separate networks that share a mouse/keyboard with the use of a USB Switch board. The switchboard can be activated with either a button press or a keystroke-combo. These computers both have multiple monitors and I would like to have a VBS script running in the background of each computer so that when the mouse enters the very last pixel display on computer A the hotkey to switch the mouse/keyboard to computer B gets hit, and vice-versa for the other computer (the first pixel instead of last).
I have basic knowledge of VBS and have programmed a lot in VB.Net.
I already know how to set up a loop and send a keystroke. What I need to know is how to gather the total screen resolution from all monitors, get the last/first pixel distance in the X axis, and then determine when (inside the loop obviously) the mouse position is equal to the X value to send the hotkey. Could anyone possibly post some reference links for me on how to accomplish this in VBS?
Many thanks!
~Frab
I have a problem that I am hoping can be resolved with a simple VBS text doc.
I have two computers on separate networks that share a mouse/keyboard with the use of a USB Switch board. The switchboard can be activated with either a button press or a keystroke-combo. These computers both have multiple monitors and I would like to have a VBS script running in the background of each computer so that when the mouse enters the very last pixel display on computer A the hotkey to switch the mouse/keyboard to computer B gets hit, and vice-versa for the other computer (the first pixel instead of last).
I have basic knowledge of VBS and have programmed a lot in VB.Net.
I already know how to set up a loop and send a keystroke. What I need to know is how to gather the total screen resolution from all monitors, get the last/first pixel distance in the X axis, and then determine when (inside the loop obviously) the mouse position is equal to the X value to send the hotkey. Could anyone possibly post some reference links for me on how to accomplish this in VBS?
Many thanks!
~Frab