#notrayicon
#Persistent
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
#InstallKeybdHook
#UseHook
#SingleInstance, Force
SetKeyDelay,-1, 8
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
SendMode, InputThenPlay
SetBatchLines,-1
ListLines, Off
CoordMode, Pixel, Screen, RGB
CoordMode, Mouse, Screen
PID := DllCall("GetCurrentProcessId")
Process, Priority, %PID%, Normal
Gui, Add, Button, x12 y29 w120 h20 +Center g
, SAVE
Gui, Add, Button, x142 y29 w120 h20 +center g
, LOAD
Gui, Add, GroupBox, x2 y9 w270 h50 , SAVE System
Gui, Add, Slider, x12 y89 w140 h40 +Center altsubmit range0-100 g
Gui, Add, GroupBox, x2 y69 w270 h70 ,조준 설정
Gui, Add, Text, x172 y99 w70 h20 +Center v , Y :
Gui, Add, GroupBox, x2 y149 w270 h140 , Setting
Gui, Add, Slider, x12 y169 w140 h50 +Center altsubmit range0-99 g
Gui, Add, Text, x172 y189 w70 h20 +Center v , 오차범위 : %range%
Gui, Add, Slider, x12 y379 w140 h40 +Center altsubmit range1-200 gscanY vFoY,%foy%0
Gui, Add, Text, x162 y249 w90 h20 +Center vAimsc +0x200,마우스 속도 : %Aimcount%
Gui, Add, GroupBox, x2 y299 w270 h140 ,스캔 범위
Gui, Add, Slider, x12 y319 w140 h40 +Center altsubmit range1-200 gscanX vFoX,%fox%0
Gui, Add, Text, x162 y339 w90 h20 +Center vScanXcou +0x200,X : %fox%0
Gui, Add, Slider, x12 y229 w140 h40 +Center altsubmit range8-30 gAMS vAimcount,8
Gui, Add, Text, x162 y399 w90 h20 +Center vScanYcou +0x200,Y : %foy%0
Gui, Add, GroupBox, x152 y79 w110 h50 , Status
Gui, Add, GroupBox, x152 y169 w110 h50 , Status
Gui, Add, GroupBox, x152 y319 w110 h50 , Status
Gui, Add, GroupBox, x152 y379 w110 h50 , Status
Gui, Add, GroupBox, x152 y229 w110 h50 , Status
Gui, Add, GroupBox, x282 y9 w160 h70 ,해상도 설정
Gui, Add, CheckBox, x302 y29 w120 h20 gpix1 vpix1,해상도 1024X768
Gui, Add, CheckBox, x342 y169 w90 h-140 , CheckBox
Gui, Add, CheckBox, x302 y49 w110 h20 gpix2 vpix2,해상도 800X600
Gui, Add, GroupBox, x282 y89 w160 h50 , System Start
Gui, Add, CheckBox, x302 y109 w130 h20 vta1,오토에임 [ON:F1]
Gui, Add, GroupBox, x282 y149 w160 h140 , Hotkey
Gui, Add, Text, x302 y189 w120 h20 ,EXIT [ctrl+F3]
Gui, Add, Text, x302 y219 w120 h20 ,HIDE [ctrl+F4]
Gui, Add, Text, x302 y249 w120 h20 ,
Gui, Add, Button, x282 y299 w160 h70 g
Gui, Add, Button, x282 y370 w160 h70 g
Gui, Show, x308 y92 h445 w450,God bless jaewoong
Loop
{
if pix1= 1
ZeroX :=512
ZeroY := 384
if pix2 =1
ZeroX := 400
ZeroY := 300
CFovX := FoX
CFovY := FoY
SubY:=365
ScanL := ZeroX - CFovX
ScanR := ZeroX + CFovX
ScanT := ZeroY - CFovY
ScanB := ZeroY + CFovY
ScanZ:= SubY - CFovY
ScanE:= SubY + CFovY
guicontrolget,foy
guicontrolget,fox
GetKeyState, Mouse2, LButton
if Mouse2 = D
GuiControlGet, ta1,,ta1
if ta1 = 1
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0xFF00ED, 1,Fast, RGB
if errorlevel = 0
GoSub GetAimOffset
GoSub GetAimMoves
GoSub MouseMoves
GoSub SleepF
return
}
GetAimOffset:
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
{
If ( AimX > 0 )
DirX := 0.9
}
If ( AimX < 0 )
DirX := -0.9
{
If ( AimY > 0 )
DirY := 0.9
}
If ( AimY < 0 )
DirY := -0.9
{
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY
Return
}
GetAimMoves:
Zx= %Aimcount%
AimA:=Fx/Zx
RootX := Ceil(( AimOffsetX ** (AimA)))
RootY := Ceil(( AimOffsetY **(AimA)))
MoveX := RootX * DirX + 3
MoveY := RootY * DirY +
return
MouseMoves:
If ( Mouse2 == "D" ) {
DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
Return
}
SleepF:
SleepDuration = 6
TimePeriod = 1
DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
Iterations =8
StartTime := A_TickCount
Loop, %Iterations% {
DllCall("Sleep", UInt, TimePeriod)
DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
Return
DebugTool:
ToolTip, %MoveX% | %MoveY% || %MX% %MY%
Return
MsgBox,
LOAD:
OFF:
Return
}
^s::
msgbox, 저장했습니다,
iniWrite,%MoveY%, setting.ini, Y, Y
IniWrite,%Range%, setting.ini, Error range , Error range
IniWrite,%Aimcount%, setting.ini, AimoveSpeed ,AimoveSpeed
IniWrite,%FoX%, setting.ini, FoX , FoX
IniWrite,%FoY%, setting.ini, FoY , FoY
return
^l::
msgbox, 불러왔습니다,
Gui,submit,nohide
Iniread, MoveY, Setting.ini,Y,Y
Guicontrol,,MoveY,%MoveY%
Gui,submit,nohide
Iniread, MoveY , Setting.ini,Y,Y
Guicontrol,,MoveY,%MoveY%
Gui,submit,nohide
Iniread, Range , Setting.ini,Error range,Error range
Guicontrol,,Range,%Range%
Gui,submit,nohide
Iniread, Aimcount, Setting.ini,AimoveSpeed,AimoveSpeed
Guicontrol,,Aimcount,%Aimcount%
Gui,submit,nohide
Iniread, Range , Setting.ini,Error range,Error range
guicontrol,,Range,%Range%
Gui,submit,nohide
Iniread, Aimcount, Setting.ini,AimoveSpeed,AimoveSpeed
Guicontrol,,Aimsc,
: %Aimcount%
Iniread, FoX, Setting.ini,FoX,FoX
Guicontrol,,FoX,%FoX%
Gui,submit,nohide
Iniread, FoY, Setting.ini,FoY,FoY
Guicontrol,,FoY,%FoY%
Iniread, FoX, Setting.ini,FoX,FoX
Guicontrol,,FoX,%FoX%
Gui,submit,nohide
Iniread, FoY, Setting.ini,FoY,FoY
Guicontrol,,FoY,%FoY%
return
gui, submit,nohide
guicontrol,,submit,%submit%
return
Gui, submit,Nohide
Guicontrol,,submit,%submit%
return
pix1:
Gui, Submit, NoHide
GuiControl,,pix1,
return
pix2:
Gui, Submit, NoHide
GuiControl,,pix2,
return
^F4::
Gui % (MainGui:=!MainGui) ? "Hide" : "Show"
return
Reload
^F3::
ExitApp
return
Gui,submit,nohide
If ta1 = 0
GUICONTROL,,ta1,1
if ta1 = 1
GUICONTROL,,ta1,0
return
end::
Gui,submit,nohide
If pix1 = 0
GUICONTROL,,pix1,1
if ta1 = 1
GUICONTROL,,pix1,0
return
ScanX:
gui, submit,nohide
guicontrol,,ScanXcou,X : %FoX%
return
ScanY:
gui, submit,nohide
guicontrol,,ScanYcou,Y : %FoY%
return
AMS:
gui, submit,nohide
guicontrol,,Aimsc,
: %Aimcount%
return
guiescape:
2GuiClose:
exitapp
return
소스가 날라가서 기존프로그램으로 디컴파일했는데 소스가 깨진것같에요 대충 손봤는데
픽셀서치 인식이 안되네요 도움좀주세요 ~