WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: m.jepsen@bakker.biz on September 11, 2013, 02:03:21 AM

Title: Read fieldcontent in a widowsapplication
Post by: m.jepsen@bakker.biz on September 11, 2013, 02:03:21 AM
Hi,
I need to read the content in a field in a windowsapplication. I should put the content in a variable, and based on the value I will do different actions. What functions can I use?

I have so far only sent in values to the windowsapplication with the SendKey function - I have never read anything.

gr
Mats
Title: Re: Read fieldcontent in a widowsapplication
Post by: Deana on September 11, 2013, 10:18:29 AM
What type of field exactly? If it is a Window Control I recommend using the RoboScripter tool. Here is a nice tutorial to help get you started: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+Tutorials+A~look~at~RoboScripter.txt
Title: Re: Read fieldcontent in a widowsapplication
Post by: m.jepsen@bakker.biz on September 12, 2013, 02:51:21 AM
Hi Deana

It's a alphanumeric field with a dropdown see attachment.
(I hope alphanumeric is an OK word to use - I'm an old cobol/mainframe programmer and in those days we had alphanumeric and numeric fields).

I'll dig into your tutorial.

gr
Mats
Title: Re: Read fieldcontent in a widowsapplication
Post by: Deana on September 14, 2013, 04:02:47 PM
Take a look at the Roboscripter. It should be able to handle a drop listboxcontrol.