매크로

조회 수 568 추천 0 댓글 1
#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

소스가 날라가서 기존프로그램으로 디컴파일했는데 소스가 깨진것같에요 대충 손봤는데
픽셀서치 인식이 안되네요 도움좀주세요 ~

  • fdsaads 2017.09.23 19:02
    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
    해결하셧을수도잇지만 이걸로하면 되실거에요

List of Articles
분류 제목 글쓴이 최근변경 추천
자유 외부 커뮤니티로의 유입 광고 글에 대해 피카부 2023.10.19 0/0
자유 글이 베스트로 이동될 시 권한 부여 피카부 2021.06.07 0/0
자유 추천 금지를 권유/유도하는 행위는 제재 됩니다 피카부 2020.01.15 0/0
자유 이메일로 공유 요청하는 계정 제재 피카부 2018.09.14 0/0
자유 이곳은 매크로 장터가 아닙니다. 구매/판매 글 제재 피카부 2019.02.19 0/0
자유 운영 방해 목적의 매크로 관련 글 제재 피카부 2019.09.03 0/0
자유 테일스타 회원 레벨 정보 이용하기 피카부 2022.02.17 0/0
자유 외부 유료 매크로의 추천 유도 및 광고 추천 제재 피카부 2018.04.25 0/0
자유 매크로는 [공유] 분류를 지정해주세요 피카부 2022.02.17 0/0
질문 세나 홍매크로 사용자 분들중 태블릿pc로 하시는분있나... 1 치무인생 2017.05.06 0/0
질문 C# 매크로를 공부 해보고 싶은 사람입니다. 1 한잔해야지 2017.04.26 0/0
자유 메이플m 녹스로 두개 매크로도 가능한가요? 1 때중이 2017.04.22 0/0
질문 녹스와 블택중에 뭐가 더 나은가요? 6 모바일게임갑 2017.05.06 0/0
자유 혹시 새양님 c# 소스파일 갖고계신분 있나요? 디바만함 2017.04.19 0/0
자유 메이플m매크로 어떻게하나여 3 한수배우러 2017.04.30 0/0
자유 [카카오토]킹스레이드_버그수정판 주소 2 매크로곰0119 2017.04.19 0/0
질문 리니지2 레볼루션 매크로 할 줄 아시는분 14 미소천사호야 2018.01.30 0/0
질문 세븐나이츠 매크로 만들기 aefawfe3 2017.04.17 0/0
질문 선배님들 정말 간단한 화면인식 매크로를 찾습니다! 3 cococha 2017.05.06 0/0
자유 혹시 파블 매크로 잇나요 ? 뽀나스 2017.04.20 0/0
질문 레볼루션 매크로중 궁금한게 있습니다 1 리니리니2 2017.04.26 0/0
질문 리니지m은 컴퓨터랑 연동인가요?? 1 swb485 2017.04.16 0/0
자유 메이플m매크로는 어떤분게 가장좋다고하나요??? 2 swb485 2018.11.20 0/0
자유 킹스레이드 매크로 거의 다만들어가는데 9 매크로곰0119 2017.07.10 3/0
질문 세븐나이츠 매크로 질문 1 swb485 2017.04.14 0/0
자유 홍매크로랑 마카롱이랑 2 swb485 2017.04.14 0/0
질문 홍매크로는 어느 게시판에서 다운받나요? 3 yeto2040 2017.05.20 0/0
자유 매크로 만들기.. 어떤프로그램이 가장쉽죠? 6 만규만규 2017.05.07 0/0
질문 히트 메크로 어떻게 다운받는건가요.? 사랑을몰라서 2017.04.11 0/0
Board Pagination Prev 1 ... 302303304305306307308309310 ... 515 Next
/ 515

전체 최신 인기글

전체 주간 인기글