|supster 2004-02-03 09:27
Is there anyway to use the commands available as hotkeys in a VB script? Things such as move mouse to next monitor and lock mouse to primary monitor.
The reason I want to do this instead of just creating shortcuts for each seperate function is because I would like to combine a couple into one shortcut and make it a toggle.
Also, is there a way to check which monitor the mouse is currently on?
I looked through the help file, but could not find anything relating to any of this.
|Christian Studer 2004-02-03 20:51
The following code will send CTRL+ALT+D:
Set shell = CreateObject("WScript.Shell")
For more on SendKeys, see the MSDN Library.
I'm not aware of a way to get the current mouse position using scripting.
Christian Studer - www.realtimesoft.com
|supster 2004-02-04 07:12
Thanks, that should be enough =)