Dainish Posted November 4, 2012 Share Posted November 4, 2012 Hello, good folks of the AutoIT forum! I've come to ask for some help with automating something that's long been a detriment to my quality of life while at work. I work in Security, and rely on an alarm monitoring program called Lenel OnGuard. I am the Security supervisor of a massive, multi-billion dollar data center for a large company, and as such I get *many* alarms, which I need to deal with immediately upon receiving them. I mention this because there is now a problem with the software keeping me from doing my job to the best of my ability. Recently, after a server update, the OnGuard application displays COUNTLESS "Communications Lost" and "Communications Restored" alarms. The application generates so many of these alarms that, often times, I can't even see the "real" alarms that might be showing somewhere further down in the window. Currently, the only way to get rid of these "communications alarms" is to click on them (or shift+click on a large group of them) and press ctrl+F12 to "acknowledge" them and remove them from the window. As you may have guessed, I am looking for a way to automate this process. I have two workstations, each with the same software installed, and each showing the same alarms. Ideally, I'd like a script that runs constantly (until I manually stop it), automatically acknowledging all of these communications alarms. Here is a screenshot of what I'm talking about. In this image, the "communications restored" alarm is what I want to get rid of. Everything else is legitimate. Anyone know how I'd go about doing this, or even if it's possible/plausible? Thanks in advance for your help. Link to comment Share on other sites More sharing options...
Danp2 Posted November 4, 2012 Share Posted November 4, 2012 Have you tried running AU3Info to see what type of controls are in use and whether the text within the control can be detected? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Dainish Posted November 4, 2012 Author Share Posted November 4, 2012 Have you tried running AU3Info to see what type of controls are in use and whether the text within the control can be detected?Yes - Regrettably, au3info reports that the entire "main alarm monitor" window only contains a single object (of the class SysListView32) and does not detect the individual alarms as controls.*Disclaimer: I am very inexperienced in working with GUI and control automation in AutoIT, so I apologize if I'm not giving the correct information, or anything like that. Link to comment Share on other sites More sharing options...
BrewManNH Posted November 4, 2012 Share Posted November 4, 2012 Look for the _GUICtrlLIstView_* functions in the help file. The control appears to be a listview and those functions should help you get started to see if they'll be able to interact with the window. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Danp2 Posted November 4, 2012 Share Posted November 4, 2012 Search the forums for SysListView32. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Werty Posted November 4, 2012 Share Posted November 4, 2012 Sounds more like Hurricane Sandy in the works than due to server upgrade, seeing you are on the eastern seaboard.Try reading this http://www.huffingtonpost.com/2012/10/31/cell-phone-internet-hurricane-sandy_n_2052431.htmlMaybe try and live with it for a couple of days and see if it's gets better when everything is restored from the Sandy aftermath. Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
Dainish Posted November 4, 2012 Author Share Posted November 4, 2012 It definitely doesn't have anything to do with Sandy, as it's been happening for 3 months (and I am located in Washington state, as are the servers powering the application). I do appreciate the input, though! Link to comment Share on other sites More sharing options...
Werty Posted November 4, 2012 Share Posted November 4, 2012 Ahh, ok, could very well have been sandy though, and you did say "recently" Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
Dainish Posted November 4, 2012 Author Share Posted November 4, 2012 Ahh, ok, could very well have been sandy though, and you did say "recently" Fair enough I do genuinely appreciate everyone's input, so thank you!Now, as others have suggested, I'm looking into SysListView32. It looks like I may be able to accomplish something here, but I'm still very new at working with GUI controls; I may come back for more assistance.This forum rocks! Is there a way to thank someone other than "liking" their post? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 4, 2012 Moderators Share Posted November 4, 2012 Dainish,Is there a way to thank someone other than "liking" their post?You could always donate something towards the forum server costs - every little helps. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now