• 新浪微博:
  • 微信 :
按键精灵电脑版
立即下载

软件版本:2014.05
软件大小:21.6M
更新时间:07-04

按键精灵安卓版
立即下载

软件版本:3.3.0
软件大小:62.5M
更新时间:5-24

按键精灵iOS版
立即下载

软件版本:1.3.3
软件大小:29.2M
更新时间:06-14

按键精灵Mac版
立即下载

软件版本:1.1.0
软件大小:12.3M
更新时间:12-29

快捷导航

登录 后使用快捷导航
没有帐号? 注册

登录 注册
发新话题 回复该主题

[问题] 這樣判斷座標區域的條件式能用芳尋寫嗎(function) [复制链接]

1#
do
If OPENX < 0 and OPENY < 0 then
TracePrint "開啟完畢"
Exit Do//唯一退出do迴圈停止尋找
Else
If ISOPENX > 甲AX And ISOPENX < 乙AX AND ISOPENY < 甲1AY Then
TracePrint "甲開啟"
If DATEDIFF("S", 甲opentime, NOW) >= 25 Then
TracePrint "甲當機"
Call Plugin.Window.Close(HWND甲)
甲OPEN = 0 : 甲opentime = ""
Delay ML
End If
Else
甲OPEN = 0 : 甲opentime = ""
TracePrint "未發現甲"&甲OPEN&"甲opentime"&甲opentime
End If
If ISOPENX > 乙AX And ISOPENX < 丙AX AND ISOPENY < 甲1AY Then
TracePrint "乙開啟"
If DATEDIFF("S", 乙opentime, NOW) >= 25 Then
TracePrint "乙當機"
Call Plugin.Window.Close(HWND乙)
乙OPEN = 0 : 乙opentime = ""
Delay 300
End If    
Else
乙OPEN = 0 : 乙opentime = ""
TracePrint "未發現乙"&乙OPEN&"乙opentime"&乙opentime
End If
If ISOPENX > 丙AX And ISOPENY < 甲1AY Then
TracePrint "丙開啟"
If DATEDIFF("S", 丙opentime, NOW) >= 25 Then
TracePrint "丙當機"
Call Plugin.Window.Close(HWND丙)
丙OPEN = 0 : 丙opentime = ""
Delay 300
End If    
Else
丙OPEN = 0 : 丙opentime = ""
TracePrint "未發現丙"&丙OPEN&"丙opentime"&丙opentime
End If
If ISOPENX > 甲1AX And ISOPENX < 乙1AX AND ISOPENY > 甲BY AND ISOPENY < 甲1BY Then
TracePrint "甲開啟"
If DATEDIFF("S", 甲opentime, NOW) >= 25 Then
TracePrint "甲當機"
Call Plugin.Window.Close(HWND甲)
甲1OPEN = 0 : 甲1opentime = ""
Delay 300
End If    
Else
甲1OPEN = 0 : 甲1opentime = ""
TracePrint "未發現甲1"&甲1OPEN&"甲1opentime"&甲1opentime
End If
If ISOPENX > 乙1AX And ISOPENX < 丙1AX AND ISOPENY > 甲BY AND ISOPENY < 甲1BY Then
TracePrint "乙1開啟"
If DATEDIFF("S", 乙1opentime, NOW) >= 25 Then
TracePrint "乙1當機"
Call Plugin.Window.Close(HWND乙1)
乙1OPEN = 0 : 乙1opentime = ""
Delay 300
End If    
Else
乙1OPEN = 0 : 乙1opentime = ""
TracePrint "未發現乙1"&乙1OPEN&"乙1opentime"&乙1opentime
End If
If ISOPENX > 丙1AX AND ISOPENY > 甲BY AND ISOPENY < 甲1BY Then
TracePrint "丙1開啟"
If DATEDIFF("S", 丙1opentime, NOW) >= 25 Then
TracePrint "丙1當機"
Call Plugin.Window.Close(HWND丙1)
丙1OPEN = 0 : 丙1opentime = ""
Delay 300
End If    
Else
丙1OPEN = 0 : 丙1opentime = ""
TracePrint "未發現丙1"&丙1OPEN&"丙1opentime"&丙1opentime
End If
End If
loop

发新话题 回复该主题