同时按左右键应该怎么书写?

遇到了问题?请先进行搜索(中文和英文),然后在此提问
575794124
Posts: 2
Joined: 12 Dec 2014, 07:51

同时按左右键应该怎么书写?

12 Dec 2014, 08:47

比如我要按下鼠标中间 模拟为同时点击左右键
MButton::
Loop
{
send {RButton & LButton}
send {click left & click right}
send {click left click right}
send {click left}
send {click right}
sleep 200
If (GetKeyState("MButton","P")=0)
Break
}
return
测试这几种都不行
wz520
Posts: 26
Joined: 01 Jan 2014, 21:32
Location: China

Re: 同时按左右键应该怎么书写?

16 Jan 2015, 06:59

应该没有真正的同时点击,所谓的同时点击都是有先后顺序的:
按住左键的同时按右键,再松开左键
按住右键的同时按左键,再松开右键

如果是前者的话,可以试试:

Code: [Select all] [Download] GeSHi © Codebox Plus

Send {click left down}
Send {click right}
Send {click left up}
575794124
Posts: 2
Joined: 12 Dec 2014, 07:51

Re: 同时按左右键应该怎么书写?

17 Jan 2015, 07:11

wz520 wrote:应该没有真正的同时点击,所谓的同时点击都是有先后顺序的:
按住左键的同时按右键,再松开左键
按住右键的同时按左键,再松开右键

如果是前者的话,可以试试:

Code: [Select all] [Download] GeSHi © Codebox Plus

Send {click left down}
Send {click right}
Send {click left up}


我也是这样解决的 不过左右键同步率不高 50%左右可以触发左右键同时点击

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 2 guests