Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
Tester
- Junior Coder
- Posts: 22
- Joined: Fri Mar 20, 2009 2:48 pm
Post
by Tester » Mon Jul 13, 2009 5:45 am
How can I get the handle for an internet explorer window created by
IE_Create>0,IE[0]
I later want to set focus to the internet explorer window to grab the current URL.
I got more internet explorer windows open at the same time, so I need the handle to the windows when they are created.
-
JRL
- Automation Wizard
- Posts: 3532
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Tue Jul 14, 2009 4:34 am
-
Tester
- Junior Coder
- Posts: 22
- Joined: Fri Mar 20, 2009 2:48 pm
Post
by Tester » Tue Jul 14, 2009 5:31 am
The "handle" stored in IE[0] is always Zero. If I use
SetFocus>%IE[0]%
it will not work for me.
-
JRL
- Automation Wizard
- Posts: 3532
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Tue Jul 14, 2009 1:03 pm
Is "IE[0]" a window name or a window handle. If it is a window handle the Setfocus> line must be preceded by the line Let>WIN_USEHANDLE=1.
Let>WIN_USEHANDLE=1
SetFocus>%IE[0]%
Read help for any window control function to see how to use "WIN_USEHANDLE"
-
Tester
- Junior Coder
- Posts: 22
- Joined: Fri Mar 20, 2009 2:48 pm
Post
by Tester » Tue Jul 14, 2009 1:12 pm
I use
IE_Create>0,IE[0]
to creat an internet explorer instance.
-
JRL
- Automation Wizard
- Posts: 3532
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Tue Jul 14, 2009 1:17 pm
I've never used Web Recorder but from reading in the forum I think that IE_Create>0,IE[0] will create a variable "IE[0]" with a value that is the window's handle.
-
Tester
- Junior Coder
- Posts: 22
- Joined: Fri Mar 20, 2009 2:48 pm
Post
by Tester » Tue Jul 14, 2009 1:21 pm
No, it does not. It always gives the handle Zero. That's the problem with it.