Re: How does SetFocus work?
- Check out message #258. It may be the same problem you are seeing.
Ernesto should have it included in the next build of
Win32::GUITest. But you could always patch your own build of
Win32::GUITest if you've got the compiler handy..
Dennis K. Paulsen
--- In firstname.lastname@example.org, "shsk7203" <shsk7203@y...> wrote:
> I wanted to use SetFocus to set the keyboard focus on the window I
> want, but it does not seem to work. This is how I am using it:
> $win contains the my window handle.
> then the code follows for actions on that window.
> $textBox = GetFocus($mibHwnd);
> $_ = WMGetText($textBox);
> But this does not seem to set focus on the required window. I
> the window handle and confirmed using WinSpy that I had the right