求助脚本指导

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: 求助脚本指导

求助脚本指导

Post by xiaoqi » 11 May 2024, 13:55

Code: Select all

#Persistent
#NoEnv

WinGet, wowid, List, WingsMS
~s::
KeyWait s
IfWinActive, WingsMS
{
ControlSend,, s, ahk_id %wowid1%
ControlSend,, s, ahk_id %wowid2%
ControlSend,, s, ahk_id %wowid3%
ControlSend,, s, ahk_id %wowid4%
ControlSend,, s, ahk_id %wowid5%
Return
}

WinGet, wowid, List, WingsMS
~d::
KeyWait d
IfWinActive, WingsMS
{
ControlSend,, d, ahk_id %wowid1%
ControlSend,, d, ahk_id %wowid2%
ControlSend,, d, ahk_id %wowid3%
ControlSend,, d, ahk_id %wowid4%
ControlSend,, d, ahk_id %wowid5%
Return
}

我用的是多屏幕同步按键S和D键,但是按住的话是相当于不断重复按下抬起,怎样可以修改成为同步按住不动?


[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

Top