Post Reply

Forums -> UltraMon™ SDK -> [Scripting] Using HotKey commands such as move mouse?
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")
shell.SendKeys "^%(d)"

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 =)
carlosgucci777   2026-02-22 23:40
Grüezi miteinander! Während meiner Reise durch das Jura-Gebirge suchte ich abends im Hotel nach einer spannenden Beschäftigung gegen die Langeweile. Per Zufall stieß ich auf spingranny casino und war sofort von den Möglichkeiten für Online Casino Bets angetan. Die Plattform ist übersichtlich und der Erfolg stellte sich schneller ein als gedacht. Ich habe einen Betrag gewonnen, der meinen Urlaub in der Schweiz finanziert.
Forums -> UltraMon™ SDK -> [Scripting] Using HotKey commands such as move mouse?

Post Reply