Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/18/2021 in all areas

  1. Gianni

    Aquarium

    This script is an alternative (improvement) to the script published at this link (www.autoitscript.com/forum/topic/186225-interesting-effect-with-transparency). In that post a flash animation was used and therefore you need the flash player to work, while here only javascript is used. Here, too, the aim is to show an interesting effect that can be obtained by exploiting transparency, but can also be used as it is just for fun. The animation consists of some fish wandering around the screen. You can continue working on the computer by letting them swim. The javascript source was not written by me, but I got it from this link: https://github.com/lrusso/Aquarium. I shrunk it down a bit and tweaked it so that fish can swim across the entire screen even with different sized monitors. The fish images and html and javascript sources have been bundled into a single "monolithic" AutoIt script, so it's easier to run. I hope you find it relaxing. Have fun fishMonolitic.zip
    1 point
  2. blumi

    @OSVersion and Win11

    Is there an AutoIt Versions out there where Windows 11 can be detected with @OSVersion?
    1 point
  3. I ended up figuring out a way to modify the page's client side CSS so that I could select hundreds of rows at a time. Another victory for the use-something-anything-other-than-pixelsearch team!
    1 point
  4. While working on an automation framework for my company, I found myself missing some of the xUnit testing capabilities that more "traditional" development environments employ. Then I remembered hearing Martin Fowler at a conference speak of the somewhat trivial task of implementing unit testing frameworks for companies he had worked for. So what follows is my attempt at providing some unit testing functions in AutoIt. It is by no means as robust as the xUnit frameworks nor is it a highly-optimized, textbook implementation - but it suited my needs at the time. Edit: TestSetup and TestTearDown functionality added. These functions are accessed using "Call()" and are not required per se. But AU3Check will kickback non-fatal errors if they are not defined in the Test Script. See the examples uploaded for further clarification. The example "CalcCore.zip" contains a minature automation framework for testing some functionality in "Calculator". The included "FunctionLibTests" and "ActionLibTests" describe the tests associated with their respective libraries. Run these to see Testing.au3 in action. Here is Testing.au3: Testing.au3 After placing Testing.au3 in the include directory, download this example: CalcCore.zip Current Limitations: > Output File does not contain the periods and "F"'s that appear in the console. > Only 3 Assertions > Others only you know about
    1 point
  5. Try to force 32bit compilation of your EXE (when using 32bit DLL) by #AutoIt3Wrapper_UseX64=n or #pragma compile(x64, False)
    1 point
  6. That's the drawback of heuristics: they can misinterpret a tree as a school bus when a bird leaves its nest in the tree.
    1 point
  7. Something like this: #include <date.au3> Global $sTime1 = "13:43:24", $sTime2 = "13:44:35" Global $iTime1, $iTime2 Global $aTemp, $sHour, $sMinute, $sSecond $aTemp = StringSplit($sTime1, ":") $iTime1 = _TimeToTicks($aTemp[1], $aTemp[2], $aTemp[3]) $aTemp = StringSplit($sTime2, ":") $iTime2 = _TimeToTicks($aTemp[1], $aTemp[2], $aTemp[3]) _TicksToTime($iTime2-$iTime1, $sHour, $sMinute, $sSecond) ConsoleWrite($sHour & ":" & $sMinute & ":" & $sSecond & @LF)
    1 point
×
×
  • Create New...