Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert Windows Text to a More Generalized Code
#1
Greetings.

I have this code below, which searches for text on our CRM and then clicks it.
So, ideally it searches in a particular control (Multi Tabs) area.
It uses the Rect feature which does not work on other machines.
How do I go about this?
I tried the find image feature but that too gives troubles.

Macro Get Model
Code:
Copy      Help
,w5=id(100 wMain) ;;KCMLGridPad_32
,SetRect &r 114 21 333 46
,wt.Init(w5 r); 1
,wt.Mouse(4 wt.Find(varVin 0x3))
Best Regards,
Philip
#2
Accessible object functions cannot be used too?

Why WindowText with RECT does not work on other machines? If different window size, your macro can resize it. If different DPI, your macro can resize RECT.
#3
Thanks Gintaras.

In the meanwhile I managed WindowsText without RECT.
It works now.
Best Regards,
Philip


Forum Jump:


Users browsing this thread: 1 Guest(s)