anixon Posted June 13, 2007 Share Posted June 13, 2007 I am using the 'Send' function to send input to a user logon and password published on a web page. After inputting the user id and password for the web page to process the logon you are required to click I guess a control which appears on the screen called "Login" to select "Login" and perform the process the script performs the following routine: send("{tab 3}{Enter}") Which works just fine provided that the correct User ID and Password has been input. In the AutoIT Window Info program the "Login" control on the Webpage has no ID. My question put simply is it possible to select 'Login' directly without having to Tab to the control as the number of 'tabs' may vary between different websites and I have a need to make the application more universal? Cheers Ant.. Link to comment Share on other sites More sharing options...
Kogmedia Posted June 13, 2007 Share Posted June 13, 2007 I am using the 'Send' function to send input to a user logon and password published on a web page. After inputting the user id and password for the web page to process the logon you are required to click I guess a control which appears on the screen called "Login" to select "Login" and perform the process the script performs the following routine:send("{tab 3}{Enter}")Which works just fine provided that the correct User ID and Password has been input. In the AutoIT Window Info program the "Login" control on the Webpage has no ID.My question put simply is it possible to select 'Login' directly without having to Tab to the control as the number of 'tabs' may vary between different websites and I have a need to make the application more universal?CheersAnt..Look at the _IE functions [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
anixon Posted June 13, 2007 Author Share Posted June 13, 2007 Look at the _IE functionsThanks for the reply unfortunetly I have not been able to get my head around what _IE function is applicable if you can give me an example that would work with the following Web page that would be terrific.www3.netbank.commbank.com.au/netbank/bankmainCode to select and click on 'Login'Thanks Ant... Link to comment Share on other sites More sharing options...
Valuater Posted June 13, 2007 Share Posted June 13, 2007 There are examples of use in Welcome to Autoit 1-2-3 8) Link to comment Share on other sites More sharing options...
anixon Posted June 13, 2007 Author Share Posted June 13, 2007 There are examples of use inWelcome to Autoit 1-2-38)Thanks for your assistance this works where the Web Page is not open#include <IE.au3>$oIE = _IECreate()_IENavigate($oIE, "https://www3.netbank.commbank.com.au/netbank/bankmain")$oForm = _IEFormGetObjByName($oIE, "LoginForm")$oQuery = _IEFormElementGetObjByName($oForm, "Login")_IEFormSubmit($oForm)_IELoadWait($oIE)ExitHow do I make it work where the Web Page is already open and all I want to do is process the login?Ant... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now