Alguem pode me ajuda com esse script queria adicionar as teclas w e s nesse script

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: Alguem pode me ajuda com esse script queria adicionar as teclas w e s nesse script

Alguem pode me ajuda com esse script queria adicionar as teclas w e s nesse script

by Vinizada6666 » 02 Feb 2023, 09:09

Code: Select all

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#NoEnv
SendMode, Input
SetBatchLines -1
CoordMode, Mouse, Screen
mouseXY(x, y){
DllCall("mouse_event",uint,0,int,x,int,y­,uint,0,int,0)
}
strafe(left){
moveCount := 5
sleepInterval := 2	
relativeMove := 5
if(left){
key := "a"
move := -relativeMove
} else {
key := "d"
move := relativeMove
}
Send, {Blind}{%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount% {
mouseXY(move, 0)
DllCall("Sleep", "UInt", sleepInterval)
}
Send, {Blind}{%key% up}
}
*XButton2::
while getkeystate("XButton2","P") {
strafe(false)
strafe(true)
}
return
[Mod edit: + [code][/code] tags.]

Top