Jump to content

Leaderboard

Popular Content

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

  1. I'm not sure if you notice but now in 3.3.16.x versions we have new keyword ByDefault which is not the same as Default. Even IsKeyword have new return value: Thus my kindly asked question:
    1 point
  2. Oh sorry, I download current LUA.zip and I was thinking this is your current version, now I understand that you have some new on your desk, but stil as work in progress. So I will wait till I be able to test your new version and till you request new logs.
    1 point
  3. See this post for an explanation of why the function can't be found.
    1 point
  4. Jos, If you want some testing on a pretty much "vanilla" system, feel free to send me whatever you would like me to try out. Steve G
    1 point
  5. jchd

    Localizing

    Maps are now rock solid and will remain available forever, whatever forever means.
    1 point
  6. ahmet

    AutoItObject Pure AutoIt

    @kurtykurtyboy regarding event handlers have you checked GUIRegisterMsg20 - Subclassing Made Easy ?
    1 point
  7. PeterlFF

    Power BI and COM

    I finally figured out a solution to my issue with timing actions in Power BI Desktop where it is rendering charts etc on the screen. I used PixelChecksum in a while loop to see when the screen is done rendering. If it hasn't changed in 3 seconds (plus the time it takes to run the code) then we assume the rendering is done and calc the time it took. Local $hTimer = TimerInit() GetTime() $T1[$TR][4] = $GTime ; end time for open online Report Local $ic = "0", $ict = "0" While $ic < 30 Local $iCheckSum = PixelChecksum(0, 0, $aClientSize[0], $aClientSize[1]) Sleep("100") If $iCheckSum = PixelChecksum(0, 0, $aClientSize[0], $aClientSize[1]) Then If $ic = 0 then Local $hTimerC = TimerInit() GetTime() EndIf $ic += 1 $ict += 1 Else $ic = 0 $hTimerC = "" EndIf Global $iTimeC = Round(TimerDiff($hTimerC)/10,0) WEnd Global $iTime = Round(TimerDiff($hTimer)/10,0) $iTimeT = $iTime - $iTimeC
    1 point
  8. Maps are faster: #include <Array.au3> Global $iItems = 100000 Global $aArray[$iItems] For $i = 0 To $iItems - 1 $aArray[$i] = Random(0, $iItems * 0.2, 1) Next Local $t, $aRes _ArrayDisplay( $aArray ) $t = TimerInit() $aRes = Example( $aArray ) ConsoleWrite(TimerDiff($t) & @LF) _ArrayDisplay( $aRes ) $t = TimerInit() $aRes = MapExample( $aArray ) ConsoleWrite(TimerDiff($t) & @LF) _ArrayDisplay( $aRes ) Func Example( ByRef $aArray ) Local $oTst = ObjCreate( "Scripting.Dictionary" ) Local $oRes = ObjCreate( "Scripting.Dictionary" ) For $i = 0 To UBound( $aArray ) - 1 If Not $oTst.Exists( $aArray[$i] ) Then $oTst( $aArray[$i] ) = 1 ElseIf Not $oRes.Exists( $aArray[$i] ) Then $oRes( $aArray[$i] ) = 1 EndIf Next Return $oRes.Keys() EndFunc Func MapExample(ByRef $aArray) Local $mRes[] For $i = 0 To UBound($aArray) - 1 If MapExists($mRes, $aArray[$i]) Then $mRes[$aArray[$i]] += 1 Else $mRes[$aArray[$i]] = 1 EndIf Next For $i = 0 To UBound($aArray) - 1 If $mRes[$aArray[$i]] = 1 Then MapRemove($mRes, $aArray[$i]) EndIf Next Return $mRes.Keys() EndFunc
    1 point
  9. It will only add the first found include to its selection as the logic will not handle multiple include files with the same name and I have no plans to make it even more complex than it already is. So it will actually cause issues like you have indicated.
    0 points
×
×
  • Create New...