매크로 커뮤니티

조회 수 571 추천 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
분류 제목 글쓴이 최근변경 추천
자유 운영 방해 목적의 매크로 관련 글 제재 피카부 2019.09.03 0/0
질문 루뽕님 매크로되시는뷴?? 23 애으크 2017.07.04 0/0
질문 리니지m 리세마라? 방법좀 알려주세요 58 축복맘남편 2017.07.07 0/0
자유 돌키우기 게임을 하시는분은 별로 없나봐요 7 사촌누나 2023.02.24 0/0
자유 케릭터 육성 매크로 찾기는 힘드네요 1 그러지마 2017.06.30 0/0
질문 게임 매크로 관련 문의. (지식이 높은분 환영해요) kjklja 2017.06.30 0/0
질문 어라... 오전에 리니지m 관련 리세마라 자료 본듯한데요. 42 버슴커 2017.07.04 0/0
자유 돌합치기 매크로 공유좀 부탁드립니다 1 배움의길 2018.02.08 0/0
질문 제가 생각하는 매크로가 이런건데 4 루저아웃 2017.07.03 0/0
정보 [C#] 비활성 윈도우 이미지 가져오는 예제 4 Windhelm 2017.07.08 0/0
자유 돌키우기 합치기 매크로 부탁드립니다! 3 나눠먹자같이 2018.03.24 0/0
질문 매크로 어떻게만드나요 4 선마 2017.07.05 0/0
질문 홍매크로 실행방법 아시는분 5 랜렌 2017.07.04 0/0
질문 매크로 오픈소스 없나요?? 1 곰탱뀨뀨 2017.06.21 0/0
질문 세나 매크로 어디서 받아요? 12 Dudh 2018.07.01 0/0
질문 매크로 받으려면 레벨 2여야하나요? 15 기래렁 2018.06.30 0/0
질문 던파 일던 매크로를 만드려고하는데요 3 CLang 2017.07.04 0/0
질문 매크로 프로그램 다운은 어디서하나요? 3 CLang 2017.07.02 0/0
자유 이런거 물어도될지모르겠는데.. 5 구베리 2017.06.30 0/0
질문 세나매크로 2렙되야 받을수잇는거 맞죠? 11 레드월드 2017.07.20 0/0
질문 돌키우기 매크로있으신분 계신가요 2 초봉 2024.08.19 0/0
Board Pagination Prev 1 ... 307308309310311312313314315 ... 523 Next
/ 523

전체 최신 인기글

전체 주간 인기글