RegisterCallback #17

Open
tinku99 opened this Issue Jan 17, 2011 · 0 comments

Projects

None yet

1 participant

@tinku99
tinku99 commented Jan 17, 2011

I was trying to translate com.ahk to use with IronAHK.
com.ahk uses RegisterCallback, which fails when I test with _COMPlusExceptionCode = -532459699

EnumWindowsProc(hwnd, lParam)
{
    global Output
    WinGetTitle, title, ahk_id %hwnd%
    WinGetClass, class, ahk_id %hwnd%
    if title
        Output .= "HWND: " . hwnd . "`tTitle: " . title . "`tClass: " . class . "`n"
    return true  ; Tell EnumWindows() to continue until all windows have been enumerated.
}
EnumAddress := RegisterCallback("EnumWindowsProc")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment