in reply to find active window

Try to use a method GetActiveWindow() of module Win32::GUI.
my $win = Win32::GUI::GetActiveWindow();
      
--------------------------------
SV* sv_bless(SV* sv, HV* stash);

Replies are listed 'Best First'.
Re: Re: find active window
by Foggy Bottoms (Monk) on Jun 10, 2003 at 12:49 UTC
    it returns 0 however... :(

    Here's my bit of code :

    sub activeWindow
    # this method returns the handler of the active window
    {
    return Win32::GUI::GetActiveWindow();
    }

    And here's what I get when I print it:
    0

    What's wrong with that ? (I'm sorry but I've just begun Perl and I'm not familiar with it yet).