Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/31/2013 in all areas

  1. Ya, see if you've already written what you want to write. Measure twice, cut once..
    1 point
  2. Look at the time and date macros and use then in an If/Then statement to figure out the time and day to see if you should write to the file again.
    1 point
  3. ;getting info about traffic---------- Func get_info() $cmd = Run(@comspec & " /c netstat -e", @SystemDir, @SW_HIDE, $STDIN_CHILD & $STDOUT_CHILD) Sleep(500) $line = StdoutRead($cmd) $st = StringSplit($line,@CR) For $i = 1 to $st[0]-1 Step 2 If $st[$i] <> "" And $i = 5 Then $strn = StringSplit($st[$i],"") $string = $st[$i] For $n = 1 to $strn[0] Step 1 If StringIsDigit($strn[$n]) And $trimmed = 0 Then $alltrimmed = 1 $stout = $stout & $strn[$n] ElseIf Not StringIsDigit($strn[$n]) And $alltrimmed = 1 Then $trimmed = 1 EndIf Next If $current = -1 And $afftermin = -1 Then $current = $stout ElseIf $current <> -1 And $afftermin = -1 Then $afftermin = $stout EndIf $stout = "" $trimmed = 0 $alltrimmed = 0 EndIf Next EndFunc
    1 point
  4. Oh, I see, your link refers to a single post in the thread, mine to the whole thread.
    1 point
  5. Yes but you posted the entire suite, i only posted the network bit.
    1 point
  6. That's exactly what I posted in #2
    1 point
  7. Check this you'll need includes: _PDH_PerformanceCounters.au3 + _WinAPI_GetSystemInfo.au3
    1 point
  8. Glad to be of service
    1 point
  9. The link I posted is no UDF but will allow you to grab the functions you need for your script.
    1 point
  10. Are you sending the data yourself? Why do you need to do so? What have you tried so far? http://www.nirsoft.net/utils/network_traffic_view.html - NirSoft - Always a good choice plus all the utillites have command line switches with output formats such as XML. http://www.codeproject.com/Articles/5331/Retrieve-the-number-of-bytes-sent-received-and-oth - Requires creating a free account to download but the executable is 17kb in size and can be used in conjunction with FileInstall. http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/26b20572-bd95-492e-af6b-3d573c4ec2a1/ - VBScript - This could be implemented in AutoIt plus it would make a cool UDF. This information should also be obtainable from the TaskManager - taskmgr.exe *Edit - I see that the cool UDF has already been created. LOL
    1 point
  11. Welcome to AutoIt and the forum! There are a lot fo examples available on the forum which give you the needed performance counters. One of them is
    1 point
  12. See my answer in this post. In short, since the engine is dealing with UTF-8 strings, only x00 to x7F works as expected. PCRE support inside AutoIt has to be completely reconsidered: PCRE now supports UTF-16 directly, making the implementation much much easierPCRE should definitely be compiled with UCP support (Unicode character properties)PCRE now enjoys optional JIT support (matching can be up to 6 times faster)PCRE callbacks need to be implementedOne should be able to store compiled patterns and not have them recompiled every time when they are used in loops
    1 point
×
×
  • Create New...