Sign in to follow this  
Followers 0
RoAndrei

Clicking this kind of button in IE

8 posts in this topic

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 :

CFNme.png

Share this post


Link to post
Share on other sites



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 ~ getENVvars
My 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

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Post your script so we can take look. :)


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My 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

 

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I learned something too. ;)

$tag.InnerText

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My 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

 

Share this post


Link to post
Share on other sites

I think controlclicks wont really work on an explorer (or any browser) reliably, you are better of with MouseClick then

Share this post


Link to post
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
Sign in to follow this  
Followers 0