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

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

  • Автор темы Автор темы sorrow_
  • Дата начала Дата начала
VIPERR
Пользователь
Пользователь
Статус
Оффлайн
Регистрация
26 Мар 2017
Сообщения
743
Реакции
51
Пожалуйста, авторизуйтесь для просмотра ссылки.
; Recommended for performance and compatibility with future AutoHotkey releases.
;
Пожалуйста, авторизуйтесь для просмотра ссылки.
; 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.
Пожалуйста, авторизуйтесь для просмотра ссылки.

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}
}

$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return
как изменить чтобы он использовался на клавишу Z
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Где строчка key := просто поменяй значение
 
переделай плиз дам симпу я не шарю(
Код:
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 := "z"
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}
}

$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return
 
н
Код:
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 := "z"
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}
}

$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return
нет не воркает тут как бы оно забиндено на mouse 4
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
key := "d"
move := relativeMove
} else
{
key := "a"
Тут поменяй чота
 
Ради тебя даже 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 скачал шоб проверить
Код:
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
у меня не работает ......
 
у меня не работает ......
Тут тебе никто не поможет, я могу но мне лень разбирать твой код, иди на другие форумы, здесь в основном юные пастеры, или ребята которые на плюсах или шарпе
 
Назад
Сверху Снизу