Sign in to follow this  
Followers 0
Vinodh

How to click on images which is inside a panel?

5 posts in this topic

Hi Friends

I am new to AutoIt. On my application few images are there inside a panel how to click on those images?

Vinodh Anandhan

Share this post


Link to post
Share on other sites



Ok, well what you want to do is ensure that when you create the image, you assign it to a variable, like so:

$Pic1 = GuiCtrlCreatePic(...

Then in your main while loop, you insert an entry for this pic:

While 1 ;Main While Loop
    $Msg = GuiGetMsg() ;Gets CTRLID of clicked GUI CTRL
    Switch $Msg ;Creates a case statement tested agains $Msg
        Case $Pic1 ;True if $Pic1 is clicked
            ;Do Something
        Case $Pic2 ;For example, if you had a second picture, which is clicked
            ;Do Something
    EndSwitch
EndWhile

Hope that helps?

Share this post


Link to post
Share on other sites

Hi Thanks for your reply..

I my case i know the image name.

Image name showgrid_pic how to assign the same to vairable?

Share this post


Link to post
Share on other sites

Is this in an external program?

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