Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/01/2022 in all areas

  1. New version in first post Version: 2022.09.01 - Optimized annual cleaning. When using Au3toCmd it makes no sense to write data to @scriptdir as that is not the directory where the CMD file is located. The CMD file is located in @workingdir. If data is written to @scriptdir, it was deleted during the annual cleanup. With the new version, this data is retained and may have to be deleted manually. In order not to suffer any data loss, ALL *.CMD should be recreated with Au3toCmd.
    1 point
  2. https://www.autoitscript.com/wiki/WebDriver https://www.autoitscript.com/forum/topic/191990-webdriver-udf-w3c-compliant-version-08282020/ https://www.autoitscript.com/forum/topic/197080-using-ui-automation-code-in-autoit/
    1 point
  3. power1power1

    Mouse coordinates

    Using part of Yashied's script here: ('?do=embed' frameborder='0' data-embedContent>>), screen scaling factor can be calculated and the script in post #8 would show the correct color information: $scale = 0 _GetScale() While 1 $position = MouseGetPos() $color = PixelGetColor($position[0] * $scale, $position[1] * $scale) Tooltip("X=" & $position[0] & ", Y=" & $position[1] & ", RGB=0x" & Hex($color, 6), default, default, "Scaled Pixel Position and Hex Color:", 0, 4) Sleep (100) WEnd Exit Func _GetScale() $tDEVMODE = DllStructCreate('byte[32];dword[10];byte[32];dword[6]') $pDEVMODE = DllStructGetPtr($tDEVMODE) $i = 0 while 1 $ret = DllCall('user32.dll', 'int', 'EnumDisplaySettings', 'ptr', 0, 'dword', $i, 'ptr', $pDEVMODE) if ($ret[0] = 0) then exitloop $width = DllStructGetData($tDEVMODE, 4, 2) ; native width $i += 1 wend $scale = $width / @DesktopWidth EndFunc
    1 point
  4. neogia

    Merge Variables

    If you want to "merge" numbers, use: $final = $var1 + $var2 If you want to "merge" strings, use: $final = $string1 & $string2 In your example, you would do this: $newvariable = $variable1 & "test" & $variable2
    1 point
×
×
  • Create New...