in reply to how to find handle of a window?

You are missing use warnings;. Your indentation is horrible. You misspell "Runningn". Oh, and you use characters that are not valid Perl syntax. Perl is fussy about the type of quote characters that you use. I'd recommend you find a better text editor than Word or whatever you are using at present so that you can use " for double quoted strings and ' for single quoted strings without having to fight the editor.

If you replace all the “ and ” characters with " your code works fine. I'd rewrite it as:

use strict; use warnings; use Win32::GuiTest qw( FindWindowLike ); my @Mhnds = FindWindowLike(undef, "^Google Talk") or die "Cannot find Messenger Running"; printf "handle of Messenger is %xn", $Mhnds[0];

to make it a little more concise and clearer (at least to my eye).

True laziness is hard work