hennes000 Posted October 31, 2014 Share Posted October 31, 2014 (edited) Hi all. I would like the macro to click on the text 0MEG, been exploring OCR and control click. Wondering if there is a way to get autoit to detect the position of the text and then send a click over. Any help would be much appreciated. thank you. Edited November 2, 2014 by hennes000 Link to comment Share on other sites More sharing options...
junkew Posted October 31, 2014 Share Posted October 31, 2014 probably ask the component supplier http://helpcentral.componentone.com/nethelp/vsflexgrid8/#!Documents/vsflexgridproperties.htm or ask the developers of that application to fill properties like accessiblename http://helpcentral.componentone.com/nethelp/vsflexgrid8/#!Documents/accessiblenameproper.htm or check if this iuiautomation helps see faq question 31 http://helpcentral.componentone.com/nethelp/vsflexgrid8/#!Documents/accessiblenameproper.htm FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
hennes000 Posted November 2, 2014 Author Share Posted November 2, 2014 Wondering if OCR can be used to detect the letters. Any suggestions on how to implement this? Link to comment Share on other sites More sharing options...
junkew Posted November 2, 2014 Share Posted November 2, 2014 Wondering if you tried the other suggestions as given but anyway search for findbmp and ocr in the forum and you will find some hits FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Solution AutID Posted November 2, 2014 Solution Share Posted November 2, 2014 OCR can be used but they are not something you could rely on a script. However you could use an imagesearch if you want which would check for the text and give you its coords. It isn' t something I would do though. Try what juknew proposed you. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
hennes000 Posted November 5, 2014 Author Share Posted November 5, 2014 junkew AutID Thank you both for your suggestions. managed to get imagesearch to do what i want. 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