Insert::ExitApp
F1::
Click, 160, 98
MouseMove, 490, 600
MouseGetPos, m, n
MouseMove, 0, -400, 0, R
MouseGetPos, a, b
g1: ;------------------------------------------第一个坐标开始
MouseMove, %a%, %b%
PixelGetColor, c, a, b
If(c=0xCCCCCC Or c=0xCACACA Or c=0xC8C8C8 Or c=0xC5C5C5 Or c=0xC4C4C4 Or c=0xCBCBCB Or c=0x000000 Or c=0xCACCCC Or c=0xBFBFBF)
{
a+=0 ;这是x轴
b+=4
Goto g1
}
Else
MsgBox 颜色变了,(%a%, %b%)%c%
WinShow ahk_pid 10968
x1 := a
y1 := b
MouseMove, %x1%, %y1%
Sleep, 100
MouseMove, %m%, %n%
MouseMove, -465, 0, 0, R
MouseGetPos, a, b
Goto g2
Return
g2: ;------------------------------------------第二个坐标开始
PixelGetColor, c, a, b
If(c=0xCCCCCC Or c=0xCACACA Or c=0xC8C8C8 Or c=0xC5C5C5 Or c=0xC4C4C4 Or c=0xCBCBCB Or c=0x000000 Or c=0xCACCCC Or c=0xBFBFBF)
{
a+=4 ;这是x轴
b+=0
Goto g2
}
Else
MsgBox 颜色变了,(%a%, %b%)%c%
WinShow ahk_pid 10968
x2 := a
y2 := b
MouseMove, %x2%, %y2%
Sleep, 100
MouseMove, %m%, %n%
MouseMove, 0, 399, 0, R
MouseGetPos, a, b
Goto g3
Return
g3: ;------------------------------------------第三个坐标开始
PixelGetColor, c, a, b
If(c=0xCCCCCC Or c=0xCACACA Or c=0xC8C8C8 Or c=0xC5C5C5 Or c=0xC4C4C4 Or c=0xCBCBCB Or c=0x000000 Or c=0xCACCCC Or c=0xBFBFBF)
{
a+=0 ;这是x轴
b-=4
Goto g3
}
Else
MsgBox 颜色变了,(%a%, %b%)%c%
WinShow ahk_pid 10968
x3 := a
y3 := b
MouseMove, %x3%, %y3%
Sleep, 100
MouseMove, %m%, %n%
MouseMove, 670, 0, 0, R
MouseGetPos, a, b
Goto g4
Return
g4: ;------------------------------------------第四个坐标开始
PixelGetColor, c, a, b
If(c=0xCCCCCC Or c=0xCACACA Or c=0xC8C8C8 Or c=0xC5C5C5 Or c=0xC4C4C4 Or c=0xCBCBCB Or c=0x000000 Or c=0xCACCCC Or c=0xBFBFBF)
{
a-=4 ;这是x轴
b-=0
Goto g4
}
Else
MsgBox 颜色变了,(%a%, %b%)%c%
WinShow ahk_pid 10968
x4 := a
y4 := b
MouseMove, %x4%, %y4%
Sleep, 100
MouseClickDrag, L, %x2%, %y1%, %x4%, %y3%
Sleep, 100
Send ^x
Return
暂无讨论,说说你的看法吧