Jump to content
Sign in to follow this  
EmptySpace

_Ieimgclick and random number in alt text

Recommended Posts

EmptySpace

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 by Edgaras

Share this post


Link to post
Share on other sites
kaotkbliss

if autoit can read the text then you can use StringInStr to look for "image35"


010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Share this post


Link to post
Share on other sites
EmptySpace

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.

Share this post


Link to post
Share on other sites
ileandros

Post the source code of it. There are also other ways without having to use String commands


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites
somdcomputerguy

_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 by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
EmptySpace

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.

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  

×