Forum Discussion
Hi,
Thanks for the quick reply Marsha. I have another question regarding OCR. So I have a code that works absolutely fine. Below is the code that works.
function Test1()
{
OCR["Recognize"](Sys["Process"]("AXISEL")["WinFormsObject"]("MainForm")["WinFormsObject"]("splitContainer1")["WinFormsObject"]("SplitterPanel", "", 1)["WinFormsObject"]("NavigationBar"))["BlockByText"]("Work Areas", spNearestToCenter)["Click"]();
}
When I copy and paste this code in script extension, I get the error message: 'spNearestToCenter' is undefined.
My question is how can I use this code in script extension.
Thanks,
Hina
See if this archived thread helps at all:
- hina3 years agoContributor
Hi Marsha,
Thanks for the reply. That's not what the problem is. Let me rephrase, so the above code works when I run it without the script extension. But when I copy and paste the same code as it is in script extension, it gives the error: 'spNearestToCenter' is undefined.
I don't know how to use OCR in script extension. Can you guide me how would I use OCR in script extension or how would I pass spNearestToCenter as parameter so that script extension recognize it.
Thanks,
Hina
Related Content
- 2 years ago
- 4 years ago
Recent Discussions
- 5 hours ago
- 6 hours ago