electrico Posted February 23, 2010 Share Posted February 23, 2010 Hi guys, I am almost new to the AutoIt. As I am totally exausted searching the forum, then I decided to ask for help. I need the small script that could MsgBox me if the process (for example winword.exe) is running on my local machine. As I already have typed "tasklist >C:\tasklog.log", I just want to examine this file and if there is process winword.exe in the report, notify me with MsgBox. Here what I already found searching the forum: #include <file.au3> Dim $aRecords If Not _FileReadToArray("C:\tasklog.log",$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords Msgbox(0,'Record:' & $x, $aRecords[$x]) Next Then i added this: $searchstr = StringInStr($aRecords[$x], "csrss") If $searchstr = True Then MsgBox(0, "", "y") Else MsgBox(0, "", "n") EndIf But that was n00b idea... Thanks for the help guys. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now