viewpoint-particle

Author Topic: Get and send text to TAdvStringGrid  (Read 238 times)

Jeremy Whilde

  • Jr. Member
  • **
  • Posts: 54
Get and send text to TAdvStringGrid
« on: July 02, 2021, 03:21:38 am »
Just wondering if anyone has ever worked out a way using WinBatch to get text and send text to a TAdvStringGrid this is a Delphi & C++ Builder type component produced by TMSsoftware?

Tried things like the cGet extender functions but none seem to return anything!

Thanks JW

td

  • Tech Support
  • *****
  • Posts: 3947
    • WinBatch
Re: Get and send text to TAdvStringGrid
« Reply #1 on: July 02, 2021, 07:03:05 am »
Have your tried to run the Analyzer script against the window hosting the control? It would at least tell you something about what you are dealing with. You could also use Roboscript to determine which, if any, WinBatch or Control Manager functions can communicate with your target windows.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

Jeremy Whilde

  • Jr. Member
  • **
  • Posts: 54
Re: Get and send text to TAdvStringGrid
« Reply #2 on: July 06, 2021, 06:24:58 am »
Tony

OK, thanks yes I have tried both the Analyzer and RoboScripter all these show are the class name of TAdvStringGrid with its handle and the parent and child windows hosting this, but none of the text in the TAdvStringGrid is seen or seems accessible by these. I suppose this is why the cGet extender functions cannot access it! I guess its only addressable through or by using Delphi code? Was hoping someone may have had some dealings or knowledge with this type of grid display component but guess I'm out of luck.

Thanks JW

td

  • Tech Support
  • *****
  • Posts: 3947
    • WinBatch
Re: Get and send text to TAdvStringGrid
« Reply #3 on: July 06, 2021, 06:59:41 am »
If the main window has a handle and child windows with handles then at least some of the Control Manager functions will work with your grid. If on the other hand, your grid is implemented as a single window with graphic widgets drawn directly on it the task would be more complicated. If the former is the case then there is a good chance you can navigate to the child window of interest and some small possibility that you can retrieve text from it.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

  • Pundit
  • *****
  • Posts: 1743
    • Data & Stuff Inc.
Re: Get and send text to TAdvStringGrid
« Reply #4 on: July 06, 2021, 07:13:57 am »
Have you tried WIL Type Viewer to see if there is a COM object?

Jim

td

  • Tech Support
  • *****
  • Posts: 3947
    • WinBatch
Re: Get and send text to TAdvStringGrid
« Reply #5 on: July 06, 2021, 08:52:59 am »
Based on a very quick and dirty scan of the documentation it only has two application interfaces mentioned in examples. Delphi and C++. There is no mention of late-bind COM Automation which is the type of interface needed for TypeViewer detection.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade