Loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_223602.png
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
Loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 12, 54, 691, 108, C:\Users\choi\AppData\Roaming\MacroCreator\Screenshots\Screen_20170814000246.png
If ErrorLevel = 0
SoundBeep
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
Sleep, 300
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_223807.png
CenterImgSrchCoords("C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_223807.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 500
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224029.png
CenterImgSrchCoords("C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224029.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 500
If ErrorLevel = 0
{
Sleep, 500
ControlSendRaw, , 010 xxx xxxx, A
Sleep, 300
Sleep, 500
Send, {Tab 3}
Sleep, 500
Loop, 10
{
Click, WheelDown, 1
Sleep, 10
}
Sleep, 500
}
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224152.png
CenterImgSrchCoords("C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224152.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 500
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224220.png
CenterImgSrchCoords("C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224220.png", FoundX, FoundY)
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
If ErrorLevel = 0
{
Send, {Down 4}
Sleep, 300
Send, {Enter 2}
Sleep, 300
Loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\AppData\Roaming\MacroCreator\Screenshots\Screen_20170814002528.png
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
}
Until ErrorLevel = 0
Sleep, 500
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\AppData\Roaming\MacroCreator\Screenshots\Screen_20170814002641.png
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
Sleep, 500
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 0, 0, 1050, 1680, C:\Users\choi\Desktop\?덈ℓ踰꾪듉\20170813_224332.png
If ErrorLevel = 0
Click, %FoundX%, %FoundY% Left, 1
}
}
}
뭐 이런식으로 작성을 하고있습니다.이미지를 찾은후 어떠한 행동을 하고 또 그걸 완수를 하면 다시 다음 단계로 넘어가고 합니다.
여기서 이 모든 동작을 특정키가 눌러진상태 예를들어 동전같은걸 꽂아놓고 하는거죠
를 하고 싶은 키다운으로 쓰니 그 동작이 끝난 후에 다음으로 넘어가더라고요
이 모든 동작을 할때 키다운이 계속되게 할수 없을까요?