AutoHotkey Community

It is currently May 26th, 2012, 3:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: IE7 Homepage Help
PostPosted: March 18th, 2009, 8:06 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 8:25 pm 
and how is this question related to ahk?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 8:32 pm 
Offline
User avatar

Joined: August 4th, 2008, 1:22 pm
Posts: 241
Location: UK
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 8:41 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 9:09 pm 
Offline
User avatar

Joined: August 4th, 2008, 1:22 pm
Posts: 241
Location: UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 9:29 pm 
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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 18th, 2009, 9:44 pm 
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.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group