EmptySpace Posted June 24, 2012 Share Posted June 24, 2012 (edited) Hi, got little problem searched whole help file but cant figure out. So I want to click image in browser window. Its quite simple but alt text is "image35 470" and every time I open browser window that last 3 digits(470) changes . What I want is to ignore these numbers since there is only one image with alt text "image35". I've been searching for solution all day and was trying to make something which could get needed numbers. Edited June 24, 2012 by Edgaras Link to comment Share on other sites More sharing options...
kaotkbliss Posted June 24, 2012 Share Posted June 24, 2012 if autoit can read the text then you can use StringInStr to look for "image35" 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
EmptySpace Posted June 25, 2012 Author Share Posted June 25, 2012 With stringinstr I can check if image exists but how to click it? So it would be better to get these numbers. Maybe I should firstly check if image exists and use stringbetween? Any more sugestions? Gona do some experimeting today. Link to comment Share on other sites More sharing options...
ileandros Posted June 25, 2012 Share Posted June 25, 2012 Post the source code of it. There are also other ways without having to use String commands I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 25, 2012 Share Posted June 25, 2012 (edited) _IEImgClick - Simulate a mouse click on an image. Match by sub-string match of alt text, name, or src.Does the name or src change? Can you not use one of those? Edited June 25, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
EmptySpace Posted June 25, 2012 Author Share Posted June 25, 2012 I didint tested yet. This is how image looks<img class="border" alt="Image35 1142 " src="imgs/image.php?id=image35.png&q=1142">These highlighted numbers always changes. Link to comment Share on other sites More sharing options...
ileandros Posted June 25, 2012 Share Posted June 25, 2012 Try this: $imgs = _IETagNameGetCollection($oIE, "img") For $img In $imgs If String($oInput.classname) = "border" Then $test = $img ExitLoop But we need more information to work on it. As i already told you post the source I feel nothing.It feels great. 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