Jump to content

Reirect to another webpage


Recommended Posts

I have this function

function loadCOPD() {

AutoItXDLL.Run(pathToExecutable);

AutoItXDLL.WinWaitActive("Login","","5");

AutoItXDLL.Send(username);

AutoItXDLL.Send("{TAB}");

AutoItXDLL.Send(password);

AutoItXDLL.Send("{ENTER}");

}

Once this has ran i am authenticated into my application. I then want to be redirected to another webpage to begin a search.

Is there a quickway to alter or redirect the webpage url that the user is currently on?

Thanks

StewartBlair :)

Link to comment
Share on other sites

The actual version of autoit can do this , however, i don't use the ActiveX version , therefore , no idea how .

On the actual version , this can be done by the

_IENavigate function .

However, you'll need to attach to a browser before performing the action by using _IEAttach

Link to comment
Share on other sites

if he can tell us more clearly what he means it would be easier to help if he wants the script to navigate to a new page the bit i posted before works great if he wants the page it self to change then he can use a bit of php or html php works better because using html will break the chain of pages meaning the back button wont work.

A great place to start Autoit 1-2-3

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