View Full Version : Open website
Cadish
August 30th, 2003, 04:15 AM
Hi,
How can i open a website in an existing window of ie?
Thanks,
Cadish
JimHugh
August 30th, 2003, 06:23 AM
I think you are going to have difficulties with the "existing window" part of your question. Cross site scripting security would probably get in your way. :( As well as trying to target the existing instance of IE since the Window Caption is probably changing at each new URL.
I do have a multi group that uses the following Girder commands
1. OS | Execute with a file path of an http://intranetwebserver
2. Window | Wait with a target of the KNOWN window caption of the url
( commands 3 through 7 use the same target )
3. Window | Restore
4. Window | Resize
5. Window | Move Window
6. Window | SetFocus
7. Window | Absolute Mouse Move
I do all of this to bring up the web based remote control on my laptop.
Now to my point for your question, you could have that intranet "web page" open a known target instance of IE. It would have a number of predefined hyperlinks with the access keys and act as a navigation panel. Since the navigation panel would then always be open, Girder could target it and send keyboard access keys or absolute mouse moves/clicks to navigate to the listed urls in the child viewing window.
LiteBright
August 30th, 2003, 06:46 AM
You also might try :
-selecting the window
-sending a CTRL-O
-sending the text of the URL
-sending a RETURN
Cadish
August 30th, 2003, 07:04 AM
Thanks for all this stuff, but i found a method on my own... 8)
- Add a command
- Tab Keyboard => Special Key= "RETURN" & Sentence = "URL"
- Target => Class Name = "IEFrame" & Executable = "IEXPLORE.EXE" & Child Class="Edit" and enable those checkboxes
- Only send to first match = "1"
And it works...
Greetz
Cadish
JimHugh
August 30th, 2003, 07:08 AM
Congrats!
I guess I was trying to make it more complicated that you needed.
As far as I can tell, your method will work as long as you only have ONE instance of Internet Explorer open. Otherwise who knows which instance of IE you are going to be working with :) That is the problem that I was trying to deal with.
Cadish
August 30th, 2003, 07:30 AM
No, it works for me with more than 1 window open... :P
JimHugh
August 30th, 2003, 08:11 AM
I'm glad it is working for you, but I have to ask...
How do you target the second IE window if you wanted to open a URL there?
Cadish
August 30th, 2003, 08:24 AM
I can't do that. And that's not exactly what i wanted.
I've a Logitech keyboard, and there are such stupid buttons like 'Webcam',... With a program from Logitech, you can assign a website to a specific button. So, if i push 'Webcam' (with the Logitech software), it opens the url in a new ie window.
But when an ie window is already open, the program opens the url in the existing (foreground) window.
I used to work with that program, but it really sucks. So i've decided to control all those buttons with Girder.
And now it works... :D
Cadish
August 30th, 2003, 08:26 AM
Oh, sorry, i CAN open it in the second open window:
in the target window: next to 'only send to first match', set to 2 instead of 1
:wink:
miked
August 30th, 2003, 12:19 PM
Another option is to select the check box "reuse windows when opening shortcuts" in Tools --> Internet OPtions in Internet Explorer, and then using the approach described in
http://www.girder.nl/phpBB2/viewtopic.php?t=4880&highlight=url
(which was an answer to my question on how to do this!) :)
There's also the approach described in the thread that I used to use -- get the program Hot Keyboard, have a hot key defined that opens up a web page, and then have girder "do" that key combination in response to an event.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.