如何制作鼠标宏 [英] How to make a mouse macro

查看:605
本文介绍了如何制作鼠标宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我希望你今天可以帮助我



我需要2个剧本:



首先,一个脚本在游戏中运行以执行一系列鼠标命令(下面的列表)以响应点击按钮,说Q(能够更改)



左键单击 *

发布



右键单击 *

发布



左键点击

发布



对于第一次左键单击和右键单击(标有*),我需要鼠标在这四个基本方向中的任意一个方向上随机移动:向上,向下,向左或向右移动大约一英寸(只要它朝着移动方向移动就不重要了那个方向)。



如果按住按钮Q,脚本将继续重复,直到我抬起手指。



------------------------------------------------- -----------------------------------------------



其次,一个脚本用按钮Ctrl + Q(可以更改)在游戏中执行



右键点击

发布(没有延迟,只需点击一下)



从这四个方向随机移动:向上,向下,向左或向右约一英寸(只要它向那个方向移动就没关系)。



如果按住Ctrl + Q,脚本将自行循环,与之前相同





感谢您的时间,我感谢您提供的任何帮助



干杯

解决方案

您是否知道在CodeProject中,当遇到问题并且无法为他们工作时,人们互相帮助。



最简单的方法是GetACoder [ ^

Hi all I I hope you can help me today

I require 2 scripts:

Firstly, a script that runs while in-game to perform a series of mouse commands (list below) in response to a click of a button, say Q (able to be changed)

left click *
release

right click *
release

left click
release

For the first left click and right click (marked with *) I need mouse to move randomly in any of these 4 basic directions: up, down, left or right for about an inch (doesn't really matter as long as it's moving towards that direction).

If button Q is held down the script will continue to repeat itself until I lift my finger.

------------------------------------------------------------------------------------------------

Secondly, a script that'll execute in-game with the button Ctrl+Q (able to be changed)

right click
release (no delay, just a simple click)

while moving randomly out of these 4 directions: up, down, left or right for about an inch (doesn't really matter as long as it's moving towards that direction).

Same as previous if I hold down Ctrl+Q the script will loop itself


Thank you for your time and I'd appreciate any help you offer

Cheers

解决方案

Did you know that at CodeProject, people help eachother when there are facing problems and not work for them.

Simplest way for you to is
GetACoder[^]


这篇关于如何制作鼠标宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