Скрипт на анти отдачу у меня есть , меня интересует скрипт конкретно возвращающий курсор в исходную точку (неважно на сколь уводится курсор и в какую сторону) важно чтобы без настроек
курсор возвращался в исходную точку, оружия много просто не реально настроить под всё оружие , настройка одного оружия происходит в идеале 15 -20 минут. И вообще такое сотворить реально?
Вот мой скрипт если интересно.
#SingleInstance force
#Persistent
#NoEnv
SendMode Input
SetBatchLines, -1
#MaxHotkeysPerInterval
#HotkeyInterval, -1
DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1)
Gui, Color, 9CEE90
Gui, Font, s11 Bold, Cambria
Gui, Add, Text, x82 y10 w40 h20 cBlue, Y pos
Gui, Add, Edit, x92 y40 w30 h20 cRed vDllCall3 -WantReturn Limit gMySubroutine,
Gui, Add, Text, x12 y10 w40 h20 cBlue, X pos
Gui, Add, Edit, x22 y40 w30 h20 cRed vDllCall1 -WantReturn Limit gMySubroutine,
Gui, Add, Text, x162 y10 w40 h20 cBlue, Delay
Gui, Add, Edit, x162 y40 w30 h20 cRed vDllCall2 -WantReturn Limit gMySubroutine,
Gui, Add, Text, x12 y130 w180 h40 cBlue, Skorostrel
Gui, Add, Checkbox, x92 y130 w20 h20 gClickON,
Gui, Add, Text, x12 y80 w70 h20 cBlue, Pause
Gui, Add, Hotkey, x62 y80 w30 h20 vHotkey1, G
Gui, Add, Hotkey, x132 y80 w30 h20 vHotkey2,
Gui, Add, Hotkey, x202 y80 w30 h20 vHotkey3,
Gui, Add, Button, x192 y130 w42 h20 gSave, Save
Gui, Add, Button, x122 y130 w42 h20 gOpen, Open
Gui, Show, x557 y130 h171 w255, LightGreen = {:-)
GuiControl,, DllCall3, 13
GuiControl,, DllCall1, 5
GuiControl,, DllCall2, 19
return
HKLabel:
Suspend, On
return
HKLabel2:
Suspend, On
return
HKLabel3:
Suspend, On
return
~vk79::
Suspend, Off
ExitApp
return
~vk78::
Suspend, Off
return
*~WheelUp::
Suspend, Off
stop = 0
MoveOFF = 1
Return
ClickON:
ClickON := !ClickON
*~vk51:: ; Q
MoveOFF = 0
stop:=1
return
*~WheelDown::
stop = 0
Return
*~vk1::
while GetKeyState("vk1","P")
{
If MoveOFF
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
DllCall("Sleep", UInt, Time)
DllCall("Sleep", UInt, Timee)
if ClickON
If stop
Click 4
}
Return
Save:
Gui Submit, NoHide
FileSelectFile, SelectedFile, S24, , Сохранить макрос, *.ini
IniWrite, %DllCall3%, %SelectedFile%.ini, xdirectory, dir3
IniWrite, %DllCall1%, %SelectedFile%.ini, ydirectory, dir1
IniWrite, %DllCall2%, %SelectedFile%.ini, sldirectory, dir2
FileDelete, .ini
Return
Open:
Gui Submit, NoHide
FileSelectFile, SelectedFile, 24, , Загрузить макрос, *.ini
IniRead, OutputVar3, %SelectedFile%, xdirectory, dir3, %A_Space%
IniRead, OutputVar1, %SelectedFile%, ydirectory, dir1, %A_Space%
IniRead, OutputVar2, %SelectedFile%, sldirectory, dir2, %A_Space%
GuiControl,, DllCall3, % OutputVar3
GuiControl,, DllCall1, % OutputVar1
GuiControl,, DllCall2, % OutputVar2
Return
MySubroutine:
Gui Submit, NoHide
Time := DllCall2
Timee := DllCall2
x := DllCall1
y := DllCall3
GuiControlGet, Hotkey
Hotkey, % Hotkey1, HKLabel, *~UseErrorLevel
Hotkey, % Hotkey2, HKLabel2, *~UseErrorLevel
Hotkey, % Hotkey3, HKLabel3, *~UseErrorLevel
Return
GuiClose:
ExitApp