dim intx,inty
dim intx2,inty2  //先定义两个坐标
dim 提示词,多点比色值,点击位置1,延迟1,延迟2,点击位置2,一次性比色值  //函数用
dim  resp,mystring,fuwuid,jichengma//继承码使用
DIM X,p,p2,u,u2,YY,YY2,urlde,datad  //请求继承码用
dim i
dim xingge,skill1,skill2,skill3,skill4,skill5,shuguo,jiasu,chi,bangshou  //判定技能
Dim y
dim 颜色数量,颜色数量1

Thread.SetShareVar "进度值", 0

Dim 主逻辑线程


//************************************
//************************************
//通知
Dim url1 = "https://sctapi.ftqq.com/SCT162858Tm6rAA6tXVCcX3ADjFuXKmkOU.send?title=%E5%9B%9B%E5%B8%AE%E7%9A%AE%E6%9D%A5%E5%96%BD"
//dim url2 = "https://sctapi.ftqq.com/SCT162858Tm6rAA6tXVCcX3ADjFuXKmkOU.send?title=%E5%B0%8F%E9%87%91%E9%BE%99%E6%9D%A5%E5%96%BD"
Dim url3 = "https://sctapi.ftqq.com/SCT162858Tm6rAA6tXVCcX3ADjFuXKmkOU.send?title=%E9%94%99%E8%AF%AF%E9%A1%B5%E9%9D%A2%E4%BA%86"
dim send4jia = {"url":url1}
dim senderror = {"url":url3}
//dim sendjinlong = {"url":url2}
//
//
//Url.HttpGet (send4jia)
//Url.HttpGet (sendjinlong)


//************************************
//************************************




//随机延迟120s
dim E
Randomize
E = Int(((150 - 2 + 1) * Rnd()) + 2)
Delay E * 100




删档处理循环


SetControlBarPos 0,0

//***************************主程序


主逻辑线程 = Thread.Start(主逻辑函数)
Call 判断超时函数()








//***************************多线程识别卡顿
Function 超时处理()
信息框 "发现报错或者点击来开始卡死"
Thread.Stop (主逻辑线程)
Delay 5000
KillApp "jp.pokemon.pokemonsleep" //关闭app 
Delay 3000
Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/local.db")
Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/masterdata_server.db")
Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/server.db")
Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/system.db")
Delay 3000
Thread.SetShareVar "进度值", 0
主逻辑线程 = Thread.Start(主逻辑函数)
End Function
Function 判断超时函数()

Do

delay 100000
Dim 报错画面1 = 0   //回到主界面
Dim 报错画面2 = 0    //网络报错
Dim 报错画面3 = 0    //网络报错2有点不一样色
Dim 点击来开始1 = 0
Dim 点击来开始2 = 0
dim 更新报错 = 0
dim 条款白屏 = 0

//If CmpColorEx("382|391|6BD724,398|841|D8D9D9,72|389|FEFEFE,189|564|3A3A3A,267|560|AFAFAF,377|521|3A3A3A,455|658|3A3A3A,456|658|C6C7C7,479|658|A1A1A1-011000,367|799|444444-011000",0.9) = 1 Then
//	信息框"报错画面1"
//	报错画面1 =报错画面1 +1
//End If
If CmpColorEx("91|387|DBEFFB,113|354|8E6600,84|778|372E2B,333|702|372E2B,420|797|362D2A,234|372|302D2D,195|370|FFFFFF",0.9) = 1 Then
	信息框"卡到主界面了"
	报错画面1 =报错画面1 +1
End If

If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,320|481|3A3A3A,289|482|3A3A3A,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,157|370|FEFEFE,259|479|3A3A3A",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面2 =报错画面2 +1
End If
If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,157|370|EEF9EC,320|481|454545,289|482|585959,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,259|479|424242",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面3 =报错画面3 +1
End If

If CmpColorEx("391|124|F6F6F6,87|123|FEFEFE,73|125|FEFEFE,30|149|4E9510,193|130|6AD723,266|461|EDEEEE,298|429|EDEEEE,272|580|D4D5D5,279|880|CACCCC,272|580|D4D5D5", 0.9) = 1 Then 
	信息框"条款白屏"
	条款白屏= 条款白屏 + 1
End If
If CmpColorEx("68|880|FEF8EF,77|880|FE832D,91|880|FEF8EF,236|880|D15A16,269|880|D15A16,379|880|FEF8EF,470|880|FE832F,477|880|FEF8EF", 0.9) = 1 Then 
	信息框"点击来开始卡住"
	点击来开始1 = 点击来开始1 + 1
End If

If CmpColorEx("69|877|FE9D46,77|877|FEFEFE,88|877|FE9D46,236|877|FEFEFE,281|877|FEFEFE,322|877|FE9D46,468|877|FEFEFE,476|877|FE9D47",0.9) = 1 Then
	信息框"点击来开始卡住"
	点击来开始2 =点击来开始2 +1
End If

If CmpColorEx("273|384|6AD623,54|378|FEFEFE,359|549|3A3A3A,388|515|3A3A3A,405|515|3A3A3A,406|550|3A3A3A,138|541|3A3A3A,119|511|3A3A3A,182|476|3A3A3A,268|652|434343-011000",0.9) = 1 Then
	信息框"更新报错"
	更新报错 =更新报错 +1
End If




delay 100000

//If CmpColorEx("382|391|6BD724,398|841|D8D9D9,72|389|FEFEFE,189|564|3A3A3A,267|560|AFAFAF,377|521|3A3A3A,455|658|3A3A3A,456|658|C6C7C7,479|658|A1A1A1-011000,367|799|444444-011000",0.9) = 1 Then
//	信息框"报错画面卡住"
//	报错画面1 =报错画面1 +1
//End If



If CmpColorEx("91|387|DBEFFB,113|354|8E6600,84|778|372E2B,333|702|372E2B,420|797|362D2A,234|372|302D2D,195|370|FFFFFF",0.9) = 1 Then
	信息框"卡到主界面了"
	报错画面1 =报错画面1 +1
End If


If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,320|481|3A3A3A,289|482|3A3A3A,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,157|370|FEFEFE,259|479|3A3A3A",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面2 =报错画面2 +1
End If
If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,157|370|EEF9EC,320|481|454545,289|482|585959,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,259|479|424242",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面3 =报错画面3 +1
End If
Delay 1000
If CmpColorEx("391|124|F6F6F6,87|123|FEFEFE,73|125|FEFEFE,30|149|4E9510,193|130|6AD723,266|461|EDEEEE,298|429|EDEEEE,272|580|D4D5D5,279|880|CACCCC,272|580|D4D5D5", 0.9) = 1 Then 
	信息框"条款白屏"
	条款白屏= 条款白屏 + 1
End If
If CmpColorEx("68|880|FEF8EF,77|880|FE832D,91|880|FEF8EF,236|880|D15A16,269|880|D15A16,379|880|FEF8EF,470|880|FE832F,477|880|FEF8EF",0.9) = 1 Then
	信息框"点击来开始卡住"
	点击来开始1 =点击来开始1 +1
End If


If CmpColorEx("69|877|FE9D46,77|877|FEFEFE,88|877|FE9D46,236|877|FEFEFE,281|877|FEFEFE,322|877|FE9D46,468|877|FEFEFE,476|877|FE9D47",0.9) = 1 Then
	信息框"点击来开始卡住"
	点击来开始2 =点击来开始2 +1
End If

If CmpColorEx("273|384|6AD623,54|378|FEFEFE,359|549|3A3A3A,388|515|3A3A3A,405|515|3A3A3A,406|550|3A3A3A,138|541|3A3A3A,119|511|3A3A3A,182|476|3A3A3A,268|652|434343-011000",0.9) = 1 Then
	信息框"更新报错"
	更新报错 =更新报错 +1
End If

delay 100000

//If CmpColorEx("382|391|6BD724,398|841|D8D9D9,72|389|FEFEFE,189|564|3A3A3A,267|560|AFAFAF,377|521|3A3A3A,455|658|3A3A3A,456|658|C6C7C7,479|658|A1A1A1-011000,367|799|444444-011000",0.9) = 1 Then
//	信息框"报错画面卡住"
//	报错画面1 =报错画面1 +1
//End If

If CmpColorEx("91|387|DBEFFB,113|354|8E6600,84|778|372E2B,333|702|372E2B,420|797|362D2A,234|372|302D2D,195|370|FFFFFF",0.9) = 1 Then
	信息框"卡到主界面了"
	报错画面1 =报错画面1 +1
End If

If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,320|481|3A3A3A,289|482|3A3A3A,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,157|370|FEFEFE,259|479|3A3A3A",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面2 =报错画面2 +1
End If
If CmpColorEx("214|379|6BD724,54|378|FEFEFE,294|549|3A3A3A,157|370|EEF9EC,320|481|454545,289|482|585959,369|514|3A3A3A,275|653|434343,186|516|3A3A3A,259|479|424242",0.9) = 1 Then
	信息框"报错画面卡住"
	报错画面3 =报错画面3 +1
End If
Delay 1000
If CmpColorEx("391|124|F6F6F6,87|123|FEFEFE,73|125|FEFEFE,30|149|4E9510,193|130|6AD723,266|461|EDEEEE,298|429|EDEEEE,272|580|D4D5D5,279|880|CACCCC,272|580|D4D5D5", 0.9) = 1 Then 
	信息框"条款白屏"
	条款白屏= 条款白屏 + 1
End If
If CmpColorEx("68|880|FEF8EF,77|880|FE832D,91|880|FEF8EF,236|880|D15A16,269|880|D15A16,379|880|FEF8EF,470|880|FE832F,477|880|FEF8EF",0.9) = 1 Then
	信息框"点击来开始卡住"
	点击来开始1 =点击来开始1 +1
End If


If CmpColorEx("69|877|FE9D46,77|877|FEFEFE,88|877|FE9D46,236|877|FEFEFE,281|877|FEFEFE,322|877|FE9D46,468|877|FEFEFE,476|877|FE9D47",0.9) = 1 Then
	信息框"点击来开始卡住"
	点击来开始2 =点击来开始2 +1
End If

If CmpColorEx("273|384|6AD623,54|378|FEFEFE,359|549|3A3A3A,388|515|3A3A3A,405|515|3A3A3A,406|550|3A3A3A,138|541|3A3A3A,119|511|3A3A3A,182|476|3A3A3A,268|652|434343-011000",0.9) = 1 Then
	信息框"更新报错"
	更新报错 =更新报错 +1
End If

Dim 判定 = Thread.GetShareVar("进度值")

If  点击来开始1 = 3 or 点击来开始2  = 3  or 报错画面2 = 3 or  更新报错 = 3  or 报错画面1 = 3 or 报错画面3 = 3  or 条款白屏 = 3 Then // 报错画面1 = 3 or
	If 判定 = 0 Then 
		Url.HttpPost (senderror)
		超时处理 
	Else 
		ExitScript
	End If
		
End If


loop

End Function

