Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/27/2022 in Posts

  1. Jos

    PRINT CURRENT DAY - (Moved)

    Moved to the appropriate forum. Moderation Team
    1 point
  2. gorillamath, You do not have to declare a length in all cases - but there are 2 types of data collection variables in AutoIt - arrays and maps - which both use very similar notation. It is the manner in which the variable is declared which determines its type: Local $aVar[3] ; An Array Local $vVar[3] = [1, 2, 3] ; An Array ) Local $vVar[] = [1, 2, 3] ; An Array ) These 3 declarations are functionally identical Local $vVar = [1, 2, 3] ; An Array ) Local $mVar[] ; A Map So as you can see, there is no need to declare the size of an array if you declare the content at the same time. Declaring neither size nor content creates a map. Does that help? M23
    1 point
  3. lIlIIlIllIIIIlI

    Example OF dates

    these are basically straight from the documentation https://www.autoitscript.com/autoit3/docs/libfunctions/_DateAdd.htm https://www.autoitscript.com/autoit3/docs/libfunctions/_NowCalcDate.htm
    1 point
  4. When your script is compiled as 32 bit on a 64-bit machine use HKLM64 to access 64-bit registry and HKLM for 32-bit registry for example: ;~ Script is compiled as 32-Bit Global $sHKLM = @OSArch = "x64" ? "HKLM64" : "HKLM" Global $vResult = RegRead($sHKLM & "\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "AutoAdminLogon") If @error Then MsgBox(4096, "Error", "Error reading registry key: " & @error) Switch $vResult Case 1 MsgBox(4096, "Result", "Autologon Enabled") Case Else MsgBox(4096, "Result", "Autlogon Disabled") EndSwitch
    1 point
×
×
  • Create New...