---
# System prepended metadata

title: ROX每日任务
tags: [按鍵精靈 2014.6]

---

---
tags: 按鍵精靈 2014.6
---
[YouTube]()
# ROX每日任务
一、[按鍵精靈 2014.6 雷電模擬器 Windows10(簡體) 說明與載點](https://hackmd.io/@1MgXZJtMQgOudU366MROaw/BkGb8UvF0)

## 程式码
```
[General]
SyntaxVersion=2
BeginHotkey=97
BeginHotkeyMod=2
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=98
StopHotkeyMod=2
RunOnce=1
EnableWindow=
MacroID=cd8918b9-d434-41f1-91bd-40980a9c3c2a
Description=BBB
Enable=0
AutoRun=0
[Repeat]
Type=0
Number=1
[SetupUI]
Type=1
QUI=Form1
[Relative]
SetupOCXFile=
[Comment]

[UIPackage]
UEsDBBQAAgAIAExhcVmMO4g99RkAAAiaAQAJABEAVUlQYWNrYWdlVVQNAAce3TlnHt05Zx7dOWftXQd8VMXznxdqAGkKIliwKxaSEJqiQhA0CARJUMQakCYhwRCqiNg7ooK9YcGCXVBRBOyKqNiwK9h7rz8L/+/cuyMvkPy92Tdk7sKtzmcTcjvf2/d29+13Zt5sLfLLypebrZ57X+s1tF7Zn2rRv2vTqW7g39IgXuyXpv7vtSH/rl27NvbPMyBrUyVpyj8QvocdIXyv60DqQdIh9SENIJtBGkIaQRr7t56aQJpBNoc0h2wBaQlpAdkSshWkFaQ1ZBtIG8jWkG0hbSHbQbaH7AjZAbITZBfIzpBdIbtDdoO0g+wJ2QOyF6Q9ZG9IBiQLkgnpAOkEyYZ0hoyCdIV0gewD2Q+yL6RbZFwTdYccAOkB6QnJgRwI6Q3pBTkIkgs5GNIH0hdyCKQfJA/SHzIAMhByKCQfMghSADkMMhhyOOQIyFGQIZAjIUdDjoUcAzkOMhRSCBkGGQ45HjICMhoyEnIC5FpIEWQMZCykBFIMGQcZDzkRUgopg0yETIBMgkyBTIZMhUyDnAQ5GXIqZDrkFMhpkT6U4L8y3JNe0FsGXVNIUlpixMTGkvcfn2076Zk587q869XidWKa/2+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vD/P5s89A35+Qd5KEfzxozD8eUuYfq6HvQ8H6+7Ay/1gDfZ8J8Bcpnv+a2r9TxHbA+/eBDu2t889o8E9eUd4SjL9HjP2vG4N/fC7o/6PK/OM96PtEgL9YmX98BH3vC/AfM+YfS5T5x6fQ97ag/0uN+cey1Pmv60pC7N+z3NuHff5q8M8P8CU+Foz/x439r08Y848njfnHU5XwD9f4SeYfMeyvk4R/PG3MP55R5h8/Qt8Pgvn3rDL/+An6fhfgP6fs//gG+r4U4D9fA/effwj6v1yR/1kXDf42hHz+NtWhfSr/T5r3LQbRr4Lx94Iy//gZ+r4T4K8w5h8vKvOP36DvK0H/XzLmHy8r+z++h75fBP1fabz/fMV4//lqDcr/kxD8LYnPj7DgH69Vwj9cswhy/NUX0NcgjejvJOEfrxvzjzeU+Ucarr2XFv/6u0qZf9QCdn0B/pvK/OMf6Puf4PnzVgLxD+uisX/n94Z4/36jQ/tNPf+AFv9MF8y/t5X9H//yeibAf0eZf9RmbMH8f9eYf7ynzD/qof9/Cfr/vjH/+ECZf/D/dQTj70Nj/rE6wD9S+3e034Tzj1nwzzXG/o+PKuEfnRyvX9D/sVla5Z9JNP7xsTH/+ESZf2yO695csP5+qsw/tgD2VgL8z5T5R2NgNxTgf14D/R+tBf3/Qnn/2QTYWwrwv1Tef7YAdlMB/leB/WfYosHf7iCfvy13aJ/K/xBu/2bBP75W5h+tMPYbCcb/N8b841tl/tEMfW8p6P93xvzje2P/xw/G+88flfMvaOZzdsCmVEne8n9QSwECFwsUAAIACABMYXFZjDuIPfUZAAAImgEACQAJAAAAAAAAAAAAAIAAAAAAVUlQYWNrYWdlVVQFAAce3TlnUEsFBgAAAAABAAEAQAAAAC0aAAAAAA==


[Script]
HwndEx = Plugin.Window.SearchEx("LDPlayerMainFrame", "", 0)
Dim MyArray   
MyArray = Split(HwndEx, "|")
Global sta(99)
For i=0 To UBound(MyArray)-1
	sText = Plugin.Window.GetText(MyArray(i)) //取得標題
	sta(i) = sText
Next
Global wx(99)
Global wy(99)
Global ww(99)
Global wh(99)
For i=0 To UBound(MyArray)-1
	sRect = Plugin.Window.GetClientRect(MyArray(i)) //取得客區位址大小
	dim ma
	ma = Split(sRect, "|") 
	wx(i) = ma(0)
	wy(i) = ma(1)
	ww(i) = ma(2)
	wh(i) = ma(3)
Next

Global cl(99)
For i = 0 To UBound(MyArray) - 1
	cl(i) = sta(i)&"-"&MyArray(i)&"-"&wx(i)&"-"&wy(i)&"-"&ww(i)&"-"&wh(i)
Next

For i = 0 To UBound(MyArray) - 1
	If i=0 Then
		Form1.ComboBox1.List = cl(i)
	ElseIf i = UBound(MyArray) - 1 Then
		Form1.ComboBox1.List = "|" + Form1.ComboBox1.List + cl(i)
	Else 
		Form1.ComboBox1.List = "|" + Form1.ComboBox1.List + cl(i)
	End If
Next

Global cli
Event Form1.ComboBox1.SelectChange   
	cli = Form1.ComboBox1.ListIndex
	TracePrint cli
	Dim cl
	cl = Split(Form1.ComboBox1.List, "|")
	Dim clt
	clt = Split(cl(cli), "-")
	Form1.InputBox1.Text = clt(2) + "|" +clt(3) + "|480" + "|281"
End Event

Global ob
ob = -1
Event Form1.OptionBox1.Click
	ob = 0
	TracePrint ob
End Event
Event Form1.OptionBox2.Click
	ob = 1
	TracePrint ob
End Event
Event Form1.OptionBox3.Click
	ob = 2
	TracePrint ob
End Event
Event Form1.OptionBox4.Click
	ob = 3
	TracePrint ob
End Event
Event Form1.OptionBox5.Click
	ob = 4
	TracePrint ob
End Event

Event Form1.Button1.Click
	Dim cl
	cl = Split(Form1.ComboBox1.List, "|")
	Dim clt
	clt = Split(cl(cli), "-")
	Call Plugin.Window.Move(CLng(clt(1)), CLng(clt(2)), CLng(clt(3)))
	Dim it
	it = Split(Form1.InputBox1.Text,"|")
	Call Plugin.Window.Size(clt(1), CLng(it(2)), CLng(it(3)))
End Event

Global dl
dl = CLng(Form1.InputBox2.Text)
Global state
state = 0
//防止重复执行
Global isrunning
isrunning = False
Event Form1.Button2.Click //開始
	state = 0
	isrunning = False
	Form1.Button3.Caption = "暫停"
	If ob = 0 Then 
		Form1.Timer0.Interval = 100
    	Form1.Timer0.Enabled = True
	ElseIf ob = 1 Then
		Form1.Timer1.Interval = 100
    	Form1.Timer1.Enabled = True
	ElseIf ob = 2 Then
		Form1.Timer2.Interval = 100
    	Form1.Timer2.Enabled = True
	ElseIf ob = 3 Then
		Form1.Timer3.Interval = 100
    	Form1.Timer3.Enabled = True
	ElseIf ob = 4 Then
		Form1.Timer4.Interval = 100
    	Form1.Timer4.Enabled = True
	End If
End Event
Event Form1.Button3.Click //暫停
	If Form1.Button3.Caption = "暫停" Then 
		state = 1
		isrunning = True
		Form1.Button3.Caption = "繼續"
	Else 
		state = 0
		isrunning = False
		Form1.Button3.Caption = "暫停"
	End If
End Event
Event Form1.Button4.Click //終止
	state = - 1 
	isrunning = True

    Form1.Timer0.Enabled = False
    Form1.Timer1.Enabled = False
    Form1.Timer2.Enabled = False
    Form1.Timer3.Enabled = False
    Form1.Timer4.Enabled = False
    state = 0
	Form1.Button3.Caption = "暫停"
End Event


Function CheckHotKeys()

    If GetLastKey() = 17 Then 
		If Form1.Button3.Caption = "暫停" Then 
			state = 1
			isrunning = True
			Form1.Button3.Caption = "繼續"
		Else 
			state = 0
			isrunning = False
			Form1.Button3.Caption = "暫停"
		End If
    End If
    
    If GetLastKey() = 18 Then
		state = - 1 
		isrunning = True
	
    	Form1.Timer0.Enabled = False
    	Form1.Timer1.Enabled = False
    	Form1.Timer2.Enabled = False
    	Form1.Timer3.Enabled = False
    	Form1.Timer4.Enabled = False
    	
    	state = 0
		Form1.Button3.Caption = "暫停"
    End If
    
End Function

Event Form1.Timer0.Timer //主
	//防止重复执行
	If isrunning Then Exit Event
	isrunning = True
	//快捷鍵偵測
    Call CheckHotKeys()
    If state = 0 Then 
    	//程式開始
    	//程式結束
    End If
    If state = -1 Then
        Timer0.Enabled = False
    End If
    //防止重复执行
    isrunning = False
End Event
Event Form1.Timer1.Timer //商
	//防止重复执行
	If isrunning Then Exit Event
	isrunning = True
	//快捷鍵偵測
    Call CheckHotKeys()
	Dim cl
	cl = Split(Form1.ComboBox1.List, "|")
	Dim clt
	clt = Split(cl(cli), "-")
	Dim it
	it = Split(Form1.InputBox1.Text,"|")
    If state = 0 Then 
    	//程式開始
    	// it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3) //全
    	// it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3) //左半
    	// it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3) //右半
    	FindColorEx it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3),"D558B7",0,0.9,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX, intY
			LeftClick 1
		End If
		FindColorEx it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3),"AAF5DC",0,0.9,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX, intY
			LeftClick 1
		End If
		FindPic it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\AA01.bmp",0.5,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX + 107, intY + 18
			LeftClick 1
		End If
				FindPic it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\AA03.bmp",0.5,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX+38, intY+19
			LeftClick 1
		End If
		FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\AA02.bmp",0.5,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX + 85, intY + 12
			LeftClick 1
		End If
    	//程式結束
    End If
    If state = -1 Then
        Timer1.Enabled = False
    End If
    //防止重复执行
    isrunning = False
End Event
Event Form1.Timer2.Timer //看
	//防止重复执行
	If isrunning Then Exit Event
	isrunning = True
	//快捷鍵偵測
    Call CheckHotKeys()
	Dim cl
	cl = Split(Form1.ComboBox1.List, "|")
	Dim clt
	clt = Split(cl(cli), "-")
	Dim it
	it = Split(Form1.InputBox1.Text,"|")
    If state = 0 Then 
    	//程式開始
    	// it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3) //全
    	// it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3) //左半
    	// it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3) //右半
//    	XY=Plugin.Color.FindMultiColor(it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3),"CE54AF","0|1|D456B3,0|2|CD54AE,0|3|D155B2",0.5)
//		ZB = InStr(XY,"|")
//		intX = Clng(Left(XY, ZB - 1)) : intY = Clng(Right(XY, Len(XY) - ZB))
//		If intX > 0 And intY > 0 Then 
//			MoveTo intX, intY
//			LeftClick 1
//		End If

		FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC05.bmp",0.5,intX,intY
		If intX > 0 And intY > 0 Then 

		Else 
			FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC04.bmp",0.5,intX,intY
			If intX > 0 And intY > 0 Then 
				MoveTo intX+21, intY+9
				LeftClick 1
			Else 
				FindPic 0,0,1920,1080,"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC03.bmp",0.5,intX,intY
				If intX > 0 And intY > 0 Then 
					MoveTo intX+10, intY+7
					LeftClick 1
				Else 
					FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC02.bmp",0.5,intX,intY
					If intX > 0 And intY > 0 Then 
						MoveTo intX+14, intY+5
						LeftClick 1
					Else 
						FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC01.bmp",0.5,intX,intY
						If intX > 0 And intY > 0 Then 
							MoveTo intX+14, intY+53
							LeftClick 1
						Else 
							FindPic 0,0,1920,1080,"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\CC06.bmp",0.5,intX,intY
							If intX > 0 And intY > 0 Then 
								MoveTo intX, intY
								LeftClick 1
							Else 
								XY=Plugin.Color.FindMultiColor(it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3),"CE54AF","0|1|D456B3,0|2|CD54AE,0|3|D155B2",0.5)
								ZB = InStr(XY,"|")
								intX = Clng(Left(XY, ZB - 1)) : intY = Clng(Right(XY, Len(XY) - ZB))
								If intX > 0 And intY > 0 Then 
									MoveTo intX, intY
									LeftClick 1
									Delay dl*15
								End If
							End If
						End If
					End If
				End If
			End If
		End If


    	//程式結束
    End If
    If state = -1 Then
        Timer2.Enabled = False
    End If
    //防止重复执行
    isrunning = False
End Event
Event Form1.Timer3.Timer //公
	//防止重复执行
	If isrunning Then Exit Event
	isrunning = True
	//快捷鍵偵測
    Call CheckHotKeys()
	Dim cl
	cl = Split(Form1.ComboBox1.List, "|")
	Dim clt
	clt = Split(cl(cli), "-")
	Dim it
	it = Split(Form1.InputBox1.Text,"|")
    If state = 0 Then 
    	//程式開始
    	// it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3) //全
    	// it(0)+0,it(1)+0,it(0)+(it(2)/2),it(1)+it(3) //左半
    	// it(0)+(it(2)/2),it(1)+0,it(0)+it(2),it(1)+it(3) //右半
		FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\BB04.bmp",0.5,intX,intY
		If intX > 0 And intY > 0 Then 
			MoveTo intX+44, intY+18
			LeftClick 1
		Else 
			FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\BB03.bmp",0.5,intX,intY
			If intX > 0 And intY > 0 Then 
				MoveTo intX+88, intY+13
				LeftClick 1
			Else 
				FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\BB02.bmp",0.5,intX,intY
				If intX > 0 And intY > 0 Then 
					MoveTo intX+113, intY+18
					LeftClick 1
				Else 
    				FindPic it(0)+0,it(1)+0,it(0)+it(2),it(1)+it(3),"C:\Users\0976370081\Pictures\ROX\1280_720_DPI240\BB01.bmp",0.5,intX,intY
					If intX > 0 And intY > 0 Then 
						MoveTo intX+9, intY+5
						LeftClick 1
					End If
				End If
			End If
		End If
    	//程式結束
    End If
    If state = -1 Then
        Timer3.Enabled = False
    End If
    //防止重复执行
    isrunning = False
End Event
Event Form1.Timer4.Timer //魚
	//防止重复执行
	If isrunning Then Exit Event
	isrunning = True
	//快捷鍵偵測
    Call CheckHotKeys()
    If state = 0 Then 
    	//程式開始
    	//程式結束
    End If
    If state = -1 Then
        Timer4.Enabled = False
    End If
    //防止重复执行
    isrunning = False
End Event
```

## 界面
![image](https://hackmd.io/_uploads/B1c4SlPGke.png)
