Ejaz Posted April 7, 2009 Share Posted April 7, 2009 I am looking to open a browser window after button executed. Immediately I have to fill userid and password in the window to login to the system Any help Jazz Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 7, 2009 Share Posted April 7, 2009 I am looking to open a browser window after button executed. Immediately I have to fill userid and password in the window to login to the systemAny helpJazzTry out the example scripts in the help file under the _IE* functions of the IE.au3 UDF. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Ejaz Posted April 8, 2009 Author Share Posted April 8, 2009 Try out the example scripts in the help file under the _IE* functions of the IE.au3 UDF. I couldnt find passing user id and pass and clicking OK button Link to comment Share on other sites More sharing options...
PsaltyDS Posted April 8, 2009 Share Posted April 8, 2009 I couldnt find passing user id and pass and clicking OK buttonThen you didn't bother to read Example 3 under _IEFormElementSetValue(). Go back and finish your homework. No TV, games, or cell phone until your homework is done. And don't whine to your mother about it, she'll back me up! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Ejaz Posted April 9, 2009 Author Share Posted April 9, 2009 Then you didn't bother to read Example 3 under _IEFormElementSetValue(). Go back and finish your homework. No TV, games, or cell phone until your homework is done. And don't whine to your mother about it, she'll back me up! alrite no tv games n other stuff, n mom backs u up !!! good work for shakin me up. Now come to the pointLogin work for hotmail, why it isnt working for "http://mail.yahoo.com" Bear with me as mm new to this #include <IE.au3>; Create a browser window and navigate to hotmail$oIE = _IECreate ("http://www.hotmail.com"); get pointers to the login form and username, password and signin fields$o_form = _IEFormGetObjByName ($oIE, "f1")$o_login = _IEFormElementGetObjByName ($o_form, "login")$o_password = _IEFormElementGetObjByName ($o_form, "passwd")$o_signin = _IEFormElementGetObjByName ($o_form, "SI")$username = "xyz"$password = "abc"; Set field values and submit the form_IEFormElementSetValue ($o_login, $username)_IEFormElementSetValue ($o_password, $password)_IEAction ($o_signin, "click") Link to comment Share on other sites More sharing options...
Authenticity Posted April 9, 2009 Share Posted April 9, 2009 I have a naive thinking but did you actually thought that changing the URL will work for you? Yahoo! is using different names for the form, the inputs, etc.. Download DebugBar to get these elements names or IDs or do it the long way and read the source if you'd like to. Link to comment Share on other sites More sharing options...
rajeshontheweb Posted April 9, 2009 Share Posted April 9, 2009 (edited) please use code box for codes that makes it take lower space, makes it look more readable wrap it in "[ code ] & [ /code ]" tags Edited April 9, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Ejaz Posted April 9, 2009 Author Share Posted April 9, 2009 Yup offcourse i tried this with yahoo url, sorry for leavin hotmail in the example earlier [code ] #include <IE.au3> ; Create a browser window and navigate to hotmail $oIE = _IECreate ("http://mail.yahoo.com") ; get pointers to the login form and username, password and signin fields $o_form = _IEFormGetObjByName ($oIE, "f1") $o_login = _IEFormElementGetObjByName ($o_form, "login") $o_password = _IEFormElementGetObjByName ($o_form, "passwd") $o_signin = _IEFormElementGetObjByName ($o_form, "SI") $username = "xyz" $password = "abc" ; Set field values and submit the form _IEFormElementSetValue ($o_login, $username) _IEFormElementSetValue ($o_password, $password) _IEAction ($o_signin, "click") Link to comment Share on other sites More sharing options...
Ejaz Posted April 9, 2009 Author Share Posted April 9, 2009 Ok , actually i dont want to login to yahoo with that but thanks for your advice using debugger. What actually i want is to login in to equipment whose ip is "10.0.0.1" After trying "10.0.0.1" in the broswer the dialog box appears for the user id and password to log in. This is not a form, and the dialog box require user id and pass and OK or Cancle button. I hope it is clear. Any help !! Link to comment Share on other sites More sharing options...
MrMitchell Posted April 9, 2009 Share Posted April 9, 2009 Do you have the AutoIt Window Info Tool? That would probably help as well. Look up WinActivate, WinWaitActive, WinActive, ControlSend, Control Click. See what they do and how they could work for you. If the title of the pop-up window is something like "Connect to ......" then you could use something like WinActivate("Connect to") or WinWaitActive("Connect to"). To input the username/password, you would use the Window Info Tool to grab the name of the input controls, usually it's like Edit1,Edit2,Edit3,... then you could use ControlSend("Connect to", "", "Edit1", "username") to input into the edit boxes. To click OK: ControlClick("Connect to", "OK", "Button2") Again you have to make sure all your control names are correct. And this is just one way you could go about it. Good Luck 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