Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/28/2024 in all areas

  1. argumentum

    AutoIt Snippets

    ConsoleWrite('--- ProcessStartDate: ' & ProcessStartDate('SciTE.exe') & @CRLF) ; --- ProcessStartDate: 2024/10/28 09:45:50 Func ProcessStartDate($sProcessOrPID, $iRet_tSYSTEMTIME = 0, $iLocalTime = 0) Local $aFT, $tFT, $tST, $iID = ProcessExists($sProcessOrPID) If $iID Then ; https://www.autoitscript.com/forum/index.php?showtopic=139260&view=findpost&p=1538034 $aFT = _WinAPI_GetProcessTimes($iID) If @error Or UBound($aFT) <> 3 Then Return SetError(@error, _WinAPI_GetLastError(), "GetProcessTimes FAILED") $tST = _Date_Time_FileTimeToSystemTime($iLocalTime ? _Date_Time_FileTimeToLocalFileTime($aFT[0]) : $aFT[0]) If $iRet_tSYSTEMTIME Then Return $tST Return _Date_Time_SystemTimeToDateTimeStr($tST, 1) EndIf Return SetError(11, 0, "Process does not exist") EndFunc ;==>ProcessStartDate I have a bunch of RDP running and wanted to identify which is which and thought of the Process date and PID, to know that the given process was from X connection because when it disconnects the popup window does not have any info. in regards to what disconnected ... , am working on it. And thought that the function was a good snippet to share.
    2 points
  2. Hi @Jotos 👋 , change this _WD_Option('DriverParams', '--verbose --log-path="' & @ScriptDir & '\chrome.log"') to this _WD_Option('DriverParams', '--port 9515 --verbose --log-path="' & @ScriptDir & '\chrome.log"') and try again. Explanation: Best regards Sven
    1 point
  3. Hi @1stPK 👋 , no build errors with this code: But your InetRead request does not provide any data (empty string is returned). So please check line 11 (and the error handling), also the lines 9, 51 and 52 to display the result array. Without a deeper look, I guess you have to get the source page by another method. Search the forum (maybe by google) for "getting page source" or similar and you will find several answer or suggestions besides InetRead. Hope this will help you 🤝 . Best regards Sven
    1 point
  4. argumentum

    WinRT Object Libraries

    nice !. Added a Dark mode coloring for my setup
    1 point
×
×
  • Create New...