FindPic 0,0,1920,1080,"Attachment:\czw.bmp",0.9,czwX,czwY
If czwX > 0 And czwY > 0 Then
//MoveTo czwX, czwY
Delay 1000
End If
Event Form1.血量.SelectChange
Select Case Form1.ComboBox1.ListIndex
//索引项从0开始
Case 0
IfColor czwX + 80, czwY - 36, "010101", 0 Then
MoveTo czwX + 80, czwY - 36
KeyPress "6", 1
Delay 200
Else
End If
//Msgbox "你选中的下拉选项值是:1"
Case 1
IfColor czwX + 80, czwY - 26, "010101", 0 Then
MoveTo czwX + 80, czwY - 26
KeyPress "6", 1
Delay 200
Else
End If
//Msgbox "你选中的下拉选项值是:2"
Case 2
IfColor czwX + 80, czwY - 16, "010101", 0 Then
MoveTo czwX + 80, czwY - 16
KeyPress "6", 1
Delay 200
Else
End If
//Msgbox "你选中的下拉选项值是:3"
Case 3
IfColor czwX + 80, czwY - 6, "010101", 0 Then
MoveTo czwX + 80, czwY - 6
KeyPress "6", 1
Delay 200
Else
End If
//Msgbox "你选中的下拉选项值是:4"
Case 4
IfColor czwX + 80, czwY + 6, "010101", 0 Then
MoveTo czwX + 80, czwY + 6
KeyPress "6", 1
Delay 200
Else
End If
//Msgbox "你选中的下拉选项值是:5"
//判断为空
Case Else
Msgbox "没有选择任何值"
End Select
End Event
血量是下拉框的名称
追答Event Form1.血量.SelectChange
Select Case Form1.ComboBox1.ListIndex
//索引项从0开始
你这里是两个控件 还是一个控件?控件名称不一样。
我本意是通过下拉菜单来选择我要触发的下面的case ,是不是我名字用错了还是杂的
追答是
追问我是新手 改哪个名字呢?·
追答私信我吧