Jump to content

Get properties of current object


katwes
 Share

Recommended Posts

Hello,

I just begin with autoit.

I'd like to open url which are link to images.

But the _IEImgGetCollection() don't give me all the images, so I use mousemove and mouseclick and send to open these links

I'd like to know if it's possible to get informations about the selected image (position, title) to reposition the cursor

I also need to get items of right clic menu. All items are not always available.

Is it possible ?

Can I use winwait and controlclic in this case ?

Thank you for your answers.

Link to comment
Share on other sites

$posX0=250
$posY0=250
for $k=1 to 10
for $i=0 to 4
  for $j=0 to 5
   $posX=$posX0+$j*250
   $posY=$posY0+$i*240
   sleep(1000)
   MouseClick("right",$posX,$posY)
    sleep(1000)
   Send("{DOWN 2}")
   sleep(2000)
   Send("{ENTER}")
  next
next
MouseWheel("down",8)
sleep(2000)
next

the mouse position isn't exact and after some loop the focus is no more on an image.

So I would know the position of the selected image to reposition the mouse.

and I would know if in the right clic menu I have "open in a new tab" or something else.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...