【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

Re: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by fwejifjjwk2 » 20 Oct 2021, 08:22

@shingu
記事本不行,但是其他編輯器沒問題。

Re: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by shingu » 19 Oct 2021, 22:54

fwejifjjwk2 wrote:
19 Oct 2021, 12:01
@shingu
在我的電腦上可以
你有在记事本中尝试吗?

Re: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by fwejifjjwk2 » 19 Oct 2021, 12:01

@shingu
在我的電腦上可以

Re: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by shingu » 18 Oct 2021, 09:55

~LButton & d::
Send {Backspace}
return

这样的效果跟我之前的一样。按住左键,按一下d键,然后马上松开左键,可以实现删除一个字符的功能。

但我要的功能是,在按住左键的情况下,不停的按下d键,就能不断删除字符,除非松开左键。

Re: 【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by fwejifjjwk2 » 06 Oct 2021, 06:57

ahk v2 代碼

Code: Select all

~LButton & d::
{
Send "{Backspace}"
}

【求助】在按住鼠标左键的情况,脚本中的热键不会正常生效了

by shingu » 01 Oct 2021, 01:26

Code: Select all

~LButton & d::
Sleep,500
SendInput,{Delete}
return
脚本比较简单。这种情况下,按住鼠标左键再按一下字母D,只有当鼠标左键松开了才会删除字符。而我想要的效果是在按住鼠标左键的情况,只要连续按字母D,就会不断删除字符。

经过查看后台运行,发现在按住鼠标左键的情况下,即使输出了{Delete}键,但实际上也没起作用。

Top