//***************************多线程识别卡顿



//***************************
//***************************
//***************************
//***************************主要函数





Function 主逻辑函数()

//***************************下拉框控件
Dim 初始类型 = ReadUIConfig("下拉框1","0") //0是所有，1是皮+金龙，2是纯皮

//TracePrint 初始类型


dim h
//开始循环



h = 10
While h > 0



if 初始类型 = 0 then

	打开sleep游戏 
	
	
	语言界面 
	
	国家界面 
	
	年月日界面 
	
	
	点击来开始
	Delay 4000
	Tap 272,598  //全新游戏 
	Delay 3000
	
	条款界面2 
	
	Delay 10000
	
	点击来开始 
	
	Delay 2000
	循环比色点击 "下载","38|374|6BD724,53|384|FEFEFE,184|366|6BD824,184|474|3A3A3A,193|676|FEFEFE,193|694|D8D9D9,321|694|D8D9D9,322|683|6AD524,332|692|4E9510", 375, 659, 1500, 3000

	delay 5000
	循环比色点击 ("下载完成", "54|410|FEFEFE,62|414|FEFEFE,75|419|6AD623,105|410|FEFEFE,291|517|3A3A3A,291|515|D8D9D9,274|618|434343,278|653|D8D9D9,311|629|FEFEFE", 259,615, 1500, 5000)
	Delay 3000
	填写ID 
	Delay 5000

	//13次蓝色继续
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000

	//皮卡丘属性界面了

	循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 3500, 6000


	chi = 3 

	If chi >= 1 Then 
		//Image.SnapAndSave 0, 0, 0, 0
		//Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 306,579  //小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		
		向左 
		向左 
		向左 
		向左
		
		第一次找new宝可梦
		第2次找new宝可梦
		找new宝可梦
		找new宝可梦 
		找new宝可梦
		Delay 3000
		循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
		Delay 3000
		循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 4000
		喂食纱布蕾  //回到主界面
		Delay 3000
		本日照片跟后续领取礼物
		
		主界面处理

	Else //**********************************************************************************
		//判定小金龙

		delay 4000
		tap 273,885 //关闭	
		Delay 2000
		循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 1500, 6000
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 306,579  //小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		向左
		向左 
		向左 
		向左 
		向左
		//判定小金龙
		颜色数量 = 0
		颜色数量1 = 0
		颜色数量 = GetColorNum(5,400, 533,931, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
		颜色数量1 = GetColorNum(276,256, 528,416, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
		颜色数量 = 颜色数量 +颜色数量1
		信息框 "找到的颜色数量有" & 颜色数量 + 颜色数量1 & "个"
		If 颜色数量 > 30 Then 
			Delay 3000
			信息框 "找到小金龙"
			Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
			第一次找new宝可梦
			第2次找new宝可梦
			找new宝可梦
			找new宝可梦 
			找new宝可梦
			Delay 3000
			循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 2500, 6000
			Delay 4000
			喂食纱布蕾  //回到主界面
			Delay 3000
			本日照片跟后续领取礼物
			
			主界面处理
		Else 
			向右 
			向右 
			向右 
			向右
			向右 
			向右 
			颜色数量 = 0
			颜色数量1 = 0
			颜色数量 = GetColorNum(2,204,524,928, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
			信息框 "找到的颜色数量有" & 颜色数量 + 颜色数量1 & "个"
			If 颜色数量 > 30 Then 
				Delay 3000
				Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
				信息框 "找到小金龙"
				第一次找new宝可梦
				第2次找new宝可梦
				找new宝可梦
				找new宝可梦 
				找new宝可梦
				Delay 3000
				循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 2500, 6000
				Delay 4000
				喂食纱布蕾  //回到主界面
				Delay 3000
				本日照片跟后续领取礼物
				
				主界面处理 
			Else 
				信息框 "没货呀"
				delay 3000
				删档处理循环
			End If
		End If
	End If
elseif 初始类型 = 1 Then
	打开sleep游戏 
	
	
	语言界面 
	
	国家界面 
	
	年月日界面 
	
	
	点击来开始
	Delay 4000
	Tap 272,598  //全新游戏 
	Delay 3000
	
	条款界面2 
	
	Delay 10000
	
	点击来开始 
	
	Delay 2000
	循环比色点击 "下载","38|374|6BD724,53|384|FEFEFE,184|366|6BD824,184|474|3A3A3A,193|676|FEFEFE,193|694|D8D9D9,321|694|D8D9D9,322|683|6AD524,332|692|4E9510", 375, 659, 1500, 3000
	delay 5000
	循环比色点击 ("下载完成", "54|410|FEFEFE,62|414|FEFEFE,75|419|6AD623,105|410|FEFEFE,291|517|3A3A3A,291|515|D8D9D9,274|618|434343,278|653|D8D9D9,311|629|FEFEFE", 259,615, 1500, 5000)
	Delay 3000
	填写ID 
	Delay 5000

	//13次蓝色继续
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 6000
	Delay 5000

	//皮卡丘属性界面了

	循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 479, 549, 3500, 6000
	Delay 4000
	//足够的下拉
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	//判定皮卡丘技能


	xingge = 0
	skill1 = 0
	skill2 = 0
	skill3 = 0
	skill4 = 0
	skill5 = 0
	shuguo = 0
	jiasu = 0
	chi = 0
	bangshou = 0
	FindPic 272,525,350,557, "Attachment:帮忙速度性格.png", "000000", 0, 0.9, intX, intY
	//如果没有找到，intX和intY的值都会被置为-1
	If intX > -1 And intY > -1 Then 
		xingge = xingge + 1
		TracePrint intx
		TracePrint inty
		信息框"性格+速"
	Else 
		信息框"没找到帮助速度"
	End If
	delay 1000

	FindPic 54,192,487,258, "Attachment:帮手奖励.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		bangshou = bangshou + 1
		TracePrint intx
		TracePrint inty
		信息框"前2有帮手"
	Else 
		信息框"没帮手"
	End If
	Delay 1000

	FindPic 54,192,487,258, "Attachment:树果s.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		shuguo = shuguo + 1
		信息框 "前2有树果s"
		TracePrint intx
		TracePrint inty
	Else 
		信息框"没树果s"
	End If
	delay 1000



	FindPic 85,217,227,248, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//一技能
	If intX > -1 And intY > -1 Then 
		skill1 = skill1 + 1
		信息框"1技能加速"
	Else 
		信息框"1技能没加速"
	End If
	delay 1000
	FindPic 311,216,453,244, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//2技能
	If intX > -1 And intY > -1 Then 
		skill2 = skill2 + 1
		信息框"2技能加速"
	Else 
		信息框"2技能没加速"
	End If
	delay 1000
	FindPic 77,291,243,325, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//3技能
	If intX > -1 And intY > -1 Then 
		skill3 = skill3 + 1
		信息框"3技能加速"
	Else 
		信息框"3技能没加速"
	End If
	delay 1000
	FindPic 312,293,452,326, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//4技能
	If intX > -1 And intY > -1 Then 
		skill4 = skill4 + 1
		信息框"4技能加速"
	Else 
		信息框"4技能没加速"
	End If
	delay 1000
	FindPic 72,362,231,403, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//5技能
	If intX > -1 And intY > -1 Then 
		skill5 = skill5 + 1
		信息框"5技能加速"
	Else 
		信息框"5技能没加速"
	End If
	delay 1000
	jiasu = xingge + skill1 + skill2 + skill3 + skill4 + skill5
	TracePrint jiasu

	If jiasu = 4 and shuguo = 1 Then 
		Url.HttpPost (send4jia)
	End If

	If shuguo = 1  Then 
		chi = chi + 1
	End If

	If shuguo = 1 and bangshou = 1 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If



	If shuguo = 1  and jiasu >= 3 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If

	//chi = 3 

	If chi >= 1 Then 
		//Image.SnapAndSave 0, 0, 0, 0
		//Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
		delay 4000
		tap 273,885 //关闭
		
		Delay 2000
		循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 1500, 6000
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 306,579  //小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		
		向左 
		向左 
		向左 
		向左
		
		第一次找new宝可梦
		第2次找new宝可梦
		找new宝可梦
		找new宝可梦 
		找new宝可梦
		Delay 3000
		循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
		Delay 3000
		循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 4000
		喂食纱布蕾  //回到主界面
		Delay 3000
		本日照片跟后续领取礼物

		主界面处理

	Else //**********************************************************************************
		//判定小金龙

		delay 4000
		tap 273,885 //关闭	
		Delay 2000
		循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 1500, 6000
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 306,579  //小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		向左
		向左 
		向左 
		向左 
		向左
		//判定小金龙
		颜色数量 = 0
		颜色数量1 = 0
		颜色数量 = GetColorNum(5,400, 533,931, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
		颜色数量1 = GetColorNum(276,256, 528,416, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
		颜色数量 = 颜色数量 +颜色数量1
		信息框 "找到的颜色数量有" & 颜色数量 + 颜色数量1 & "个"
		If 颜色数量 > 30 Then 
			Delay 3000
			信息框 "找到小金龙"
			Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
			第一次找new宝可梦
			第2次找new宝可梦
			找new宝可梦
			找new宝可梦 
			找new宝可梦
			Delay 3000
			循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 2500, 6000
			Delay 3000
			循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 2500, 6000
			Delay 4000
			喂食纱布蕾  //回到主界面
			Delay 3000
			本日照片跟后续领取礼物

			主界面处理
		Else 
			向右 
			向右 
			向右 
			向右
			向右 
			向右 
			颜色数量 = 0
			颜色数量1 = 0
			颜色数量 = GetColorNum(2,204,524,928, "5FDEFC|5FDEFD|4EC2D7|46B5C4", 1.0)
			信息框 "找到的颜色数量有" & 颜色数量 + 颜色数量1 & "个"
			If 颜色数量 > 30 Then 
				Delay 3000
				Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
				信息框 "找到小金龙"
				第一次找new宝可梦
				第2次找new宝可梦
				找new宝可梦
				找new宝可梦 
				找new宝可梦
				Delay 3000
				循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 2500, 6000
				Delay 3000
				循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 2500, 6000
				Delay 4000
				喂食纱布蕾  //回到主界面
				Delay 3000
				本日照片跟后续领取礼物
			
				主界面处理 
			Else 
				信息框 "没货呀"
				delay 3000
				删档处理循环
			End If
		End If
	End If
elseif 初始类型 = 2 Then
	打开sleep游戏 
	
	
	语言界面 
	
	国家界面 
	
	年月日界面 
	
	
	点击来开始
	Delay 4000
	Tap 272,598  //全新游戏 
	Delay 3000
	
	条款界面2 
	
	Delay 10000
	
	点击来开始 
	
	Delay 2000
	循环比色点击 "下载","38|374|6BD724,53|384|FEFEFE,184|366|6BD824,184|474|3A3A3A,193|676|FEFEFE,193|694|D8D9D9,321|694|D8D9D9,322|683|6AD524,332|692|4E9510", 375, 659, 1500, 3000
	delay 5000
	循环比色点击 ("下载完成", "54|410|FEFEFE,62|414|FEFEFE,75|419|6AD623,105|410|FEFEFE,291|517|3A3A3A,291|515|D8D9D9,274|618|434343,278|653|D8D9D9,311|629|FEFEFE", 259,615, 1500, 5000)
	Delay 3000
	填写ID 
	Delay 4000

	//13次蓝色继续
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000

	//皮卡丘属性界面了

	循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 479, 549, 3500, 4000
	Delay 4000
	//足够的下拉
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	//判定皮卡丘技能


	xingge = 0
	skill1 = 0
	skill2 = 0
	skill3 = 0
	skill4 = 0
	skill5 = 0
	shuguo = 0
	jiasu = 0
	chi = 0
	bangshou = 0
	FindPic 272,525,350,557, "Attachment:帮忙速度性格.png", "000000", 0, 0.9, intX, intY
	//如果没有找到，intX和intY的值都会被置为-1
	If intX > -1 And intY > -1 Then 
		xingge = xingge + 1
		TracePrint intx
		TracePrint inty
		信息框"性格+速"
	Else 
		信息框"没找到帮助速度"
	End If
	delay 1000

	FindPic 54,192,487,258, "Attachment:帮手奖励.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		bangshou = bangshou + 1
		TracePrint intx
		TracePrint inty
		信息框"前2有帮手"
	Else 
		信息框"没帮手"
	End If
	Delay 1000

	FindPic 54,192,487,258, "Attachment:树果s.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		shuguo = shuguo + 1
		信息框 "前2有树果s"
		TracePrint intx
		TracePrint inty
	Else 
		信息框"没树果s"
	End If
	delay 1000



	FindPic 85,217,227,248, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//一技能
	If intX > -1 And intY > -1 Then 
		skill1 = skill1 + 1
		信息框"1技能加速"
	Else 
		信息框"1技能没加速"
	End If
	delay 1000
	FindPic 311,216,453,244, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//2技能
	If intX > -1 And intY > -1 Then 
		skill2 = skill2 + 1
		信息框"2技能加速"
	Else 
		信息框"2技能没加速"
	End If
	delay 1000
	FindPic 77,291,243,325, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//3技能
	If intX > -1 And intY > -1 Then 
		skill3 = skill3 + 1
		信息框"3技能加速"
	Else 
		信息框"3技能没加速"
	End If
	delay 1000
	FindPic 312,293,452,326, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//4技能
	If intX > -1 And intY > -1 Then 
		skill4 = skill4 + 1
		信息框"4技能加速"
	Else 
		信息框"4技能没加速"
	End If
	delay 1000
	FindPic 72,362,231,403, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//5技能
	If intX > -1 And intY > -1 Then 
		skill5 = skill5 + 1
		信息框"5技能加速"
	Else 
		信息框"5技能没加速"
	End If
	delay 1000
	jiasu = xingge + skill1 + skill2 + skill3 + skill4 + skill5
	TracePrint jiasu

	If jiasu = 4 and shuguo = 1 Then 
		Url.HttpPost (send4jia)
	End If

	If shuguo = 1  Then 
		chi = chi + 1
	End If

	If shuguo = 1 and bangshou = 1 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If



	If shuguo = 1  and jiasu >= 3 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If

	//chi = 3 

	If chi >= 1 Then 
		//Image.SnapAndSave 0, 0, 0, 0
		//Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
		delay 4000
		tap 273,885 //关闭
		
		Delay 2000
		循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 1500, 6000
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 306,579  //小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		
		向左 
		向左 
		向左 
		向左
		
		第一次找new宝可梦
		第2次找new宝可梦
		找new宝可梦
		找new宝可梦 
		找new宝可梦
		Delay 3000
		循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
		Delay 3000
		循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 4000
		喂食纱布蕾  //回到主界面
		Delay 3000
		本日照片跟后续领取礼物

		主界面处理

	Else //**********************************************************************************
		//判定小金龙
		删档处理循环
			
		
	End If
elseif 初始类型 = 3 Then
	打开sleep游戏 
	
	
	语言界面 
	
	国家界面 
	
	年月日界面 
	
	
	点击来开始
	Delay 4000
	Tap 272,598  //全新游戏 
	Delay 3000
	
	条款界面2 
	
	Delay 10000
	
	点击来开始 
	
	Delay 2000
	循环比色点击 "下载","38|374|6BD724,53|384|FEFEFE,184|366|6BD824,184|474|3A3A3A,193|676|FEFEFE,193|694|D8D9D9,321|694|D8D9D9,322|683|6AD524,332|692|4E9510", 375, 659, 1500, 3000
	delay 5000
	循环比色点击 ("下载完成", "54|410|FEFEFE,62|414|FEFEFE,75|419|6AD623,105|410|FEFEFE,291|517|3A3A3A,291|515|D8D9D9,274|618|434343,278|653|D8D9D9,311|629|FEFEFE", 259,615, 1500, 5000)
	Delay 3000
	填写ID 
	Delay 4000

	//13次蓝色继续
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000
	循环比色点击 "蓝色继续", "54|63|F68F2F,69|60|F68F2F,142|74|3A3A3A,52|745|69D523,306|1060|EDEDED,284|1021|FEFEFE,295|1029|FEA84A,270|1021|FEAA4C", 263, 1034, 3500, 4000
	Delay 4000

	//皮卡丘属性界面了

	循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 479, 549, 3500, 4000
	Delay 4000
	//足够的下拉
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	//判定皮卡丘技能


	xingge = 0
	skill1 = 0
	skill2 = 0
	skill3 = 0
	skill4 = 0
	skill5 = 0
	shuguo = 0
	jiasu = 0
	chi = 0
	bangshou = 0
	FindPic 272,525,350,557, "Attachment:帮忙速度性格.png", "000000", 0, 0.9, intX, intY
	//如果没有找到，intX和intY的值都会被置为-1
	If intX > -1 And intY > -1 Then 
		xingge = xingge + 1
		TracePrint intx
		TracePrint inty
		信息框"性格+速"
	Else 
		信息框"没找到帮助速度"
	End If
	delay 1000

	FindPic 54,192,487,258, "Attachment:帮手奖励.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		bangshou = bangshou + 1
		TracePrint intx
		TracePrint inty
		信息框"前2有帮手"
	Else 
		信息框"没帮手"
	End If
	Delay 1000

	FindPic 54,192,487,258, "Attachment:树果s.png", "000000", 0, 0.85, intX, intY
	//前2有没有树果
	If intX > -1 And intY > -1 Then 
		shuguo = shuguo + 1
		信息框 "前2有树果s"
		TracePrint intx
		TracePrint inty
	Else 
		信息框"没树果s"
	End If
	delay 1000



	FindPic 85,217,227,248, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//一技能
	If intX > -1 And intY > -1 Then 
		skill1 = skill1 + 1
		信息框"1技能加速"
	Else 
		信息框"1技能没加速"
	End If
	delay 1000
	FindPic 311,216,453,244, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//2技能
	If intX > -1 And intY > -1 Then 
		skill2 = skill2 + 1
		信息框"2技能加速"
	Else 
		信息框"2技能没加速"
	End If
	delay 1000
	FindPic 77,291,243,325, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//3技能
	If intX > -1 And intY > -1 Then 
		skill3 = skill3 + 1
		信息框"3技能加速"
	Else 
		信息框"3技能没加速"
	End If
	delay 1000
	FindPic 312,293,452,326, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//4技能
	If intX > -1 And intY > -1 Then 
		skill4 = skill4 + 1
		信息框"4技能加速"
	Else 
		信息框"4技能没加速"
	End If
	delay 1000
	FindPic 72,362,231,403, "Attachment:帮忙速度副技能2.png|Attachment:帮手奖励.png|Attachment:帮忙速度副技能.png", "000000", 0, 0.85, intX, intY
	//5技能
	If intX > -1 And intY > -1 Then 
		skill5 = skill5 + 1
		信息框"5技能加速"
	Else 
		信息框"5技能没加速"
	End If
	delay 1000
	jiasu = xingge + skill1 + skill2 + skill3 + skill4 + skill5
	TracePrint jiasu

	If jiasu = 4 and shuguo = 1 Then 
		Url.HttpPost (send4jia)
	End If

	If shuguo = 1  Then 
		chi = chi + 1
	End If

	If shuguo = 1 and bangshou = 1 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If



	If shuguo = 1  and jiasu >= 3 Then 
		chi = chi + 1
		Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
	End If

	//chi = 3 

	If chi >= 1 Then 
		//Image.SnapAndSave 0, 0, 0, 0
		//Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
		delay 4000
		tap 273,885 //关闭
		
		Delay 2000
		循环比色点击 "皮卡丘界面", "97|56|7665FE,56|56|FEFEFE,224|56|7665FE,101|787|69D523,106|898|69D523,330|1032|7968FE,485|553|63D6FE,501|544|005B88,489|570|FEFEFE", 273, 1034, 1500, 6000
		Delay 4000
		循环比色点击 "新伙伴", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,143|672|3A3A3A,293|1061|D8D9D9,263|1027|FEFEFE,298|1031|6BD724", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "皮卡丘昵称", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD930,54|670|6AD422,305|823|343434,293|1061|D8D9D9,280|1029|FEFEFE,298|1031|6BD725", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "约定", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,145|820|343434,300|859|343434,293|1061|D8D9D9,301|1029|6BD824,265|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "就寝时间", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6BD825,54|670|6AD421,317|798|343434,268|798|343434,293|1061|D8D9D9,301|1029|6BD824,259|1028|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备好了", "240|60|6BD825,56|56|FEFEFE,62|51|FEFEFE,122|53|6CD92C,54|670|6AD423,324|854|343434,268|798|FEFEFE,247|814|343434,301|1029|6BD825,258|1027|FEFEFE", 273, 1034, 2500, 6000
		Delay 4000
		循环比色点击 "准备分辨率", "296|270|6AD325,267|263|FEFEFE,263|285|69D424,59|355|6AD421,57|170|FEFEFE,372|526|6FCA1F,399|918|D8D9D9,378|885|6DDA24,351|285|FEFCD5", 390,880, 1500, 6000
		Delay 5000
		Tap 473, 226
		Delay 4000
		Tap 399, 890
		Delay 3000
		tap 315,685  //306,579小火龙  311,477 种子  315,685  龟 
		Delay 3000
		Tap 380, 700  //睡眠开始
		
		
		Delay 7000
		循环比色点击 "睡眠报告", "218|321|DF905B,333|385|ED9251,351|328|FFFFFF,486|660|232323,432|773|87D9F4,414|810|87D9F4,348|712|ED9251,293|957|FF9B41,267|946|FFF2ED", 271,947, 1500, 6000
		
		
		
		Do
			For i = 1 To 15
				Delay 400
				Tap 460, 984
			Next
			If CmpColorEx("259|314|DAEFFA,383|282|3F51F2,367|282|3F51F2,375|285|E9EFF1,376|298|E3E9EC,275|901|FFBF8D,296|840|FFBF8C,263|879|FFF9F7,163|398|FFD8A9", 0.9) = 1 Then  //睡眠分数
				Delay 3000
				Tap 265, 875
				信息框 "睡眠之力过去了"
				Exit Do
			
			Else 
				信息框 "睡眠之力没到"
				Delay 3000	
			End If
			
		Loop
		
		Delay 3000
		
		
		循环比色点击 "睡眠之力之后的博士", "391|533|FFF36E,336|573|FFF9DB,168|697|5475FF,273|729|E8FDFF,345|825|6AD424,295|826|FFFFFF,460|1005|6AD424,357|968|353535,136|893|353535", 417,940, 2500, 6000
		
		Delay 8000
		//进入睡眠界面了
		循环比色点击 "卡比兽睡眠界面的博士", "388|529|FFF36E,386|539|FFF36E,462|1004|6AD424,357|930|353535,168|702|5374FF,358|830|6AD424,341|894|353535", 417,940, 2500, 6000
		delay 3000
		缩放界面 
		缩放界面 
		缩放界面 
		缩放界面
		
		向左 
		向左 
		向左 
		向左
		
		第一次找new宝可梦
		第2次找new宝可梦深深
		找new宝可梦
		找new宝可梦 
		找new宝可梦
		Delay 3000
		循环比色点击 "完成研究", "274|805|FDFEFD,332|446|91F9FE,285|446|7DD72E,186|814|6BD824,300|814|6BD824,311|433|FEFEFE,273|807|FDFDFD", 283,803, 2500, 6000
		Delay 3000
		循环比色点击 "点心时间", "391|535|FFF36E,379|542|FFF36E,374|563|FFFFFF,274|730|E8FDFF,332|824|6AD424,365|935|386AFF,349|939|386AFF,460|1005|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间2", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,225|932|353535,204|928|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 3000
		循环比色点击 "点心时间3", "71|250|FF9F49,82|268|FF9F49,216|411|FF883B,243|511|FFF8F2,109|774|FFF36E,364|825|6AD424,446|932|353535,388|940|353535,461|1003|6AD424", 434,992, 3500, 6000
		Delay 4000
		喂食纱布蕾  //回到主界面
		Delay 3000
		本日照片跟后续领取礼物

		主界面处理

	Else //**********************************************************************************
		//判定小金龙
		删档处理循环
			
		
	End If
Else
	信息框"没选择类型哈"

end if
Wend
End Function

//***************************
//***************************
//***************************
//***************************主要函数








Function 主界面处理
	delay 3000
	tap 285,1058
	Delay 4000
	tap 267,882  //选单关闭
	Delay 4000
	tap 159,889 //取消
	//看看邮箱有没有新东西哈
	Delay 4000
	If CmpColorEx("501|54|FEFEFE,507|55|3762FE,496|56|3762FE,496|63|3762FE,506|63|3762FE",0.9) = 1 Then
		信息框 "有东西邮箱"
		Delay 2500
		Tap 478,75
		循环比色点击 ("领取礼品界面", "55|60|FFFFFF,92|57|5677FF,337|61|56CE26,398|61|6AD422,35|139|74DE2A,199|1061|5577FF,287|1063|6AD422,365|1068|F6F6F6", 398, 1063, 1500, 5000)
		Delay 4000
		Tap 272, 883
		Delay 2500
		Tap 86, 1064
		delay 3000
		循环比色点击 ("回到选单界面", "264|1065|FEFEFE,272|1057|FEFEFE,284|1063|6DD923,278|557|6AD421,488|478|FE9D46,345|867|70DE2B,98|870|4DC7FE,320|953|CACCCC", 259,1066, 1500, 5000)
		//回到主界面
		
	Else
		信息框 "没东西"
		Delay 2500
		Tap 259, 1066
		//回到主界面
	End If
	
	Delay 5000
	循环比色点击 ("主界面了2精灵球", "54|1029|486EF2,54|1043|486EF2,224|1043|70CA1F,244|1040|70CA1F,473|1028|FEA048,488|1040|FEA048,361|915|6DD924,336|48|1CA8FE", 53,1050, 1500, 5000)
	Delay 3000
	循环比色点击 ("宝可梦盒子", "106|1057|F6F6F6,201|787|FFFFFF,277|798|5677FF,267|662|5677FF,168|649|6DFFFF,156|617|5869FF,280|462|3B3B3B,119|56|5677FF,54|55|FFFFFF", 326,798, 3500, 5000)
	Delay 5000
	循环比色点击 ("宝可梦界面", "281|427|536EFC,150|434|313131,90|421|313131,32|554|74DD2A,92|56|5776FE,362|55|536EFC,488|50|536EFC", 81, 706, 3500, 5000)
	//宝可梦界面
	delay 2000
	循环比色不点击("皮卡丘到了","51|104|5576FE,49|93|5576FE,54|122|5576FE,103|112|5776FE,67|106|FEFEFE",2500,5000)
	宝可梦数据截图 
	delay 2500
	Tap 79, 1062
	delay 2500
	循环比色点击 ("宝可梦界面", "281|427|536EFC,150|434|313131,90|421|313131,32|554|74DD2A,92|56|5776FE,362|55|536EFC,488|50|536EFC", 82,1050, 1500, 5000)
	delay 2500
	循环比色点击 ("宝可梦盒子", "106|1057|F6F6F6,201|787|FFFFFF,277|798|5677FF,267|662|5677FF,168|649|6DFFFF,156|617|5869FF,280|462|3B3B3B,119|56|5677FF,54|55|FFFFFF", 82,1050, 1500, 5000)
	Delay 4000
	//主界面 
	回到主界面可能不知不觉成长 
	
	tap 292,1050 //选单
	Delay 7000
	Tap 388, 974
	Delay 9000
	Tap 169, 487  //帐号连接
	Delay 5000
	Tap 276, 610 //点击发行继承码
	Delay 6000
	循环比色点击 ("发行继承码", "284|181|6AD623,57|173|E9F7E6,76|156|6DDB24,307|407|4C74FE,329|883|6DDB25,220|918|D8D9D9", 400,894, 3500, 5000)
	Delay 5000
	Tap 276, 678
	Delay 6000
	If CmpColorEx("235|167|6BD824,58|171|FEFEFE,59|253|6AD421,58|516|6AD421,435|886|6DDA24,205|891|FEFEFE,179|917|D8D9D9", 0.9) = 1 Then 
		Image.SnapAndSave 0, 0, 0, 0  //继承码截图
	Else 
		Delay 3000
		ExitScript
	End If

	Delay 5000
	删档处理循环

End Function





















Function 本日照片跟后续领取礼物
	循环比色点击 "本日照片", "196|124|F68F2F,267|117|444444,314|126|444444,408|775|F88E2E,162|842|F88E2E,452|1039|FE9D46,294|1043|F4F5F5,309|1080|B5ADAA,279|1045|464646", 271,1047, 2500, 5000
	delay 3000
	循环比色点击 "睡眠研究结果", "281|54|FE9D46,363|61|F68F2F,220|161|FEFEFE,352|423|F6923F,40|423|FEFEFE,465|1063|FE9D46,301|1056|EBEBEB,280|1050|525353", 271,1047, 2500, 5000
	Delay 3000
	循环比色点击 "等级提升", "305|834|6DDB24,274|838|FEFEFE,271|869|CDB04D,334|314|A5FAFE,472|443|86FDFE,349|436|FEFEFE,106|444|F4B335", 278,839, 2500, 5000
	Delay 8000
	tap 266,836 //可能LV3
	Delay 3000
	循环比色点击 "研究报酬", "119|585|69D523,117|701|FE9F48,118|786|78ECFC,152|406|F6923F,36|407|FEFEFE,274|1045|444444,301|1067|F4F5F5", 273,1053, 2500, 5000
	Delay 3000
	循环比色点击 "新伙伴跳过", "55|56|FEFEFE,92|57|7665FE,491|56|FE9D46,478|57|FEFEFE,360|649|634AFB,105|813|69D523,294|1028|7968FE,274|1030|FEFEFE", 468,59, 2500, 5000
	Delay 3000
	循环比色点击 "结束博士", "390|532|FFF36E,332|585|FFF9DB,379|542|FFF36E,171|697|5475FF,315|825|6AD424,402|894|353535,379|971|353535,365|968|353535,461|1003|6AD424", 447,960, 2500, 5000
	Delay 3000
	循环比色点击 "研究卡比兽", "390|532|FFF36E,332|585|FFF9DB,379|542|FFF36E,171|697|5475FF,315|825|6AD424,299|897|353535,313|937|353535,298|932|353535,461|1003|6AD424", 447,960, 2500, 5000
	Delay 3000
	循环比色点击 "移动营地", "271|941|3189FE,272|966|3189FE,264|1081|D4D4D4,337|1051|6BD724,165|1052|6BD724,314|30|1EA8FE,358|67|FEFEFE,323|101|5FC00A", 268,1048, 2500, 5000
	Delay 3000
	循环比色点击 "拜拜卡比兽", "266|809|FFFFFF,289|828|6AD424,271|823|FBFEFB,461|947|6AD424,460|973|6AD424,335|919|353535,335|887|353535", 443,947, 2500, 5000
	Delay 8000
	循环比色点击 "等待岛屿博士", "392|533|FFF36E,379|540|FFF36E,329|577|FFF9DB,171|697|5475FF,318|827|6AD424,357|898|353535,340|927|353535,461|1004|6AD424,463|1032|6AD424", 428,988, 3500, 5000
	Delay 3000
	循环比色点击 "萌绿研究", "393|537|FFF36E,378|538|FFF36E,325|577|FFF9DB,170|698|5475FF,325|826|6AD424,254|901|386AFF,330|903|353535,428|904|353535,461|1004|6AD424", 428,988, 4500, 5000
	Delay 3000
	循环比色点击 "萌绿研究2", "393|537|FFF36E,378|538|FFF36E,325|577|FFF9DB,170|698|5475FF,325|826|6AD424,320|900|353535,343|968|353535,267|972|353535,461|1004|6AD424", 428,988, 3500, 5000
	Delay 3000
	循环比色点击 "萌绿研究3", "393|537|FFF36E,378|538|FFF36E,325|577|FFF9DB,170|698|5475FF,325|826|6AD424,307|894|386AFF,291|931|353535,264|935|353535,461|1004|6AD424", 428,988, 3500, 5000
	Delay 4000
	循环比色点击 "地图营地选择", "296|452|3189FE,220|534|5B72FD,80|42|74D220,213|133|69D523,258|61|FEFEFE,328|784|70E7FE,309|806|14B0FE,254|1077|6DD923", 281,571, 2500, 5000
	Delay 3000	
	do  //15岛屿点击 
		If CmpColorEx("213|164|6BD724,58|164|FEFEFE,105|301|3F64FE,255|282|1EA8FE,385|804|3189FE,97|773|4DD0FE,94|700|4DD0FE,416|882|6DDA24",0.9) = 1 Then
			信息框 "岛屿点击"
			Delay 2500
			Tap 388,882
			Delay 2500
			Tap 384,699
			Delay 1000
			tap 384,699   //可能出现下载更新音乐可能要判定的说。18资料下载完成 
			exit do
		Else
			信息框 "还没岛屿点击"
			delay 4000
		End If
	Loop
//	Delay 3000
//	
//	循环比色点击 "OK", "55|409|FFFFFF,62|404|FFFFFF,156|413|6AD724,405|789|71716F,247|518|3B3B3B,274|621|454545,274|652|D8D9D9,339|635|FFFFFF,140|859|71716F", 265,620, 2500, 5000
//	
	Delay 3000
	do  //19-26 卡比兽界面一通点击
		If CmpColorEx("391|533|FFF36E,334|575|FFF9DB,168|699|5475FF,375|825|6AD424,269|932|353535,250|939|386AFF,291|969|353535,460|1005|6AD424",0.9) = 1 Then
			信息框 "博士来了"
			do
				For y = 1 To 40
					delay 400
					Tap 446,901
				Next
				信息框 "一波点击"
				If CmpColorEx("264|58|6BD824,55|56|FEFEFE,215|657|6AD421,379|647|6AD421,89|795|69D523,95|905|4DD0FE,330|1027|6DDB24,308|1031|FCFDFC,283|1060|CACACA",0.9) = 1 Then
					Delay 3500
					tap 268,1026
					信息框 "卡比兽界面了"
					Exit Do 
				Else
					信息框 "卡比兽界面了没到"
					delay 3000
				End If
			Loop
			exit do 
		Else
			信息框 "还没博士来了"
			delay 4000
		End If
	Loop
	Delay 8000
	循环比色点击 "培育卡比兽", "392|535|FFF36E,329|578|FFF9DB,168|696|5475FF,336|828|6AD424,406|933|386AFF,357|935|386AFF,459|1003|6AD424,269|901|353535,431|991|FFFFFF", 440,985, 4500, 5000
	Delay 3000
	循环比色点击 "树果", "392|535|FFF36E,329|578|FFF9DB,168|696|5475FF,336|828|6AD424,386|895|386AFF,291|931|353535,459|1003|6AD424,408|988|FFFFFF,238|939|353535", 440,985, 4500, 5000
	Delay 3000
	do  //29点皮卡丘哈
		If CmpColorEx("340|46|1CA8FE,85|173|FEFEFE,55|965|7CE735,103|1000|6FCA1F,200|1017|444444,94|979|6FCA1F,104|1010|6FCA1F",0.9) = 1 Then
			信息框 "皮卡丘哈"
			Delay 3500
			Tap 269, 702
			Delay 1500
			Tap 269, 702
			Delay 1500
			Tap 269,702
			Delay 2500
			Tap 214,760
			Delay 200
			Tap 210,754
			Delay 200
			Tap 213,782
			Delay 200
			Tap 253,815
			Delay 200
			Tap 252,788
			Delay 200
			Tap 252,766
			Delay 200
			Tap 275,763
			Delay 200
			Tap 281,786
			Delay 200
			Tap 280,812
			Delay 200
			Tap 288,768
			Delay 200
			Tap 291,786
			Delay 200
			Tap 289,816
			Delay 200
			Tap 317,808
			Delay 200
			Tap 311,778
			Delay 200
			Tap 313,754
			Delay 200
			Tap 334,766
			Delay 200
			Tap 253, 819
			Delay 200
			Tap 221,813
			Delay 200
			Tap 208,756
			Delay 200
			Tap 319, 817
			Delay 200
			Tap 319, 830
			Delay 200
			tap 216,794
			delay 200
			tap 218,803
			delay 200
			tap 371,767
			delay 200
			tap 374,804
			delay 200
			tap 352,792
			delay 200
			tap 367,773
			delay 200
			tap 383,803
			delay 200
			tap 212,777
			delay 200
			tap 213,794
			delay 200
			tap 219,785						

			Exit Do

		Else
			信息框 "还没皮卡丘哈"
			delay 2000
			tap 368,983
			delay 2000
		End If
	Loop
	//30-40直接乱点懒得识别了
	For y = 1 To 70
		Delay 100
		皮卡丘还有苹果
		delay 400
		Tap 269,869
		delay 400
		Tap 269,869
		delay 400
		Tap 269,869
		delay 400
		Tap 269,869
		delay 400
		Tap 269,869
		delay 400
		Tap 269,869
		Delay 400
		Tap 269,869
		Delay 400
		Tap 269,869
		Delay 400
		Tap 269,869
		Delay 1000
		If CmpColorEx("54|1029|486EF2,54|1043|486EF2,224|1043|70CA1F,244|1040|70CA1F,473|1028|FEA048,488|1040|FEA048,361|915|6DD924,336|48|1CA8FE", 0.9) = 1 Then 
			信息框 "主界面了"
			delay 2000
			Exit For
		Else 
			信息框 "还需要点击"
			delay 2000
		End If
	Next
	Delay 3000
End Function


























Function 可能弹窗
	If CmpColorEx("54|393|FEFEFE,54|402|FEFEFE,108|404|6AD623,324|670|D8D9D9,275|637|434343,265|531|3B3B3B",0.9) = 1 Then
		信息框 "弹窗了"
		Delay 1000
		Tap 269,636
	end if
End Function








Function 喂食纱布蕾 
	缩放界面 
	缩放界面 
	缩放界面 
	缩放界面 
	纱布蕾
	超级球
End Function








































Function 纱布蕾
Do
	向左 
	向左 
	向左
    向左
    向左    
    FindMultiColor 0,187,520,935, "8674FE","0|7|8674FE,8|2|8674FE", 0, 1, intX, intY
    If intx > -1 and inty > -1 Then
        TracePrint intx,inty
        信息框 "找到了lv1"
        Delay 100
        Tap intx + 60, inty + 100
        Delay 200
        Tap intx + 20, inty + 100
        Delay 200
        Tap intx + 100, inty + 150
        Delay 3000
        可能弹窗
        循环比色点击 "纱布蕾", "370|896|FEFEFE,424|937|69D623,394|949|D8D9D9,104|919|B3F8FE,154|949|FEFEFE,367|922|6DD923", 401,931, 3000, 6000
        Delay 6000
        循环比色点击 "第一个之后博士1", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,229|896|386AFF,180|930|353535,151|940|353535,461|1004|6AD424", 426,985, 5000, 6000
        Delay 3000
        循环比色点击 "第一个之后博士2", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,319|930|353535,392|898|353535,321|931|353535,461|1004|6AD424", 426,985, 5000, 6000
        Delay 3000
        循环比色点击 "第一个之后博士3", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,264|939|353535,321|937|353535,376|987|FFFFFF,461|1004|6AD424", 426, 985, 5000, 6000
        Delay 3000
        循环比色点击 "换纱布蕾", "89|901|3189FE,90|916|3189FE,102|1024|B3F8FE,435|1002|FEFEFE,306|1022|FEFEFE,92|975|FEFEFE", 92, 1012, 2000, 6000
        Delay 4000
        tap 87,789 //超级球
        Delay 3000
        Exit Do
    Else
		delay 3000
        信息框 "没找到了lv1"
		向右 
		向右 
		向右 
		向右 
		向右 
		向右
        FindMultiColor 0,187,536,935, "8674FE","0|7|8674FE,8|2|8674FE", 0, 1, intX, intY
        If intx > -1 and inty > -1 Then
            TracePrint intx,inty
            信息框 "找到了lv1"
            Delay 100
            Tap intx + 60, inty + 100
            Delay 200
            Tap intx + 20, inty + 100
            Delay 200
            Tap intx + 100, inty + 150
            Delay 3000
            可能弹窗
            循环比色点击 "纱布蕾", "370|896|FEFEFE,424|937|69D623,394|949|D8D9D9,104|919|B3F8FE,154|949|FEFEFE,367|922|6DD923", 401,931, 3000, 6000
            Delay 6000
            循环比色点击 "第一个之后博士1", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,229|896|386AFF,180|930|353535,151|940|353535,461|1004|6AD424", 426,985, 5000, 6000
            Delay 3000
            循环比色点击 "第一个之后博士2", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,319|930|353535,392|898|353535,321|931|353535,461|1004|6AD424", 426,985, 5000, 6000
            Delay 3000
            循环比色点击 "第一个之后博士3", "392|535|FFF36E,378|540|FFF36E,336|574|FFF9DB,169|696|5475FF,392|829|6AD424,264|939|353535,321|937|353535,376|987|FFFFFF,461|1004|6AD424", 426, 985, 5000, 6000
            Delay 3000
            循环比色点击 "换纱布蕾", "89|901|3189FE,90|916|3189FE,102|1024|B3F8FE,435|1002|FEFEFE,306|1022|FEFEFE,92|975|FEFEFE", 92, 1012, 2000, 6000
            Delay 4000
            tap 87,789 //超级球
            Delay 3000
            Exit Do
		Else
			delay 3000
        end if
    end if
Loop
end Function













Function 找new宝可梦 
	缩放界面 
	缩放界面 
	缩放界面   
	delay 1000
	FindMultiColor 0,150,520,935, "458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE", 0, 1, intX, intY
	FindMultiColor 0,187,520,935, "FEFEFE", "6|0|FEFEFE,0|6|FEFEFE", 0, 1, intX2, intY2
	TracePrint intx,inty
	TracePrint intx2,inty2
	If intX > -1 or intX2 > -1 Then 
		信息框 "找到new"
		If intx >-1 and inty > -1 then
			Delay 2500
			TracePrint intx, inty
			Tap intx, inty + 40
			Delay 500
			tap intx+20 , inty +60
			Delay 500
			Tap intx, inty + 75
			Delay 500
			Tap intx, inty + 120
			delay 3000
			循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
			Delay 3000
			循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
			Delay 3000
			循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
			Delay 3000
		Else 
			Delay 1500
			TracePrint intx2, inty2
			Tap intx2, inty2 + 40
			Delay 500
			tap intx2+20 , inty2 +60
			Delay 500
			Tap intx2, inty2 + 75
			Delay 500
			Tap intx2, inty2 + 120
			delay 3000
			循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
			Delay 3000
		End If
	Else 
		信息框 "没找到new"
		向左 
		向左 
		向左 
		向左 
		向左 
		delay 1000
		FindMultiColor 0,150,520,935, "458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE", 0, 1, intX, intY
		FindMultiColor 0,187,520,935, "FEFEFE", "6|0|FEFEFE,0|6|FEFEFE", 0, 1, intX2, intY2
		TracePrint intx,inty
		TracePrint intx2,inty2
		If intX > -1 or intx2 > -1 Then 
			信息框"找到new"
			If intx >-1 and inty > -1 then
				Delay 2500
				TracePrint intx, inty
				Tap intx, inty + 40
				Delay 500
				tap intx+20 , inty +60
				Delay 500
				Tap intx, inty + 75
				Delay 500
				Tap intx, inty + 120
				delay 3000
				循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
				Delay 3000
				循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
				Delay 3000
				循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
				Delay 3000
			Else 
				Delay 1500
				TracePrint intx2, inty2
				Tap intx2, inty2 + 40
				Delay 500
				tap intx2+20 , inty2 +60
				Delay 500
				Tap intx2, inty2 + 75
				Delay 500
				Tap intx2, inty2 + 120
				delay 3000
				循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000 
				Delay 3000
			End If
		Else 
			信息框 "没找到new"
			Delay 3000
			向右 
			向右 
			向右 
			向右 
			向右
			delay 1000
			FindMultiColor 0,150,536,935, "458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE", 0, 1, intX, intY
			FindMultiColor 0,187,536,935, "FEFEFE", "6|0|FEFEFE,0|6|FEFEFE", 0, 1, intX2, intY2
			TracePrint intx,inty
			TracePrint intx2,inty2
			If intX > -1 or intx2 > -1 Then 
				信息框"找到new"
				If intx >-1 and inty > -1 then
					Delay 2500
					TracePrint intx, inty
					Tap intx, inty + 40
					Delay 500
					tap intx+20 , inty +60
					Delay 500
					Tap intx, inty + 75
					Delay 500
					Tap intx, inty + 120
					delay 3000
					循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
					Delay 3000
					循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
					Delay 3000
					循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
					Delay 3000
				Else 
					Delay 1500
					TracePrint intx2, inty2
					Tap intx2, inty2 + 40
					Delay 500
					tap intx2+20 , inty2 +60
					Delay 500
					Tap intx2, inty2 + 75
					Delay 500
					Tap intx2, inty2 + 120
					delay 3000
					循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000 
					Delay 3000
				End If
			Else 
				信息框 "没找到new"
				Delay 3000
			end if	
		End If
	end if
End Function






Function 第2次找new宝可梦
	Delay 3000  
	缩放界面 
	缩放界面
	向左 
	向左 
	向左 
	向左
	FindMultiColor 0,150,520,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
	If intX > -1 And intY > -1 Then 
		信息框"找到new"
		Delay 2500
		TracePrint intx, inty
		Tap intx, inty + 40
		Delay 500
		tap intx+20 , inty +60
		Delay 500
		Tap intx, inty + 75
		Delay 500
		Tap intx, inty + 120
		delay 3000
		循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
		Delay 3000
		循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
		Delay 3000
		循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
		Delay 3000
		循环比色点击 "第二次博士1","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,232|930|386AFF,211|937|386AFF,461|1005|6AD424,466|1009|6AD424,321|902|353535", 459,1004, 5000, 5000 
		delay 3000
		循环比色点击 "第二次博士2","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,122|971|386AFF,186|965|353535,461|1005|6AD424,466|1009|6AD424,209|964|353535", 459,1004, 9000, 5000 
		Delay 3000
		循环比色点击 "第二次博士3","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,397|937|353535,383|938|386AFF,424|935|353535,461|1004|6AD424", 459,1004, 6000, 5000  
		delay 3000
		循环比色点击 "第二次博士4","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,162|935|386AFF,289|932|353535,315|934|353535,461|1004|6AD424", 459,1004, 6000, 5000 
		Delay 3000
		循环比色点击 "第二次博士5","68|252|FF9F49,88|264|FF9F49,110|774|FFF36E,140|826|6AD424,264|939|353535,246|930|386AFF,339|943|353535,461|1004|6AD424,470|1004|FFFFFF", 459,1004, 9000, 5000  
		delay 3000
		循环比色点击 "第二次博士6","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,335|932|353535,313|934|353535,253|940|353535,461|1004|6AD424", 459,1004, 4000, 5000 
		
	Else 
		信息框 "没找到new" 
		向右 
		向右 
		向右 
		向右 
		向右
		FindMultiColor 0,150,536,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
		If intX > -1 And intY > -1 Then 
			信息框"找到new"
			Delay 2500
			TracePrint intx, inty
			Tap intx, inty + 40
			Delay 500
			tap intx+20 , inty +60
			Delay 500
			Tap intx, inty + 75
			Delay 500
			Tap intx, inty + 120
			delay 3000
			循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
			Delay 3000
			循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
			Delay 3000
			循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
			Delay 3000
			循环比色点击 "第二次博士1","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,232|930|386AFF,211|937|386AFF,461|1005|6AD424,466|1009|6AD424,321|902|353535", 459,1004, 5000, 5000 
			delay 3000
			循环比色点击 "第二次博士2","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,122|971|386AFF,186|965|353535,461|1005|6AD424,466|1009|6AD424,209|964|353535", 459,1004, 9000, 5000 
			Delay 3000
			循环比色点击 "第二次博士3","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,397|937|353535,383|938|386AFF,424|935|353535,461|1004|6AD424", 459,1004, 6000, 5000  
			delay 3000
			循环比色点击 "第二次博士4","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,162|935|386AFF,289|932|353535,315|934|353535,461|1004|6AD424", 459,1004, 6000, 5000 
			Delay 3000
			循环比色点击 "第二次博士5","68|252|FF9F49,88|264|FF9F49,110|774|FFF36E,140|826|6AD424,264|939|353535,246|930|386AFF,339|943|353535,461|1004|6AD424,470|1004|FFFFFF", 459,1004, 9000, 5000  
			delay 3000
			循环比色点击 "第二次博士6","272|192|BABABA,79|236|FF9F49,230|497|FFFB85,110|779|FFF36E,162|825|6AD424,335|932|353535,313|934|353535,253|940|353535,461|1004|6AD424", 459,1004, 4000, 5000
		Else 
			信息框 "没找到new"
		End If
	end if
End Function



Function 第一次找new宝可梦
	FindMultiColor 0,150,520,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
	If intX > -1 And intY > -1 Then 
		信息框"找到new"
		Delay 2500
		TracePrint intx, inty
		Tap intx, inty + 40
		Delay 500
		tap intx+20 , inty +60
		Delay 500
		Tap intx, inty + 75
		Delay 500
		Tap intx, inty + 120
		Delay 3000
		循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
		Delay 3000
		循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
		Delay 3000
		循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000  
		Delay 3000
		循环比色点击 "第一次一次博士","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,410|935|353535,397|935|353535,461|1005|6AD424,466|1009|6AD424", 459,1004, 2000, 5000
	Else 
		信息框 "没找到new"
		向右 
		向右 
		向右
		向右 
		向右 
		向右
		FindMultiColor 0,150,536,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
		If intX > -1 And intY > -1 Then 
			信息框"找到new"
			Delay 1500
			TracePrint intx, inty
			Tap intx, inty + 40
			Delay 500
			tap intx+20 , inty +60
			Delay 500
			Tap intx, inty + 75
			Delay 500
			Tap intx, inty + 120
			Delay 3000
			循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
			Delay 3000
			循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
			Delay 3000
			循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000  
			Delay 3000
			循环比色点击 "第一次一次博士","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,410|935|353535,397|935|353535,461|1005|6AD424,466|1009|6AD424", 459,1004, 2000, 5000
		Else 
			信息框 "没找到new"
		End If
	end if
End Function



















Function 向左
	ShowMessage"向左"
	Delay 1000
	Swipe 150, 431, 462, 431
	Delay 1000
End Function
Function 向右
	ShowMessage"向右"
	Delay 1000
	Swipe 462, 431, 150, 431
	Delay 1000
End Function


Function 宝可梦数据截图
delay 2000
Thread.SetShareVar "进度值", Thread.GetShareVar("进度值") + 1
do
	Delay 3000
	touchDown(272,510,1) 
	delay 10 
	touchMove(272,210,1)
	delay 10 
	TouchUp (1)
	Delay 2500
    If CmpColorEx("215|756|52E76E,215|817|52E76E,215|883|52E76E,215|585|6AD423,80|752|52E76E,80|817|52E76E,72|882|52E76E",0.9) = 1 Then
     	Delay 1500
     	信息框 "卡到位置了底部了"
     	exit do
    Else
     	信息框 "还没卡到位置了"
		delay 1500
    End If
loop

do
	Delay 1000
	touchDown(262,880,1) 
	delay 100 
	touchMove(262,910,1)
	delay 100 
	TouchUp (1)
	Delay 2500
    If CmpColorEx("155|832|6AD423,37|832|FEFEFE,29|832|6AD423,413|832|6AD423",0.9) = 1 Then
     	Delay 1500
     	信息框 "卡到位置了底部了"
     	Image.SnapAndSave 0, 0, 0, 0
     	exit do
    Else
     	信息框 "还没卡到位置了"
     	If CmpColorEx("51|105|5576FE,60|94|5576FE,54|123|5576FE,103|112|5776FE,313|110|00DEFE,300|110|FEFEFE", 0.9) = 1 Then 
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
     		Delay 2000
			touchDown(272,510,1) 
			delay 10 
			touchMove(272,210,1)
			delay 10 
			TouchUp (1)
			
			delay 2000
     	Else
     		Delay 1000
     		信息框 "并没到顶"
     	End If
		delay 1500
    End If
Loop


Swipe  437,720,90,720
Delay 1500
Swipe 437, 720, 90, 720
Delay 1500
Swipe 437, 720, 90, 720
Delay 3500

Image.SnapAndSave 0, 0, 0, 0


End Function



Function 信息框(内容)
	TracePrint  内容
	ShowMessage 内容
End Function

Function 打开sleep游戏
  RunApp "jp.pokemon.pokemonsleep"
  信息框 "打开游戏"
  Delay 8000
End Function

Function 缩放界面
  MoveZoomOut(100,100,500,500,200)
  Delay 1000
  信息框 "缩放界面了"
  MoveZoomOut(100,100,500,500,200)
  Delay 1000
End Function


Function 删档处理循环()
    Delay 2000
    KillApp "jp.pokemon.pokemonsleep" //关闭app 
    Delay 3000
	Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/local.db")
	Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/masterdata_server.db")
	Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/server.db")
	Dir.Delete("/data/data/jp.pokemon.pokemonsleep/files/system.db")
    Delay 3000
    Thread.SetShareVar "进度值", 0
End Function




Function 循环比色点击(提示词,多点比色值,点击位置1,点击位置2,延迟1,延迟2)
  do 
    If CmpColorEx(多点比色值,0.9) = 1 Then
      信息框 提示词
      Delay 延迟1
      Tap 点击位置1, 点击位置2
      信息框 点击位置1 
      信息框 点击位置2
      exit do
    Else
      信息框 提示词
      delay 延迟2
    End If
  loop
End Function


Function 一次性比色点击(提示词,一次性比色值,点击位置1,点击位置2,延迟1,延迟2)
If CmpColorEx(一次性比色值,0.9) = 1 Then
  信息框 提示词
  Delay 延迟1
  Tap 点击位置1, 点击位置2
  信息框 点击位置1 
  信息框 点击位置2
Else
  信息框 提示词
  delay 延迟2
End If

End Function

Function 循环比色不点击(提示词,多点比色值,延迟1,延迟2)
  do 
    If CmpColorEx(多点比色值,0.9) = 1 Then
      信息框 提示词
      Delay 延迟1
      exit do
    Else
      信息框 提示词
      delay 延迟2
    End If
  loop
End Function


Function 一次性比色不点击(提示词,一次性比色值,延迟1,延迟2)
If CmpColorEx(一次性比色值,0.9) = 1 Then
  信息框 提示词
  Delay 延迟1
Else
  信息框 提示词
  delay 延迟2
End If
End Function



Function 语言界面
	Do
		If CmpColorEx("515|176|232323,492|232|232323,451|202|F6F7F7,319|360|6AD422,155|222|69D524,270|841|3B3B3B,53|362|6AD422,144|364|FFFFFF,456|468|E7E7E7,464|288|87D9F4",0.9) = 1 Then
			信息框 "进入语言界面"
			Delay 3500
			Swipe 290,925, 287,330
			Delay 500
			Swipe 290,925, 287,330
			delay 1500
			Tap 287,867
			信息框 "选择繁体中文"
			delay 2000
			循环比色点击 "语言确定", "54|363|FFFFFF,54|346|6EDC25,53|390|4E9510,204|458|69D524,316|476|3B3B3B,346|667|6DDA25,375|676|FFFFFF,375|700|D8D9D9", 372,680, 1500, 3000
			delay 1000
			exit do
		Else
			信息框 "还没进语言界面"
			delay 6000
		End If
	Loop
End Function


Function 国家界面
	Do
		If CmpColorEx("129|222|69D524,129|234|69D524,490|239|232323,343|363|6AD422,352|732|6AD422,470|367|6AD422",0.9) = 1 Then
			信息框 "进入国家界面"
			Delay 2500
			Tap 286,873
			信息框 "选择巴西"
			delay 2000
			循环比色点击 "国家确定", "54|363|FFFFFF,54|346|6EDC25,53|390|4E9510,228|470|69D524,323|565|386AFF,346|667|6DDA25,300|474|3B3B3B,375|700|D8D9D9", 372,680, 1500, 3000
			exit do
		Else
			信息框 "还没国家界面"
			delay 3000
		End If
	Loop
End Function


Function 年月日界面
	Do
		If CmpColorEx("514|324|232323,157|364|69D524,150|372|69D524,175|520|6AD422,319|744|C6EEBC,422|649|FFFFFF",0.9) = 1 Then
			信息框 "进入年月日界面"
			Delay 2500
			Tap 280,601
			ShowMessage "年月日选择"
			Delay 4000
			touchDown(122,536,1) 
			delay 10 
			touchMove(122,1083,1)
			delay 10 
			TouchUp (1)
			Delay 300
			touchDown(122,536,1) 
			delay 10 
			touchMove(122,1083,1)
			delay 10 
			TouchUp (1)
			Delay 300
			touchDown(122,536,1) 
			delay 10 
			touchMove(122,1083,1)
			delay 10 
			TouchUp (1)			
			Delay 300
			touchDown(122,536,1) 
			delay 10 
			touchMove(122,1083,1)
			delay 10 
			TouchUp (1)			
			Delay 300
			touchDown(122,536,1) 
			delay 10 
			touchMove(122,1083,1)
			delay 10 
			TouchUp (1)				
			
			
			信息框 "下拉完毕"
			Delay 3000
			Tap 389,744
			Delay 500
			Tap 389,744
			Delay 2500
			Tap 280,731
			Delay 3500
			Tap 377,687
			信息框 "年月日ok了"
			exit do
		Else
			信息框 "还没年月日界面"
			delay 4000
		End If
	Loop
End Function


//暂时不用
//Function 点击来开始继承界面  
//	Do
//		If CmpColorEx("404|75|FE9E46,261|144|FEFEFE,253|95|07CEFE,109|93|07CEFE,56|154|C66307,356|883|FEF8EF,470|876|FE842E,269|874|D15A16,236|884|FEF8EF",0.9) = 1 Then
//			信息框 "点击来开始界面"
//			Delay 2500
//			Tap 270,884 
//			信息框 "选择全新开始"
//			Delay 4000
//			Tap 284, 686
//			Delay 4000
//			Tap 286, 648
//			Delay 3000
//			Exit Do
//		Else 
//			If CmpColorEx("404|75|FE9E46,261|144|FEFEFE,253|95|07CEFE,109|93|07CEFE,56|154|C6640B,356|883|FE9E46,470|876|FEFEFE,269|874|FEFEFE,236|884|FE9E46", 0.9) = 1 Then 
//				信息框 "点击来开始界面"
//				Delay 2500
//				Tap 270, 884
//				Delay 4000
//				Tap 284, 686
//				Delay 4000
//				Tap 286, 648
//				Delay 3000
//				Exit Do
//			Else	
//				信息框 "没到点击来开始界面"
//				Delay 8000
//			End if
//		End If
//	Loop
//End Function


Function 请求并填写继承码 
	delay 3000
	X=Url.HttpGet({"url":"http://121.43.98.207:47876/get-credentials"})     // 内置10秒超时
	TracePrint X
	DIM MyString 
	MyString = Split(X,":")
	TracePrint MyString(0) 
	TracePrint MyString(1) 
	TracePrint MyString(2)
	p = Left(MyString(1), 8)
	TracePrint p
	p2 = Right(p,6)
	TracePrint p2
	u = Left(MyString(2), 18)
	TracePrint u
	u2 = Right(u, 16)
	TracePrint u2
	
	
	delay 2500
	Tap 265, 523
	Delay 2500
	InputText u2
	Delay 2500
	Tap 424, 422
	Delay 2500
	Tap 285, 675
	Delay 2500
	InputText p2
	Delay 2500
	Tap 424, 422
	Delay 2500
End Function


Function 点击来开始
	Do
		If CmpColorEx("404|75|FE9E46,261|144|FEFEFE,253|95|07CEFE,109|93|07CEFE,56|154|C66307,356|883|FEF8EF,470|876|FE842E,269|874|D15A16,236|884|FEF8EF",0.9) = 1 Then
			信息框 "点击来开始界面"
			Delay 2500
			Tap 270,884 
			信息框 "选择全新开始"
			Exit Do
		Else 
			If CmpColorEx("404|75|FE9E46,261|144|FEFEFE,253|95|07CEFE,109|93|07CEFE,56|154|C6640B,356|883|FE9E46,470|876|FEFEFE,269|874|FEFEFE,236|884|FE9E46", 0.9) = 1 Then 
				信息框 "点击来开始界面"
				Delay 2500
				Tap 270, 884
				Delay 4000
				Exit Do
			Else	
				信息框 "没到点击来开始界面"
				Delay 8000
			End if
		End If
	Loop
End Function



Function 条款界面2
	Do
		If CmpColorEx("359|204|6AD421,513|185|222323,435|890|C6EDBD,209|415|E7E7E7,455|399|FEFEFE,84|535|CACCCC,173|886|555555,226|918|D8D9D9,280|650|FEFEFE",0.9) = 1 Then
			信息框 "进入条款界面"
			Delay 4000
			Tap 167,384
			delay 4000
			条款开关 
			Delay 4000
			Tap 394,378
			delay 4000
			条款开关 
			Delay 3000
			Tap 81,476
			Delay 2000
			Tap 81, 532
			Delay 2000
			Tap 81,759
			Delay 2500
			Tap 392,873
			信息框 "条款界面完成"
			Delay 4000
			信息框 "用户咨询使用"
			Tap 277,785
			exit Do
		Else
			信息框 "还没条款界面"
			delay 4000
		End If
	Loop
End Function


Function 条款开关
	do 
		If CmpColorEx("268|123|6BD724,477|121|F6F6F6,283|967|D8D9D9,281|929|DADBDB,288|935|555555,267|933|555555",0.9) = 1 Then 
			信息框"识别到了开关"
			Delay 2000
			Tap 276,936
			Exit Do
		Else 
			信息框 "没识别到开关"
			Delay 4000
		end if 
	Loop	
End Function



Function 进行更新
	do 
		If CmpColorEx("184|469|3A3A3A,243|535|FEFEFE,208|660|FEFEFE,365|662|FEFEFE,185|694|D8D9D9,395|696|D8D9D9,251|567|555555,365|657|FEFEFE",0.9) = 1 Then 
			信息框"识别到了进行更新"
			Delay 2000
			Tap 382,660
			Exit Do
		Else 
			信息框 "没识别到进行更新"
			Delay 8000
		end if 
	Loop	
End Function






Function 回到主界面可能不知不觉成长
  do 
    If CmpColorEx("54|1029|486EF2,54|1043|486EF2,224|1043|70CA1F,244|1040|70CA1F,473|1028|FEA048,488|1040|FEA048,361|915|6DD924,336|48|1CA8FE",0.9) = 1 Then
      信息框 "成功回到主界面"
      Delay 4500
      exit do
    Else
      信息框 "还没到主界面"
      Delay 2500
      If CmpColorEx("59|167|FEFEFE,67|162|FEFEFE,74|166|6BD724,111|166|FEFEFE,248|571|6AD421,253|163|FEFEFE,313|323|518CFE,282|914|D8D9D9,315|886|6BD924", 0.9) = 1 Then 
      	信息框 "不知不觉成长了"
      	Delay 1500
      	Tap 273, 880
      	delay 4500
      	exit do
      Else 
      	信息框 "还没到主界面"
      	delay 2500
      end If
    End If
  loop
End Function







Function 填写ID
	Do
		If CmpColorEx("54|297|FEFEFE,61|301|FEFEFE,110|292|FEFEFE,91|298|FEFEFE,329|386|3A3A3A,351|518|E7E7E7,334|382|3A3A3A,457|470|6AD421", 0.9) = 1 Then 
			信息框 "识别到了名字"
			Delay 2500
			Tap 257,483
			Delay 3000
			InputText "daydream"   //ID填好了
			信息框 "id取号了"
			Delay 2000
			Tap 452,694
			Delay 1000
			Tap 452,694
			Delay 2000
			tap 280,737 //是
			Delay 3000
			tap 374,664 //是
			Delay 1000
			tap 374,664 //是
			exit do
		Else 
			信息框 "没识别到ID界面"
			delay 5000
		End If
	Loop
End Function

Function 皮卡丘还有苹果
If CmpColorEx("272|593|FDFDFD,273|606|FDFDFD,273|623|FDFDFD,266|617|3278C1,288|608|FDFDFD,254|608|FDFDFD,267|616|3278C1", 0.9) = 1 Then 
	Delay 300
	tap 263,703  //点击皮卡丘
	Delay 5000
	FindMultiColor 105,730,465,912,"0E29FD","6|0|0E29FD,0|3|0E29FD", 0, 0.9, intX, intY
	If intx > -1 and inty > -1 Then 
		delay 500
		Tap intX, intY
	End If
	FindMultiColor 105,730,465,912,"1927FD","6|0|1927FD,0|3|1927FD", 0, 0.9, intX, intY
	If intx > -1 and inty > -1 Then 
		delay 500
		Tap intX, intY
	End If
	FindMultiColor 105,730,465,912,"1729EF","6|0|1729EF,0|3|1729EF", 0, 0.9, intX, intY
	If intx > -1 and inty > -1 Then 
		delay 500
		Tap intX, intY
	End If	
Else 
	delay 100
End If
End Function




Function 超级球
Do
    FindMultiColor 0,187,520,935, "8674FE","0|7|8674FE,8|2|8674FE", 0, 1, intX, intY
    If intx > -1 and inty > -1 Then
        TracePrint intx,inty
        信息框 "找到了lv1"
        Delay 100
        Tap intx + 60, inty + 100
        delay 200
        Tap intx + 20, inty + 100
        Delay 200
        Tap intx + 100, inty + 150
        Delay 4000
        可能弹窗
        循环比色点击 "超级纱布蕾", "427|921|6DD923,372|931|69D723,415|949|D8D9D9,143|908|B3F8FE,106|918|FE9B40", 401, 931, 3000, 6000
        Delay 4000 
        循环比色点击 "第2个之后1", "108|770|FFF36E,71|800|5475FF,105|816|6AD424,295|826|FFFFFF,242|892|386AFF,202|939|353535,158|933|353535,461|1005|6AD424", 426,985, 5000, 6000
        Delay 3000
        循环比色点击 "第2个之后2", "109|772|FFF36E,94|777|FFF36E,72|798|5475FF,117|821|6AD424,272|935|386AFF,295|942|353535,460|1004|6AD424,357|898|353535", 426,985, 6000, 6000
        Delay 5000
        循环比色点击 "第2个之后3", "71|234|FF9F49,386|300|7765FE,102|776|FFF36E,72|799|5475FF,324|826|6AD424,313|899|353535,291|937|353535,299|936|353535,461|1004|6AD424", 426, 985, 5000, 6000
        Delay 4000  
        Tap 448,1027  //结束
        Delay 4000
        Tap 383, 700
        Delay 4000
        循环比色点击 "结束之后博士", "389|491|FFF36E,168|660|5475FF,347|528|FFF9DB,321|789|6AD424,291|929|353535,397|898|353535,208|935|353535,330|895|353535", 426, 985, 3000, 6000
		Exit Do
	Else
        delay 3000
        向左 
        向左 
        向左
        向左
        向左
        FindMultiColor 0,187,520,935, "8674FE","0|7|8674FE,8|2|8674FE", 0, 1, intX, intY
        If intx > -1 and inty > -1 Then
            TracePrint intx,inty
            信息框 "找到了lv1"
            Delay 100
            Tap intx + 60, inty + 100
            delay 200
            Tap intx + 20, inty + 100
            Delay 200
            Tap intx + 100, inty + 150
            Delay 4000
            可能弹窗
            循环比色点击 "超级纱布蕾", "427|921|6DD923,372|931|69D723,415|949|D8D9D9,143|908|B3F8FE,106|918|FE9B40", 401, 931, 3000, 6000
            Delay 4000 
            循环比色点击 "第2个之后1", "108|770|FFF36E,71|800|5475FF,105|816|6AD424,295|826|FFFFFF,242|892|386AFF,202|939|353535,158|933|353535,461|1005|6AD424", 426,985, 5000, 6000
            Delay 3000
            循环比色点击 "第2个之后2", "109|772|FFF36E,94|777|FFF36E,72|798|5475FF,117|821|6AD424,272|935|386AFF,295|942|353535,460|1004|6AD424,357|898|353535", 426,985, 6000, 6000
            Delay 5000
            循环比色点击 "第2个之后3", "71|234|FF9F49,386|300|7765FE,102|776|FFF36E,72|799|5475FF,324|826|6AD424,313|899|353535,291|937|353535,299|936|353535,461|1004|6AD424", 426, 985, 5000, 6000
            Delay 4000  
            Tap 448,1027  //结束
            Delay 4000
            Tap 383, 700
            Delay 4000
            循环比色点击 "结束之后博士", "389|491|FFF36E,168|660|5475FF,347|528|FFF9DB,321|789|6AD424,291|929|353535,397|898|353535,208|935|353535,330|895|353535", 426, 985, 3000, 6000
			Exit Do
		Else
            delay 3000
            向右
            向右 
            向右
            向右 
            向右 
            向右 
            FindMultiColor 0,187,536,935, "8674FE","0|7|8674FE,8|2|8674FE", 0, 1, intX, intY
            If intx > -1 and inty > -1 Then
                TracePrint intx,inty
                信息框 "找到了lv1"
                Delay 100
                Tap intx + 60, inty + 100
                delay 200
                Tap intx + 20, inty + 100
                Delay 200
                Tap intx + 100, inty + 150
                Delay 4000
                可能弹窗
                循环比色点击 "超级纱布蕾", "427|921|6DD923,372|931|69D723,415|949|D8D9D9,143|908|B3F8FE,106|918|FE9B40", 401, 931, 3000, 6000
                Delay 4000 
                循环比色点击 "第2个之后1", "108|770|FFF36E,71|800|5475FF,105|816|6AD424,295|826|FFFFFF,242|892|386AFF,202|939|353535,158|933|353535,461|1005|6AD424", 426,985, 5000, 6000
                Delay 3000
                循环比色点击 "第2个之后2", "109|772|FFF36E,94|777|FFF36E,72|798|5475FF,117|821|6AD424,272|935|386AFF,295|942|353535,460|1004|6AD424,357|898|353535", 426,985, 6000, 6000
                Delay 5000
                循环比色点击 "第2个之后3", "71|234|FF9F49,386|300|7765FE,102|776|FFF36E,72|799|5475FF,324|826|6AD424,313|899|353535,291|937|353535,299|936|353535,461|1004|6AD424", 426, 985, 5000, 6000
                Delay 4000  
                Tap 448,1027  //结束
                Delay 4000
                Tap 383, 700
                Delay 4000
                循环比色点击 "结束之后博士", "389|491|FFF36E,168|660|5475FF,347|528|FFF9DB,321|789|6AD424,291|929|353535,397|898|353535,208|935|353535,330|895|353535", 426, 985, 3000, 6000         
				Exit Do
			Else
				delay 3000
			end if
        end if
    end If
loop
end Function

Function 第2次找new宝可梦深深
	Delay 3000  
	缩放界面 
	缩放界面
	向左 
	向左 
	向左 
	向左
	FindMultiColor 0,150,536,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
	If intX > -1 And intY > -1 Then 
		信息框"找到new"
		Delay 2500
		TracePrint intx, inty
		Tap intx, inty + 40
		Delay 500
		tap intx+20 , inty +60
		Delay 500
		Tap intx, inty + 75
		Delay 500
		Tap intx, inty + 120
		delay 3000
		循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
		Delay 3000
		循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
		Delay 3000
		循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
		Delay 3000
		循环比色点击 "第二次博士1","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,232|930|386AFF,211|937|386AFF,461|1005|6AD424,466|1009|6AD424,321|902|353535", 459,1004, 5000, 5000 
		delay 3000
		循环比色点击 "第二次博士2","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,122|971|386AFF,186|965|353535,461|1005|6AD424,466|1009|6AD424,209|964|353535", 459,1004, 7000, 5000 
		Delay 3000
		循环比色点击 "深深第二次博士3","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,338|938|386AFF,397|939|353535,424|935|353535,460|1004|6AD424", 459,1004, 6000, 5000  
		delay 3000
		循环比色点击 "深深第二次博士4","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,158|901|353535,158|932|386AFF,295|942|353535,460|1004|6AD424", 459,1004, 6000, 5000 
		Delay 3000
		循环比色点击 "深深第二次博士5","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,276|936|386AFF,361|940|353535,202|936|386AFF,460|1004|6AD424", 459,1004, 8000, 5000  
		delay 3000
		循环比色点击 "深深第二次博士6","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,335|931|353535,275|938|353535,174|896|353535,460|1004|6AD424", 459,1004, 4000, 5000 
	Else 
		信息框 "没找到new" 
		向右 
		向右 
		向右 
		向右 
		向右
		FindMultiColor 0,150,536,935,"458CFE", "4|0|458CFE,1|6|458CFE,6|0|458CFE",0,1,intX,intY
		If intX > -1 And intY > -1 Then 
			信息框"找到new"
			Delay 2500
			TracePrint intx, inty
			Tap intx, inty + 40
			Delay 500
			tap intx+20 , inty +60
			Delay 500
			Tap intx, inty + 75
			Delay 500
			Tap intx, inty + 120
			delay 3000
			循环比色点击 "绿色ok", "275|934|FEFEFE,267|936|FEFEFE,275|940|FEFEFE,308|944|6BD824,228|935|6DDA24,428|727|FEFEFE", 273,943, 2000, 5000
			Delay 3000
			循环比色点击 "睡姿继续","207|965|FEFEFE,323|965|FEFEFE,334|967|FECEC1,113|935|FEFEFE,423|937|FEFEFE,212|778|FECD95,300|620|FECD95,255|934|FEF8F6", 268,931, 2000, 5000 
			Delay 3000
			循环比色点击 "白色ok","449|1055|5776FE,67|1058|5776FE,302|605|6AD421,322|1062|F6F6F6,275|1059|444444,267|1058|444444,262|1059|F6F6F6", 275,1061, 2000, 5000
			Delay 3000
			循环比色点击 "第二次博士1","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,232|930|386AFF,211|937|386AFF,461|1005|6AD424,466|1009|6AD424,321|902|353535", 459,1004, 5000, 5000 
			delay 3000
			循环比色点击 "第二次博士2","389|529|FFF36E,385|536|FFF36E,336|576|FFF9DB,329|823|6AD424,122|971|386AFF,186|965|353535,461|1005|6AD424,466|1009|6AD424,209|964|353535", 459,1004, 7000, 5000 
			Delay 3000
			循环比色点击 "深深第二次博士3","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,338|938|386AFF,397|939|353535,424|935|353535,460|1004|6AD424", 459,1004, 6000, 5000  
			delay 3000
			循环比色点击 "深深第二次博士4","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,158|901|353535,158|932|386AFF,295|942|353535,460|1004|6AD424", 459,1004, 6000, 5000 
			Delay 3000
			循环比色点击 "深深第二次博士5","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,276|936|386AFF,361|940|353535,202|936|386AFF,460|1004|6AD424", 459,1004, 8000, 5000  
			delay 3000
			循环比色点击 "深深第二次博士6","71|252|FF9F49,240|195|BABABA,236|484|FC8844,108|771|FFF36E,343|831|6AD424,335|931|353535,275|938|353535,174|896|353535,460|1004|6AD424", 459,1004, 4000, 5000 
		Else 
			信息框 "没找到new"
		End If
	end if
End Function