Custom Query


Show under each result:

Results (229 - 231 of 3870)

Ticket Resolution Summary Owner Reporter
#421 No Bug Error in reading status of Radio Button tim@…

I am trying to read the state of a Radio button on my form.

$retval = ControlCommand ( "MyTestApp", "", "[]",  "IsChecked", "" )

$retval always returns 0

When I view the button control with Au3info I can see the style toggle between 0x5601000B (on) and 0x5600000B (off)

I don't know the function call to read the style information (if such a function exists) I am either using the function incorrectly or I have discovered a bug

#424 Duplicate _Dec64() Albuquerque

I had a bit of frustration when trying to convert an IPv4 address to the format used by Microsoft SCCM's database table. To get to the crux of the issue, I needed to convert a full QWORD to an integer number. The problem is that anything over 0x7FFFFFFF piped into the Dec() function results in a negative number -- seems that the Dec() function assumes input will always be a DWORD.

So, I wrote a stupidly simple converter for my own needs, but thought I'd send this up the food chain to see if it's something you good folks would be interested in...

Further, I'll note that I went cruising through all the include functions and couldn't find one similar to what I needed. If there really is one in there, I apologize profusely for being redundant -- but could you point me to it?

Here's my stupidly simple AutoIT code (that obviously has none of the correct error checking for ubiquiteous use as-is, but I digress...)

Func _Dec64($hexValue)
    $intValue = 0
    For $i = StringLen($hexValue) to 1 Step -1
        $intBase = Dec(StringMid($hexValue,$i,1))
        $intExponent = 16 ^ (StringLen($hexValue) - $i)
        $intFinal = $intBase * $intExponent

        $intValue = $intValue + $intFinal
    Return $intValue
EndFunc ;; _Dec64()
#425 Rejected Change to the registy by the installer GEOSoft

The standard method of finding the path to the AutoIt3 folder is to read and parse the default registry value at. HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3.exe

Although this is easily enough accomplished it would be much easier if the installer also wrote just the folder path to a new value like "Path". Typically that would just be "C:\Program Files\AutoIt3" or "C:\Program Files\AutoIt3\" That is a simple change for the installer. Then if we wanted, for example, the path to the standard Include folder it would just be

$rKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3.exe"
$InclPath = RegRead($rKey,"Path") & "\include\"

Just a thought here, but I think it is a better solution than using

$rKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AutoIt3.exe"
$rVal = RegRead($rKey,"")
$InclPath = StringLeft($rVal, StringInStr($rVal,"\",0,-1)) & "include\"
Note: See TracQuery for help on using queries.