
Wolfteeth
Active Members-
Posts
55 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Wolfteeth's Achievements

Wayfarer (2/7)
0
Reputation
-
Any way to monitor command line session?
Wolfteeth replied to Wolfteeth's topic in AutoIt General Help and Support
@orbs, I am worry about the system performance as while sleep(100) would consume more resource and CPU time. @others, again, the robocopy.exe is launched by other tool, I want to mointor the Robocopy.exe process and suspend the process and its Parent Process (CMD.exe). To read the outputs is too later for me -
Any way to monitor command line session?
Wolfteeth replied to Wolfteeth's topic in AutoIt General Help and Support
Not right one, as the cmd and robocopy not run from autoit script. it was triggered by user manually or other programs. instead, I want to use AutoIt script to monitor the process created by others. -
Any way to monitor command line session?
Wolfteeth posted a topic in AutoIt General Help and Support
I launched DOS Command Prompt, and run robocopy.exe command manaully or run via batch file. Is there anyway that can monitor the process when it triggers? and then get back the Process ID and ParentProcess ID? in above scenario, the Process ID should be the PID of Robocopy.exe and the Parent Process ID should be PID of the CMD.exe. when I using ProcessExists func, it always get nothing, because of robocopy.exe has done its job so that there's no session on Process List already. what exactly I want is: a small monitor tool is ran on system and it silently monitor the system and no matter any program invoke robocopy.exe at backend, it will trigger alerts to get back its process ID and Parent Process ID for further actions. it looks we need OnEvent handling or API Hook? anyone have good idea? -
may I have a question? how to view GPU perf counters?
- 135 replies
-
- performance counters
- monitor
-
(and 8 more)
Tagged with:
-
Hi, Mdwerne, I have the same question and problem here by writing event data with XML format... (Multiple lines) still not understand how to use the array Data...
- 10 replies
-
- eventcreate
- eventlog
-
(and 1 more)
Tagged with:
-
I also searched a lot and seems there's nothing can do API call in Autoit func yet, so I have build up the workable events in below for who have the same requirements. #include <Array.au3> #RequireAdmin $foo1=Run(@ComSpec & ' /c wevtutil qe Microsoft-Windows-Diagnostics-Performance/Operational /q:*[System[(EventID=100)]] /rd:true /c:1', @SystemDir, @SW_HIDE,$STDERR_CHILD + $STDOUT_CHILD) _ReadCMDOut($foo1) Func _ReadCMDOut($CMD) Local $line While 1 $line = StdoutRead($CMD) If @error Then ExitLoop If $line <> "" Then $pBootTime = "<Data Name="&"'"&"BootTime"&"'"&">(.*?)</Data>" $pBootStartTime = "<Data Name="&"'"&"BootStartTime"&"'"&">(.*?)</Data>" $pBootEndTime = "<Data Name="&"'"&"BootEndTime"&"'"&">(.*?)</Data>" $pMainPathBootTime = "<Data Name="&"'"&"MainPathBootTime"&"'"&">(.*?)</Data>" $pBootPostBootTime = "<Data Name="&"'"&"BootPostBootTime"&"'"&">(.*?)</Data>" Local $aBootTime = StringRegExp($line, $pBootTime, $STR_REGEXPARRAYMATCH) Local $aBootStartTime = StringRegExp($line, $pBootStartTime, $STR_REGEXPARRAYMATCH) Local $aBootEndTime = StringRegExp($line, $pBootEndTime, $STR_REGEXPARRAYMATCH) Local $aMainPathBootTime = StringRegExp($line, $pMainPathBootTime, $STR_REGEXPARRAYMATCH) Local $aBootPostBootTime = StringRegExp($line, $pBootPostBootTime, $STR_REGEXPARRAYMATCH) _ArrayDisplay($aBootTime,"1") _ArrayDisplay($aBootStartTime,"2") _ArrayDisplay($aBootEndTime,"3") _ArrayDisplay($aMainPathBootTime,"4") _ArrayDisplay($aBootPostBootTime,"5") EndIf WEnd EndFunc
-
HI, @Johnone, how could you read the special event 100 in Autoit? any func? I am sure _EventLog__Open doesn't work...
-
I'm having trouble reading from the extra event logs, I want to parse the boot performace information from the "Applications and Services Logs" section (Microsoft -> Windows -> Diagnostics-Performace) but _EventLog__Open keeps just reverting to the standard Application log. Here's what I thought would work: #include <EventLog.au3> #include <Array.au3> $hEventLog = _EventLog__Open ("", "Microsoft-Windows-Diagnostics-Performance/Operational") While 1 $arrEvt = _EventLog__Read($hEventLog, True, False) _ArrayDisplay($arrEvt) WEnd by referring to this ticket: https://www.autoitscript.com/trac/autoit/ticket/2119#no2 that it looks was resolved, however, it doesn't. would like to know if anyone knows how to fix this issue? many thanks.
-
Reading from additional Vista/Win7 Event Logs
Wolfteeth replied to idbirch's topic in AutoIt General Help and Support
anyone know if the problem fixed? that I found the ticket was closed (#2119), however, it seems the problem is still not getting resolved. -
Hi, @ALL, I have the same problem and still feel confused. why my Ping to a alive IP address always return Offline status? Local $g_IP = "192.168.12.111" Local $status = ping($g_IP) MsgBox(0,$status, @error)
-
Cannot get Text from VB Lable
Wolfteeth replied to Wolfteeth's topic in AutoIt General Help and Support
no one interest in because VB is old? -
Old topic but still no any solution find it yet. it looks like the VB label is unable to be got, you could got any button control, window info, but just the Label text is unable read from the program. I still open a new ticket here and see if anyone is really have gotten the solution/workaround already? old post: '?do=embed' frameborder='0' data-embedContent>>
-
Runwait and ProcesswaitClose doesn't work!
Wolfteeth replied to Wolfteeth's topic in AutoIt General Help and Support
it is a quite good article to have a test to use LSrunase instead of RunAsWait, sometimes, especial for enterprise user, the encrypted pwd is very important. and should not be plain text always. besides, our AutoIT.exe still is able to be cracked...sigh... -
Runwait and ProcesswaitClose doesn't work!
Wolfteeth replied to Wolfteeth's topic in AutoIt General Help and Support
still not found good ideas... .the root cause I found that it is because of the "Program" is running on the prompted authentication session via "LSrunase.exe", thus, the user session is different, which caused ProcessList cannot see the "Program" even its running on task manager and got the proceessID, but our Procssexist("Program") cannot return the PID to autoit... sucks...I am still checking to see...