WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stevengraff on March 09, 2016, 09:15:45 AM

Title: Get value of a form field in a windows app
Post by: stevengraff on March 09, 2016, 09:15:45 AM
Inelegant method: sendkey {tab} til arrive in field, then sendkey {"^c"} to grab the contents.

Elegant method == ?
Title: Re: Get value of a form field in a windows app
Post by: td on March 09, 2016, 10:09:20 AM
It depends a lot on what you mean by 'windows app',  the underlying nature of the 'field', and which version of Windows you are using.   However, to start you may want to check out the Roboscripter utility.  It can be found in the WinBatch folder of your start menu.  It helps you write Control Manager extender based scripts.  It also helps you to determine whether or not the Control Manager extender can be used to obtain the information you seek.   
Title: Re: Get value of a form field in a windows app
Post by: stevengraff on March 09, 2016, 11:12:08 AM
It's an old "legacy" app, running on Win7 or Server 2008R2.  Please see video at:

http://screencast.com/t/uk4EIlqs

Thanks,
Steven
Title: Re: Get value of a form field in a windows app
Post by: td on March 09, 2016, 12:06:44 PM
Looking at a video will not offer much in the way of information.  Check out Roboscripter.
Title: Re: Get value of a form field in a windows app
Post by: stevengraff on March 09, 2016, 03:46:44 PM
I have roboscripter at the ready... how shall I use it?

(I show a clumsy attempt to use it in that video.)
Title: Re: Get value of a form field in a windows app
Post by: td on March 10, 2016, 06:36:33 AM
Read the documentation in the help file: Condolidated WIL->Wil Extenders->Control Manger Extender->Roboscripter.  It isn't that hard to figure out.