Vampirs Posted February 9, 2015 Share Posted February 9, 2015 (edited) Hello. I am sorry for my first post. I understood my mistake I hope this time i get better chance OK i traying make auto login script. I find tutorial and i can make it till submint buttone. Script fill username section. It fill pass section but get error and don't pres login button. For login and pass i use _IEGetObjById comand. Bet i don't know with one i need to use for login buttone. All what i get when i inspect elements is <a onclick="SubmitLogin(' ' , ' ');"href="#"> So what kind of comand i need to use for geting this press? I tray this Local $button = _IEGetObjById ($oIE, "#") But i think it's wrong. And final : _IEAction ($button, "click") Edited February 9, 2015 by Vampirs Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 9, 2015 Moderators Share Posted February 9, 2015 Vampirs, I am sorry for my first post. I understood my mistakeExcellent. I hope this time i get better chanceAs you have apologised so pleasantly, we will forget the first thread. So you do indeed get another chance - do not waste it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MikahS Posted February 9, 2015 Share Posted February 9, 2015 Have a look at the >IE UDF to get DOM object by XPath by jdelaney. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Vampirs Posted February 9, 2015 Author Share Posted February 9, 2015 Have a look at the >IE UDF to get DOM object by XPath by jdelaney. Thanks for link. But i am wery new on this. I don't understood it. Can you so me with one is corect for my post and write haw you know it? Link to comment Share on other sites More sharing options...
MikahS Posted February 9, 2015 Share Posted February 9, 2015 Here is a> topic where the usage is explained and then an example is shown in post #4. The topic on IEbyXPATH has an example in the main topic. That should help you get started: $xpath = "//button[@onclick='return (submitLogin())']" Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
jdelaney Posted February 9, 2015 Share Posted February 9, 2015 (edited) You can also use it like this: $xpath = "//a[Contains(@onclick,'submitLogin')]" Oops, just saw this is a link (which is a button, but the element is 'a'). Edited February 9, 2015 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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