Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/07/2022 in all areas

  1. @Danp2 according to my tests if you do _SoundPlay('filepath.mp3') It will not free handles. Saludos
    1 point
  2. It is in extra's which is really only for the Helpfile examples and not really for Production purpose with fullblown helpfile info and support.
    1 point
  3. I installed the latest AutoIt release 3.3.16.0 and get the same listing. WM_Notify.au3 holds _WM_Notify_Register, _WM_Notify_DebugEvent and _WM_Notify_DebugInfo. Seems WM_Notify.au3 was added with 3.3.16.0 (but I did not find it mentioned in the Changelog). So your script should work fine with the latest AutoIt version but will throw errors with older versions (until you backport WM_Notify.au3). Hence: No bug
    1 point
  4. Sure thing .... WAI
    1 point
  5. Not mine: it comes verbatim from the OP, I was aware but was distracted before posting and forgot to fix it. True, I hope you accept my sincere apology . @thatboy : Why did you mark your buggy script from your initial question as the Solution? You should mark the one from @jchd (he could still edit the typo though ).
    1 point
  6. You need an RoundUp function for that. one way of doing that is: $input = 7.00004374 ConsoleWrite(_RoundUp( $input, 0) & @CRLF) ConsoleWrite(_RoundUp( $input, 1) & @CRLF) ConsoleWrite(_RoundUp( $input, 2) & @CRLF) ConsoleWrite(_RoundUp( $input, 3) & @CRLF) ConsoleWrite(_RoundUp( $input, 4) & @CRLF) ConsoleWrite(_RoundUp( $input, 5) & @CRLF) ConsoleWrite(_RoundUp( $input, 6) & @CRLF) ConsoleWrite(_RoundUp( $input, 7) & @CRLF) ConsoleWrite(_RoundUp( $input, 8) & @CRLF) ConsoleWrite(_RoundUp( $input, 9) & @CRLF) ConsoleWrite(_RoundUp( $input, 10) & @CRLF) Func _RoundUp( $iValue, $iDec) $oValue = Round($iValue,$iDec) If $oValue < $iValue Then $oValue = Round($iValue + (0.5 / (10 ^ $idec)),$iDec) EndIf return $oValue EndFunc result: 8 7.1 7.01 7.001 7.0001 7.00005 7.000044 7.0000438 7.00004374 7.00004374 7.00004374 Jos
    1 point
×
×
  • Create New...