xgjing1220
級別: 探索解密
![]() |
'鼠標一定時間無操作后執行 時間差值 = !TimeSpanGetMinutes(!TimeGetSpan(!TimeGetCurrentTime(),!GetLastMouseActionTime())) ret1 = !strComp("負責人",!GetCurrentUser()) ret2 = !strComp("操作員",!GetCurrentUser()) if ret1 = 0 or ret2 = 0 then '判定當前的用戶 if 時間差值>=5 then 用戶窗口.主頁面.Open( ) !SendKeys("{ENTER}") !LogOff() endif endif IF 時間差值>=2 AND 用戶登錄狀態=1 THEN 用戶登錄狀態=0 !SendKeys("{ESC}") endif |
---|---|
|