自动剪切票据功能(中心检测)V2去轨迹

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

给TA捐赠
共{{data.count}}人
人已捐赠
其他

桌面黑底白字提示简易版

2021-12-2 16:18:38

其他

自动剪切图形功能(四边检测)V2

2021-12-2 16:18:51

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索