Vinodh Posted January 23, 2012 Share Posted January 23, 2012 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 Link to comment Share on other sites More sharing options...
Mikeman27294 Posted January 23, 2012 Share Posted January 23, 2012 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? Link to comment Share on other sites More sharing options...
Vinodh Posted January 23, 2012 Author Share Posted January 23, 2012 Hi Thanks for your reply.. I my case i know the image name. Image name showgrid_pic how to assign the same to vairable? Link to comment Share on other sites More sharing options...
Mikeman27294 Posted January 23, 2012 Share Posted January 23, 2012 Is this in an external program? Link to comment Share on other sites More sharing options...
Vinodh Posted January 23, 2012 Author Share Posted January 23, 2012 Yes 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