mdwerne Posted January 27, 2020 Share Posted January 27, 2020 (edited) Hello, I have an AutoIt application that's run about 30-50 times a day from a server, and my management is interested in knowing exactly how many times it's run per day, and per month...mainly to see trends in usage. Without doing the work for me, can anyone offer a suggestion (method or example) as to how I would keep track of an execution count variable that is updated from multiple machines? Again, per day and per month are the metrics I'm after...I don't mind doing the per year calculation. Thanks for any suggestions, -Mike Edited January 27, 2020 by mdwerne Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 27, 2020 Moderators Share Posted January 27, 2020 Event viewer would be the standard way. Have your script write out to the Event Log, with a specific event code. You can then write code to parse the event logs later and extract the data you're after. Look at the _eventlog_* functions in the help file, or do something as simple as: ShellExecute("EventCreate.exe", '/L Application /T Information /SO "Windows Installer" /ID 666 /D "Windows Installer 4.5 Installed Successfully"', "", "", @SW_HIDE) mdwerne 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Nine Posted January 27, 2020 Share Posted January 27, 2020 Look at SQLite udf. You could register every single executions then make all the aggregates you want easily after... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
mdwerne Posted January 27, 2020 Author Share Posted January 27, 2020 Thanks JLogan3o13 and Nine - both excellent suggestions, thank you! Since I already have experience using EventCreate in another AutoIt application, I think I'll give that a try first. Again, I really appreciate the suggestions, neither had occurred to me before. All the best, -Mike 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