Mouse Event
From UBot Studio
(Difference between revisions)
(→Example) |
(→Example) |
||
(One intermediate revision by one user not shown) | |||
Line 23: | Line 23: | ||
<pre> | <pre> | ||
plugin command("WindowsCommands.dll", "set active window", "Windows Media Player", "WMPlayerApp") | plugin command("WindowsCommands.dll", "set active window", "Windows Media Player", "WMPlayerApp") | ||
+ | plugin command("WindowsCommands.dll", "move mouse", "Windows Media Player", "WMPlayerApp", 293, 200) | ||
plugin command("WindowsCommands.dll", "mouse event", "Right Click") | plugin command("WindowsCommands.dll", "mouse event", "Right Click") | ||
+ | |||
</pre> | </pre> | ||
− | The example script will set the | + | The example script will set the chosen window as the active window and right click in the specified location. |
Latest revision as of 15:39, 29 September 2013
This command sends a mouse event to a specified window.
Mouse Event is a Windows Command.
Mouse events include the following:
- Right Click
- Left Click
- Double Click
- Left Mouse Up
- Left Mouse Down
- Right Mouse Up
- Right Mouse Down
[edit] Example
plugin command("WindowsCommands.dll", "set active window", "Windows Media Player", "WMPlayerApp") plugin command("WindowsCommands.dll", "move mouse", "Windows Media Player", "WMPlayerApp", 293, 200) plugin command("WindowsCommands.dll", "mouse event", "Right Click")
The example script will set the chosen window as the active window and right click in the specified location.
[edit] Additional Information
You will need to re-choose your windows to run the script.