Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Find ObjId when shown up?

$
0
0
Hello everyone
I'm a new user of AutoIT and i would like to create a script for my school project, so it'll be easier for me to present my school project.

I have made a Grocery website for my school project, and it uses ID's for the food products. I would like it to automaticly choose a specific food in my own order. But problem is, that I've coded the website so its not showing all foods at once. So i would like it to goto the food WHEN it's shown.
Basicly, it's like:
No Food = Nothing happens -> When Food shows up (Same page) = MsgBox will be shown.

Let me know if i have to explain further. It's kinda hard to explain sorry ^^

This is currently what I've tried but couldn't get it to work.

[ autoit ]      
 Local $food = _IEGetObjById ($oIE,"*") If $Food = 182 Then MsgBox(0, "YAAAAY", "Gratz, it worked!") Else MsgBox(0, "Damn", "Sorry it didn't work ...") EndIf

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>