게임메크로고요
전체 소스고요 어딘가에 먼가 빠진 부분이 있는건 같은데 모르겟내요
;은 소스를 동작시키면 바로 껴져서 일단 지워 둿습니다. 어디가 문제인걸까요??
그리고 if문에 콤보박스선택시 lv add를 실행시키게하는데?실행이 안되는데 실행시키는 방법이 잇나요?
Gui, Add, GroupBox, x6 y7 w240 h120 , GroupBox
Gui, Add, ComboBox, choose1 x16 y35 w80 h300 vc disabled, 카드세공|재료캡슐|의상캡슐|카드캡슐|캐릭캡슐|
Gui, Add, Text, x286 y17 w90 h20 , F1:시작 F2:종료
Gui, Add, CheckBox, x100 y34 w20 h20 gss vch,
Gui, Add, Listview, x10 y217 w380 h140 grid -multi Rn SortDesc -LV0x10 vlist, 시간|입력키|
; Generated using SmartGUI Creator 4.0
Gui, Show, x370 y180 h380 w398, 케로로 여러가지 잡다한 메크로
LV_ModifyCol(1,70)
LV_ModifyCol(2,116)
Gui, Add, Picture, x146 y20 w90 h100 , file\0.png
;re:
;SetTimer,image1,10
Return
GuiClose:
exitapp
ss:
gui,submit,nohide
if (ch=1)
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","Select Open")
Guicontrol, enable, %c%
}
if (ch=0)
{
Gui,Submit,Nohide?; 명령어
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","Select Close")
Guicontrol, disable, %c%
}
F1::
Gui,Submit,Nohide?; 명령어
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","Start")
loop??????????????????
{????
if (ch=1)
{?????????
??????????
if (c="카드세공")
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","카드세공 선택")
sleep,100
imagesearch, vx, vy, 1,1,A_ScreenWidth,A_ScreenHeight,*80 file\세공.png
if ErrorLevel=0
{???????????????????????????? ;img 1-1
mouseclick,left,vx+30,vy+20,4
mouseclick,left,vx+30,vy+20,4
mouseclick,left,vx+30,vy+20,4
mouseclick,left,vx+30,vy+20,4
mouseclick,left,vx+30,vy+20,4
sleep,100
send,{enter down}
sleep,100
send,{enter up}
sleep,100
send,{enter down}
sleep,100
send,{enter up}
sleep,100
send,{enter down}
sleep,100
send,{enter up}
sleep,6000
mousemove,vx+100,vy+100
}
}
if ErrorLevel=1
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","카드보충")
msgbox, 카드가 없습니다
return
}
if (c="재료캡슐")
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","재료캡슐 선택")
sleep,100
imagesearch, vx, vy, 1,1,A_ScreenWidth,A_ScreenHeight,*40 file\재료.png
if ErrorLevel=0
{
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
sleep,6000
}
}
if ErrorLevel=1
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","재료캡보충")
msgbox, 재료캡슐이 없습니다
return
}
;-------------------------------------------------------------------
if (c="의상캡슐")
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","의상캡슐 선택")
sleep,100
imagesearch, vx, vy, 1,1,A_ScreenWidth,A_ScreenHeight,*40 file\의캡.png
if ErrorLevel=0
{
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
sleep,6000
}
}
if ErrorLevel=1
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","의캡보충")
msgbox, 의상캡슐이 없습니다
return
}
;-------------------------------------------------------------
if (c="카드캡슐")
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","카드캡슐 선택")
sleep,100
imagesearch, vx, vy, 1,1,A_ScreenWidth,A_ScreenHeight,*40 file\카캡.png
if ErrorLevel=0
{
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
sleep,6000
}
}
if ErrorLevel=1
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","카캡보충")
msgbox, 카드캡슐이 없습니다
return
}
;--------------------------------------------------------
if (c="캐릭캡슐")
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","캐릭캡슐 선택")
sleep,100
imagesearch, vx, vy, 1,1,A_ScreenWidth,A_ScreenHeight,*40 file\캐캡.png
if ErrorLevel=0
{
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,vx-16,vy+90,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
mouseclick,left,484,486,4
sleep,6000
}
}
if ErrorLevel=1
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","캐캡보충")
msgbox, 캐릭캡슐이 없습니다
return
}
}
else if(ch=0)
{
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","체크해주세요")
msgbox, 체크해주세요
break
}
}
return
;------------------------------------------------------------
image1:
gui,submit,nohide
critical, on
if(bb=1)
{
GuiControlGet,b,,edit1
if ab=%c%
{
;goto,re
}
if b=%c%
?{
guicontrol,,file\0.png,icon\%c%.png
ab=%c%
?}
}
f3::exitapp
f2::reload
LV_Add("","[" A_Hour ":" A_Min ":" A_sec "]","초기화")
return
콤보박스에 갖다댔을때 이미지가 변경되는겁니다.
Gui, Add, ComboBox, x15 y35 w120 h300 va,test1|test2|test3|
re:
SetTimer, image1, 10
return
; ----------------------------------------------------------------------------------
image1:
gui, submit, nohide
critical, on
if(BB=1)
{
?GuiControlGet,b,,edit1
?if (ab=%a%)
?{
?goto,re
?}
?if (b=%a%)
?{
?guicontrol,,spell\none.png,skins\%a%.png
?ab=%a%
?}
?}
return