Jump to content

Need some help - Title Changing


Recommended Posts

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

Link to comment
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?:>

Link to comment
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)
Link to comment
Share on other sites

  • 3 weeks later...

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...