Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Ищу пати Помогите перекодить AHK Script

  • Автор темы Автор темы sorrow_
  • Дата начала Дата начала
хз решили или нет, но дело в строке
$xbutton1::
while getkeystate("xbutton1","P")
$xbutton1:: поменяй на $z::
 
Последнее редактирование:
Код:
Expand Collapse Copy
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoEnv
SendMode, Input
SetBatchLines -1
CoordMode, Mouse, Screen
mouseXY(x, y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
moveCount := 25
sleepInterval := 2
relativeMove := 28
if (left)
{
key := "d"
move := relativeMove
} else
{
key := "a"
move := -relativeMove
}
send {%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount%
{
mouseXY(move, -(move/4))
DllCall("Sleep", "UInt", sleepInterval)
}
send {%key% up}
}
$z::
while getkeystate("z","P")
{
strafe(true)
strafe(false)
}
return
И скачай сам ахк от сюда -
Пожалуйста, авторизуйтесь для просмотра ссылки.
(не реклама). Скачай этот ахк с их сайта и тот файл, что я тебе под хайд скинул, это закомпилированный .ahk файл.
 
Код:
Expand Collapse Copy
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoEnv
SendMode, Input
SetBatchLines -1
CoordMode, Mouse, Screen
mouseXY(x, y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
moveCount := 25
sleepInterval := 2
relativeMove := 28
if (left)
{
key := "d"
move := relativeMove
} else
{
key := "a"
move := -relativeMove
}
send {%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount%
{
mouseXY(move, -(move/4))
DllCall("Sleep", "UInt", sleepInterval)
}
send {%key% up}
}
$z::
while getkeystate("z","P")
{
strafe(true)
strafe(false)
}
return
И скачай сам ахк от сюда -
Пожалуйста, авторизуйтесь для просмотра ссылки.
(не реклама). Скачай этот ахк с их сайта и тот файл, что я тебе под хайд скинул, это закомпилированный .ahk файл.
все спасибо помог.
 
Назад
Сверху Снизу