ConvertBase() adapted to AHK v2

Post your working scripts, libraries and tools.
User avatar
atnbueno
Posts: 89
Joined: 12 Oct 2013, 04:45
Contact:

ConvertBase() adapted to AHK v2

14 Feb 2023, 17:07

ConvertBase() adapted to AHK v2 🙂

Code: Select all

ConvertBase(InputBase, OutputBase, nptr)
{
    VarSetStrCapacity(&s, 66)
    value := DllCall("msvcrt.dll\_wcstoui64", "Str", nptr, "UInt", 0, "UInt", InputBase, "CDECL Int64")
    DllCall("msvcrt.dll\_i64tow", "Int64", value, "Str", s, "UInt", OutputBase, "CDECL")
    Return s
}

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: Descolada, songdg and 53 guests