08-22-2012, 11:04 PM
I've boiled the issue down to a simple example:
The Foo method works the first time, but fails when it's called from inside another RegisterUserFunced method.
Is it my code that's broken, or is it RegisterUserFunc?
Thanks!
Archens
Code:
Public Function Foo(objW)
Foo = objW.hwnd
End Function
Public Function Bar(objX)
Bar = objX.Foo()
End Function
RegisterUserFunc "Window", "Foo", "Foo"
RegisterUserFunc "Window", "Bar", "Bar"
msgbox Window("nativeclass:=Shell_TrayWnd").hwnd
msgbox Window("nativeclass:=Shell_TrayWnd").Foo()
msgbox Window("nativeclass:=Shell_TrayWnd").Bar()
UnRegisterUserFunc "Window", "Foo"
UnRegisterUserFunc "Window", "Bar"
The Foo method works the first time, but fails when it's called from inside another RegisterUserFunced method.
Is it my code that's broken, or is it RegisterUserFunc?
Thanks!
Archens