Sign in to follow this  
Followers 0
Slymy

Need some help - Title Changing

8 posts in this topic

Hello everyone.

I got into a little problem and I need some help.

Let's say I want to open some links from a text file, I managed to do that, to open the links from Notepad to IExplorer.

Now, for example, when I start IE, I have the following title : Blank Page - Windows Internet Explorer.

After I navigate to the link I need, I am asked for an username and password.

After logging in with the preset username and password, the title of the webpage will change into: Welcome - Your Account - Windows Internet Explorer.

I am trying to do something like, if the title changes to Welcome - Your Account - Windows Internet Explorer, to save the link into notepad, and if the title isn't changing, i want it to go to the next link from notepad.

Any ideeas?

Thanks.

(Sorry for the grammar).

Share this post


Link to post
Share on other sites



Opt(WinTitleMatchMode,3)
If WinExists('Welcome - Your Account - Windows Internet Explorer') 
Then ;link to notepad
Else
;Open next link
EndIf

That should get you something to work with.

Share this post


Link to post
Share on other sites

Thank you very much for your help dufran3, I`ll try to work with what you gave me, if I`ll need some help again, I`ll post here.

Thanks again.

Share this post


Link to post
Share on other sites

I'm back. :unsure:)

I got a little problem now...

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutoIT Projects\asd.au3"    
C:\AutoIT Projects\asd.au3 (76) : ==> Missing separator character after keyword.: 
Opt(WinTitleMatchMode,3) 
Opt(WinTitleMatchMode^ ERROR
>Exit code: 1    Time: 0.222

Any help please?:>

Share this post


Link to post
Share on other sites

I'm back. :unsure:)

I got a little problem now...

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\AutoIT Projects\asd.au3"    
C:\AutoIT Projects\asd.au3 (76) : ==> Missing separator character after keyword.: 
Opt(WinTitleMatchMode,3) 
Opt(WinTitleMatchMode^ ERROR
>Exit code: 1    Time: 0.222

Any help please?:>

oops, my fault, was in a hurry yesterday. Should be:

Opt("WinTitleMatchMode",3)

Share this post


Link to post
Share on other sites

Thanks, it works now, but I got into another problem...

I can't make it loop to the next link (Else function...)

Share this post


Link to post
Share on other sites

show me what you have so far

Share this post


Link to post
Share on other sites

Sorry for the late reply.

Here is what I've got so far.

ShellExecute("C:/Test.txt");
Sleep(100)
WinWaitActive("Test.txt - Notepad");
Sleep(100)
Send("{CTRLDOWN}")
Sleep(20)
Send("{SHIFTDOWN}")
Sleep(20)
Send("{RIGHT}")
Sleep(50)
Send("{CTRLUP}")
Sleep(20)
Send("{SHIFTUP}")
Sleep(20)
Send("{CTRLDOWN}")
Sleep(50)
Send("C");
Sleep(50)
Send("{CTRLUP}")
Sleep(500)
ShellExecute("IExplore.exe")
Sleep(200)
Send("{ESC}")
Sleep(50)
Send("{ESC}")
Sleep(50)
Send("{ESC}")
Sleep(50)
WinWaitActive("Blank Page - Windows Internet Explorer")
Sleep(20)
Send("https://")
Sleep(100)
Send("{CTRLDOWN}")
Sleep(50)
Send("V");
Sleep(50)
Send("{CTRLUP}")
Sleep(30)
Send("/local/")
Sleep(50)
Send("{ENTER}")
Sleep(100)
WinWaitActive("Certificate Error: Navigation Blocked - Windows Internet Explorer")
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("{ENTER}")
Sleep(600)
WinWaitActive("Windows Security")
Sleep(100)
Send("8888")
Sleep(50)
Send("{TAB}")
Sleep(50)
Send("8888")
Sleep(50)
Send("{ENTER}")
Sleep(2000)
Opt("WinTitleMatchMode",3)
Sleep(2000)
If WinExists('Welcome - Your Account - Windows Internet Explorer') Then
Send("{TAB}");
Sleep(100)
Send("{CTRLDOWN}")
Sleep(50)
Send("c")
Sleep(50)
Send("{CTRLUP}")
Sleep(100)
ShellExecute("C:/good.txt")
Sleep(200)
WinWaitActive("good.txt - Notepad")
Sleep(100)
Send("{CTRLDOWN}")
Sleep(50)
Send("{RIGHT}")
Sleep(50)
Send("{RIGHT}")
Sleep(50)
Send("{RIGHT}")
Sleep(50)
Send("{CTRLUP}")
Sleep(50)
Send("{ENTER}")
Sleep(50)
Send("{CTRLDOWN}")
Sleep(50)
Send("v")
Sleep(300)
Send("{CTRLUP}")
Sleep(100)
Send("{ALTDOWN}")
Sleep(50)
Send("{F4}")
Sleep(100)
Send("{ALTUP}")
Sleep(100)
WinWaitActive("Notepad")
Sleep(2000)
Send("{ENTER}")
Sleep(200)
Send("{ALTDOWN}")
Sleep(300)
Send("{TAB}")
Sleep(200)
Send("{ALTUP}")
Sleep(500)
Send("{DOWN}")
Sleep(100)
Send("{CTRLDOWN}")
Sleep(100)
Send("{SHIFTDOWN}")
Sleep(100)
Send("{LEFT}")
Sleep(100)
Send("{SHIFTUP}")
Sleep(150)
Send("C")
Sleep(150)
Send("{CTRLUP}")

Else
;Open next link
EndIf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0