如何解决热键冲突?

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 Edifier » 12 Jul 2020, 00:20

^!w::
Process, Exist, WeChat.exe
if ( ErrorLevel = 0 )
{
Run, F:\WeChat\WeChat.exe
}
else
{
^!w::^!w
}
win10 64位,ahk 1.1.33
自测未提醒热键冲突

Re: 如何解决热键冲突?

by llinfeng » 05 Apr 2020, 13:38

微信可以用他自己的快捷键呀,基本是OP描述的动作——软件使用的问题,能拿来就用就直接用——过多的强调“自己的行为方式”其实挺浪费时间的

我其实也在磨刀,哎,叹气 :)l

Re: 如何解决热键冲突?

by fwejifjjwk2 » 02 Apr 2020, 10:18

:HeHe: :trollface:

Re: 如何解决热键冲突?

by jiming0516 » 02 Apr 2020, 02:08

不知道这样能否解决
^!w::
IfWinNotExist,wintitle(微信)
Run,target
else
WinActive,wintitle
return

如何解决热键冲突?

by stoneman » 20 Feb 2020, 22:37

比如我想在微信没有启动的时候按ctrl+alt+w 作为启动微信的快捷键,而微信已经启动了的话就作为微信默认的显示微信聊天界面。
^!w::
Process, Exist, WeChat.exe
if ( ErrorLevel = 0 )
{
run "D:\Program Files (x86)\Tencent\WeChat\WeChat.exe"
}
else
{
Send, ^!w
}

我这样写,微信启动的时候会检测到快捷键冲突,^!w就不能用了,else语句也就没用了。

后来我发现 Send, ^!w 还会引起死循环?造成卡死

Top