Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/14/2021 in Posts

  1. eukalyptus

    BigNum UDF

    UDF to perform calculations with big numbers _BigNum_Parse _BigNum_Add _BigNum_Sub _BigNum_Mul _BigNum_Div _BigNum_Pow _BigNum_SQRT _BigNum_n_Root _BigNum_Mod _BigNum_Round _BigNum_Compare EDIT: updated BigNum.au3 BigNum_example.au3 #include "BigNum.au3" $X = "10000000000000000000" $Y = "0.000000000000000001" MsgBox(0, "Addition", $X & " + " & $Y & " = " & _BigNum_Add($X, $Y)) $X = "-10000000000000000000" $Y = "10000000000000000000" MsgBox(0, "Subtraction", $X & " - " & $Y & " = " & _BigNum_Sub($X, $Y)) $X = "10000000000000000001" $Y = "-0.0000001" MsgBox(0, "Multiplication", $X & " x " & $Y & " = " & _BigNum_Mul($X, $Y)) $X = "10000000000000000000" $Y = "3" MsgBox(0, "Division, 10 Decimalplaces", $X & " / " & $Y & " = " & _BigNum_Div($X, $Y, 10)) MsgBox(0, "Division & Modulo", $X & " / " & $Y & " = " & _BigNum_Div($X, $Y) & @CRLF & "Mod: " & _BigNum_Mod($X, $Y))
    1 point
  2. mesale0077 asked me whether I could code some CSS loading animations from different web sites. These are the results using GDI+ (AutoIt v3.3.12.0+ required!): _GDIPlus_MonochromaticBlinker.au3 / _GDIPlus_RotatingBokeh.au3 _GDIPlus_SpinningCandy.au3 / _GDIPlus_SteamPunkLoading.au3 _GDIPlus_IncreasingBalls.au3 / _GDIPlus_PacmanProgressbar.au3 _GDIPlus_StripProgressbar.au3 / _GDIPlus_RingProgressbar.au3 _GDIPlus_LineProgressbar.au3 / _GDIPlus_SimpleLoadingAnim.au3 _GDIPlus_TextFillingWithWater.au3 / _GDIPlus_MultiColorLoader.au3 _GDIPlus_LoadingSpinner.au3 / _GDIPlus_SpinningAndPulsing.au3 _GDIPlus_TogglingSphere.au3 / _GDIPlus_CloudySpiral.au3 _GDIPlus_GlowingText.au3 (thanks to Eukalyptus) / _GDIPlus_HypnoticLoader.au3 _GDIPlus_RotatingRectangles.au3 / _GDIPlus_TRONSpinner.au3 _GDIPlus_RotatingBars.au3 / _GDIPlus_AnotherText.au3 (thanks to Eukalyptus) _GDIPlus_CogWheels.au3 (thanks to Eukalyptus) / _GDIPlus_DrawingText.au3 (thanks to Eukalyptus) _GDIPlus_GearsAnim.au3 / _GDIPlus_LEDAnim.au3 _GDIPlus_LoadingTextAnim.au3 / _GDIPlus_MovingRectangles.au3 _GDIPlus_SpinningAndGlowing.au3 (thanks to Eukalyptus) / _GDIPlus_YetAnotherLoadingAnim.au3 _GDIPlus_AnimatedTypeLoader.au3 / _GDIPlus_Carousel.au3 Each animation function has a built-in example how it can be used. AiO download: GDI+ Animated Wait Loading Screens.7z (previous downloads: 1757) Big thanks to Eukalyptus for providing several examples. Maybe useful for some of you Br, UEZ PS: I don't understand CSS - everything is made out of my mind, so it might be different from original CSS examples
    1 point
  3. Line 177 needs changing to: Local $datawb = _Excel_BookOpen($oExcel, @ScriptDir & '\SBMO Store setting input.xlsx') You we're passing '\SBMO Store setting input.xlsx' into the $bReadOnly parameter.
    1 point
  4. there is a logging utility UDF based on log4j called log4a.au3 and it's written in AutoIt so there is no vulnerability it's my goto for loggers in AutoIt log4a - A logging UDF - AutoIt Example Scripts - AutoIt Forums (autoitscript.com)
    1 point
  5. Here is the literal example for calc, notepad and uia (for a dutch windows version)
    1 point
  6. Local $datawb.worksheets("Sheet1").Activate You need to remove the Local at the beginning of this line. For $x = 1 UBound($aMyData) - 1 You're missing the "To" between 1 and UBound. As far as setting the value of the Input element, take a look at the help file entry for _IEFormElementSetValue.
    1 point
  7. 🙃 ConsoleWrite("- Is Windows 11: " & _IsWindows_11() & @CRLF) ;ConsoleWrite("- Is Windows Server 2022: " &_IsWindows_22() & @CRLF) Func _IsWindows_11() If StringInStr(@OSVersion, "11") Or StringInStr(_GetOS_Name(), "11") Then Return 1 Return 0 EndFunc ;==>_IsWindows_11 Func _IsWindows_22() If StringInStr(@OSVersion, "22") Or StringInStr(_GetOS_Name(), "22") Then Return 1 Return 0 EndFunc ;==>_IsWindows_22 Func _GetOS_Name() Local $OSname, $objItem = "", $strComputer = ".", $wbemFlagReturnImmediately = 0x10, $wbemFlagForwardOnly = 0x20 Local $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\") Local $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly) If IsObj($colItems) Then For $objItem In $colItems $OSname = $objItem.Caption ConsoleWrite("> System: " & $OSname & @CRLF) Return $OSname Next Else ConsoleWrite("! No WMI Objects Found for class: Win32_OperatingSystem" & @CRLF) Return SetError(1, 0, "") EndIf EndFunc ;==>_GetOS_Name ; DAO VAN TRONG - TRONG.LIVE
    1 point
  8. That command tells the UDF which port to use when communicating with the webdriver. You also need to tell the webdriver to use this alternate port. For chromedriver, it would look something like this -- Local $iAltPort = 9516 _WD_Option('Port', $iAltPort) _WD_Option('DriverParams', '--verbose --port=' & $iAltPort & ' --log-path="' & @ScriptDir & '\chrome.log"') If you try to launch a 2nd instance of chromedriver without changing the port number, it will immediately exit after displaying this error message in the console -- [1607779217.305][SEVERE]: bind() returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted. (0x2740) IPv6 port not available. Exiting... Make sure that you are running the latest release of the UDF. Then try adding some logging to try to determine why the chromedriver instance is being terminated.
    1 point
×
×
  • Create New...