RoAndrei Posted January 22, 2015 Share Posted January 22, 2015 So, how should i click this button in an IE form created with autoit , if it has no name/id whatever. The button opens a subwindow to a login form, and it looks like this : Link to comment Share on other sites More sharing options...
MikahS Posted January 22, 2015 Share Posted January 22, 2015 Have a look at this topic: >link I know it is by class name. But using _IETagNameGetCollection you can do the same kind of for loop to get all the "span" tags. Then, you can check by using the name dot notation (ex: $tag.name) to get whatever string that span element is holding. Then by checking for which one says log in, you can then specify that element and use _IEAction to click on that element. Hope that helps. 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...
RoAndrei Posted January 22, 2015 Author Share Posted January 22, 2015 Thanks, unfortunately i have already tried that, maybe i did it wrong but i still can't make it work. Here is an example of that kind of link, if you wanna take a look : http://www.twitch.tv/gamewith Link to comment Share on other sites More sharing options...
MikahS Posted January 22, 2015 Share Posted January 22, 2015 Post your script so we can take look. 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...
RoAndrei Posted January 22, 2015 Author Share Posted January 22, 2015 Already deleted it and trying now with controlclicks, the whole codes just clicks that login button , enter the user and pass and submits, nothing more right now. So there is no code, sorry Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 22, 2015 Moderators Share Posted January 22, 2015 @MikahS... $tag.name or $tag.innerText? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MikahS Posted January 23, 2015 Share Posted January 23, 2015 (edited) I learned something too. $tag.InnerText Edited January 23, 2015 by MikahS 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...
SorryButImaNewbie Posted January 23, 2015 Share Posted January 23, 2015 I think controlclicks wont really work on an explorer (or any browser) reliably, you are better of with MouseClick then 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