Re: Cursor Type of window
- That is an interesting subject, and I would be happy if somebody
gives me a good advice.
The problem with using external programs as lynx, wget or curl, or
perl net libraries, is that you have to deal with the web pages that
are generated dynamically -- analyze them, find the internal forms,
figure out what to send to the server to get to the next page, and so
the source of web pages, and none of those tools can deal with it.
I tried that path in the past, an rejected it in favour of gui tools
(I used AutoIt.exe before switching to perlguitest) in combination
As for using MenuSelect, this might be a good idea, but I found that
my SendKeys("^A^C") is pretty robust and works well.
--- In email@example.com, "Dennis K. Paulsen
<ctrondlpaulsden@y...>" <ctrondlpaulsden@y...> wrote:
> Note: If you wanted to, you could use something like MenuSelectbe
> ("&Edit|Select &All", [WINDOW HANDLE]) to do the copy. It should
> more reliable then SendKeys because a window could come in and outof
> the foreground, especially under Win2k/XP. And if you want abetter
> way to get the contents of a web page, there is probably a Perland
> module available for it or you could download a Windows version of
> lynx or wget, so you didn't have to open up IE.
> Dennis K. Paulsen
> --- In firstname.lastname@example.org, "stupakov <stupakov@y...>"
> <stupakov@y...> wrote:
> > I have a similar problem with my perl scripts that use perlguitest
> > to open Internet Explorer and connect to my bank web site.
> > To check that I have the web page open, I send ^A^C (select all
> > copy) every second to the browser window, and then check fromperl
> > what I have in the clipboard. It turns out that I get something
> > in the clipboard (the contents of the web page) only after
> > the page is downloaded. If the clipboard is empty, I know that
> > the browser is still loading the page, and wait.
> > Hope this helps.
> > Gennady.
> > --- In email@example.com, "swoolet <spw57nc@h...>"
> > <spw57nc@h...> wrote:
> > > When my app starts, the window comes up a few seconds before it
> > > handle input. During this time, the hourglass cursor is
> > displayed.
> > > Is there some way that I can check the cursor type before
> > attempting
> > > to send input?
> > >
> > > Thanks.