command that passes the $win object.  when i run that
line, then i get a usage error that says only to pass
the msg and the coderef.  does anyone have any idea
what's going on here?

        #$win->Hook($win, WM_ENTERIDLE, \&Idle($win));

Try:

$win->Hook(WM_ENTERIDLE, \&Idle($win));

When called as a method the first paramater is the window, ie:

Win32::GUI::Hook($win,WM_ENTERIDLE, \&Idle($win));

As you are passing a win32::GUI object, Hook will get the handle from the object.

Cheers,

jez.



Reply via email to