Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/17/2022 in all areas

  1. This is actually a perfect use case for Windows' BeginDeferWindowPos/DeferWindowPos/EndDeferWindowPos which I just recently posted an example of. My example was for moving windows, but you can tweak it to set the z order instead. I'll try to give an example when I'm back at my computer if you haven't gotten it yet.
    1 point
  2. https://www.autoitscript.com/forum/topic/139260-autoit-snippets/?do=findComment&comment=1487512 try that
    1 point
  3. argumentum

    AutoIt Snippets

    I needed _DateDiff() to include milliseconds. ConsoleWrite('>>> ' & _DateDiffMs('2021/08/16 13:25:08.727', '2021/08/16 13:25:08.729') & @CRLF) Func _DateDiffMs($sDate1st, $sDate2nd) Local $iDate1st, $aDate1st = StringSplit($sDate1st, ".") ReDim $aDate1st[3] Local $iDate2nd, $aDate2nd = StringSplit($sDate2nd, ".") ReDim $aDate2nd[3] Local $iDate1st = _DateDiff('s', '1970/01/01 00:00:00', $aDate1st[1]) Local $iDate2nd = _DateDiff('s', '1970/01/01 00:00:00', $aDate2nd[1]) $iDate1st &= "000" $iDate2nd &= "000" $iDate1st += Int($aDate1st[2]) $iDate2nd += Int($aDate2nd[2]) Return ( $iDate2nd - $iDate1st ) / 1000 EndFunc
    1 point
×
×
  • Create New...