AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IE7 Homepage Help

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
D4B5T3R
Guest





PostPosted: Wed Mar 18, 2009 7:06 pm    Post subject: IE7 Homepage Help Reply with quote

Hey, im not sure if im doing something wrong but, i have set my two homepages as Yahoo Mail and Google, so when i open IE7 it open Yahoo Mail in first tab and google in second.

Then when i press the New tab option it opens Yahoo Mail, whereas i want it to open google... if u see what i mean.

To solve this what i did was i made Yahoo the secondary Homepage and Google as primary, this way when i open a new tab google opens which is how i want it

But what bugs me is i want the google tab (when i first open IE7) to be the second tab and yahoo to be first, as Yahoo tab will never be closed.

By pressing Control + Right it moves the active tab (google) to the right, but is there a way that a script only sends these keystrokes everytime IE7 is opened from new

SORRY BOUT THE LONG ASS POST BUT ANY HELP IS APPRECIATED

D4B5T3R
Back to top
C5GSR1
Guest





PostPosted: Wed Mar 18, 2009 7:25 pm    Post subject: Reply with quote

and how is this question related to ahk?
Back to top
Cephei1



Joined: 04 Aug 2008
Posts: 199
Location: UK

PostPosted: Wed Mar 18, 2009 7:32 pm    Post subject: Reply with quote

Cause it uses AHK to send Keystrokes and somehow only send these keystrokes when the IE7 is opened the first time. AHK need to monitor this somehow, which i dont know how to do. THATS HOW
Back to top
View user's profile Send private message
G7R2Z9H
Guest





PostPosted: Wed Mar 18, 2009 7:41 pm    Post subject: Reply with quote

You did not mention anything about an ahk-script, how should anyone know?

And you still didnīt post any code. Are we supposed to guess?
Back to top
Cephei1



Joined: 04 Aug 2008
Posts: 199
Location: UK

PostPosted: Wed Mar 18, 2009 8:09 pm    Post subject: Reply with quote

i didnt say AHK anywhere in the post i sed Script, which relates to AHK, and the code i know sofar is how to send the keystroke, i dont know how to make it so that it sends the keystroke once everytime IE is opened

Code:
Send, ^{RIGHT}
Return


Not sure if WinWait Could work.. in a loop

Something like:

Code:

Loop,
   {
      WinWait, ahk_class IEFrame
      Send, ^{RIGHT}
      ;And then make it wait until the IE is closed
      WinWaitClose, ahk_class IEFrame
   }
Return
Gonna test now and feedback in a bit.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Mar 18, 2009 8:29 pm    Post subject: Reply with quote

Ok everything works im just stuck on one thing, my pc is kinda slow and sometimes it open IE fst and sometimes slow, and in the slow times the AHK send the keystrokes before its even loaded completely.

Is there another command like WinWait that ensures the Window has fully loaded before it continues to next command?
Back to top
G7R2Z9H
Guest





PostPosted: Wed Mar 18, 2009 8:44 pm    Post subject: Reply with quote

Well, you didnīt mention "Script" either. But to your problem:

Your code should send Ctrl+Right everytime an IE Window is found, not only once when itīs created.
You need to use WinGet. List, ... to get a list of all matching windows,
and send Crtl+Right only when itīs a new one.

To ensure if a Webpage is fully loaded, you could use StatusBarWait.
For IE yould also use COM to check if a page is fully loaded.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group