run documentation

Report problems with documented functionality
malcev
Posts: 95
Joined: 12 Aug 2014, 12:37

run documentation

28 Apr 2018, 16:20

If We run last example with character ✓ here:
https://autohotkey.com/docs/commands/Run.htm#Examples
Then We will get error:

Code: Select all

ExecScript(Script, Wait:=true)
{
    shell := ComObjCreate("WScript.Shell")
    exec := shell.Exec("AutoHotkey.exe /ErrorStdOut *")
    exec.StdIn.Write(script)
    exec.StdIn.Close()
    if Wait
        return exec.StdOut.ReadAll()
}

; Example:
expr = Asc("✓")
result := ExecScript("FileAppend % (" expr "), *")
MsgBox % "Result: " result
May be it will be good to make a note that wscript does not understand correctly all characters?

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest