Jump to content

Need some help automating a task - not sure if it's possible/plausible


Dainish
 Share

Recommended Posts

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.

post-76005-0-11642300-1351993312_thumb.j

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

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

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 Gude
How 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

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.html

Maybe 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

Ahh, ok, could very well have been sandy though, and you did say "recently" :P

Fair enough :P

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...