This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Best Practice: | |
; | |
; - Start new applition every session you want to do your task | |
; (because this application uses multi tabs, choose wrong tab then click with absolute coordinates ==> you fail) | |
; Finish session => close application to release resource | |
; - Fix position of your application before doing anything | |
; - Use Sleep(500) to debug (view step by step every code) | |
; - Run autoit application with UAC(Administrator) ìf needs (because ISD-VPE2100 required UAC(Administrator), | |
; so to avoid permission problems, run your autoit application with the same permission with ISD-VPE2100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkUnread() { | |
console.log('checkUnread run'); | |
var msg = document.getElementById("message-tab"); | |
var img = msg.querySelector(".tab-red-dot"); | |
if ((img == null) || (img == undefined)) { | |
// rambox.clearUnreadCount(); | |
document.title = originalTitle; | |
return; | |
} | |
var src = img.attributes["src"]; |