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 

Is it possible to do that..

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





PostPosted: Thu Feb 22, 2007 8:32 pm    Post subject: Is it possible to do that.. Reply with quote

When the script click to a web page button that check if a new page appears if not that continue to click button and check if new page appears.
Back to top
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Thu Feb 22, 2007 8:47 pm    Post subject: Reply with quote

Does the webPage load something if it does "not load" as you say?
If it only loads something (Progress at statusbar control visible) those times you want, it's detectable.
see Wait for Webpage?
Back to top
View user's profile Send private message
l4zphi5h3n7



Joined: 27 Dec 2006
Posts: 88
Location: Louisville Kentucky

PostPosted: Thu Feb 22, 2007 8:51 pm    Post subject: Reply with quote

Please clarify your question and if possible edit the subject to a more accurate summary of your issue. -thx
Back to top
View user's profile Send private message
Gandi
Guest





PostPosted: Thu Feb 22, 2007 8:53 pm    Post subject: Reply with quote

When u click on the button, that open a page, and sometime that open another page. I want that detect that another page.
Back to top
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Thu Feb 22, 2007 9:00 pm    Post subject: Reply with quote

LaZfishEnt. he can't edit it because he was Guest...

Guest, sometimes it opens 1 page, and sometimes it opens 1+1 page, right? in another window? It's possible to detect that another window appeared. Or is the same window behavior but with different content or name?
Do you detect some consistency in the name of the pages? If the "Extra" page have something different but always there in the name, you just have to detect the window with a WinExist("name") inside a loop...
Back to top
View user's profile Send private message
Gandi
Guest





PostPosted: Thu Feb 22, 2007 9:04 pm    Post subject: Reply with quote

ok...

all this page appears in the same windows, same page.

a= page 1

b= page to skip

c= true page


i got to page a, and start the script to click on button.

page b appears, that continue clicking on button.

page c appears, that detect this is the good page and msgbox me..
Back to top
Gandi
Guest





PostPosted: Thu Feb 22, 2007 9:07 pm    Post subject: Reply with quote

A way for that:

if that check on the url path (where u type http://www...)

and the same url, that continue click on button, and if that found another url (where u type http://www...) that msgbox me
Back to top
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Thu Feb 22, 2007 9:19 pm    Post subject: Reply with quote

use:
Code:
SetTitleMatchMode, 2
ControlGetText, URL, Edit1, Internet Explorer


URL becomes your current URL of the TopMost IE page.
Back to top
View user's profile Send private message
Gandi
Guest





PostPosted: Thu Feb 22, 2007 11:07 pm    Post subject: Reply with quote

SetTitleMatchMode, 2
ControlGetText, URL, Edit1, Microsoft Internet Explorer
if %url% = http://blablabla.com/blabla
msgbox, done!


how to make that correctly?
Back to top
Gandi
Guest





PostPosted: Thu Feb 22, 2007 11:11 pm    Post subject: Reply with quote

sorry i got it Smile

ty.
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