Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/28/2018 in all areas

  1. Managed to get it working, thanks a lot!
    1 point
  2. No, those are from message box editing, proper grammar and all
    1 point
  3. right... I don't mind initiative, but the posted result can't be fromwhat I posted!
    1 point
  4. I saw the same behavior until I corrected the profile string -- $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args":["start-maximized", "disable-infobars","user-data-dir=C:\\Users\\USER\\AppData\\Local\\Google\\Chrome\\User Data\\Default"] }}}}'
    1 point
  5. Instead of pictures, post your code.
    1 point
  6. Thanks Danyfirex. The service part is what I need ! It was easier than I thought. I added my cleanup code in _service_control() function where $SERVICE_CONTROL_STOP and $SERVICE_CONTROL_SHUTDOWN are tested.
    1 point
  7. careca

    mac adress / Text file

    Did you ever come across "getmac"? This should send you on your way: #include <AutoItConstants.au3> $DSK = Run("getmac", '', '', $STDIN_CHILD + $STDOUT_CHILD) $begin = TimerInit() $dif = TimerDiff($begin) Do Sleep(100) $Read = StdoutRead($DSK, False, False) $Str = StringInStr($Read, 'Physical Address') If $dif >= 1000 Then MsgBox(64, 'Error', 'Timeout') ExitLoop EndIf $dif = TimerDiff($begin) Until $Str <> 0 ;MsgBox(64, 'Result', $Read) $ReadTr = StringTrimLeft(StringStripWS($Read, 8), 105) $Split = StringSplit($ReadTr, '\Device', 1) ;MsgBox(64, 'Count', $Split[0]) For $s = 1 To $Split[0] If $s <> $Split[0] Then MsgBox(64, '', $Split[$s]) EndIf Next Note that i only got one MAC address (only one network adapter), so i couldn't adapt the code for multiple, but maybe you can.
    1 point
  8. ok, I am going to post this, solution below: https://stackoverflow.com/questions/12615665/in-windows-how-get-all-process-and-their-child-process-information-in-command-pr wmic process get Caption,ParentProcessId,ProcessId Given a parent PID you can list the immediate children with something like: wmic process where (ParentProcessId=2480) get Caption,ProcessId TEST: ok, so I ran a cmd, then explorer from it and notepad. i ran each of the above wmic statements from a cmd window. the second statement will show you the children of the parent and you could capture that and do what you like. In my case, the PID of cmd.exe was 4050 and his children where shown with their PIDs, notpad and explorer and WMIC.exe
    1 point
×
×
  • Create New...