How to click text after finding it without using MODI?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
shammowla
Newbie
Posts: 1
Joined: Sun May 08, 2011 11:03 am

How to click text after finding it without using MODI?

Post by shammowla » Sun May 08, 2011 11:09 am

Ive been up for the past 7 hours trying to figure this out. I installed office 2007 with modi and it was unsuccessful. Basically trying to make a macro where it looks for a series of words and when a certain word shows up for example "bacon" it will then click on the word "bacon" with the measured coordinates. If someone can please help it would be greatly appreciated.

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon May 09, 2011 4:50 pm

Have you looked at this link? http://www.mjtnet.com/usergroup/viewtop ... light=modi



If this is a browser based application, then what I do is to use HTTPRequest to fetch the page initially, or you can script an instance of IE using VBScript. Then using string parsing (like Position>) or Regular expressions, find the HTML link which contains the word you are interested in. Then you can use VBScript to "click" the link, or use HTTPRequest to retrieve or post the information.

If you don't have a clue what HTML is or VBScript, then this is not the solution for you --- unless you are willing to do some research and learn a few new things.

You might be able to use image recognition built into Macro Scheduler, however that requires you to store a sample image of every word you might want to "click" on.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts