Jump to content

Recommended Posts

Hi all,

I need some advice. I have application that allowed input text only with bar code scanner (we cannot enter text using keyboard). After scan bar code it will show some details.

Now i try automate this application. I try function ControlSetText to input text. It work but after enter the text it not show details that we want. If using with bar code scanner after scan it will auto show the details we want. Please advise.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

@spudw2k

ControlGetHandle correct. because function ControlSetText can write text at text box. Problem is if i using bar code scanner once scan it will show information that we want.

But using Autoit it can write text into text box but not show information that we want. anything i need add after controlSetText?

Share this post


Link to post
Share on other sites
Posted (edited)

^ agreed.  If you are able to write to the control, but it doesn't trigger the next action, then there is another function call automated by the barcode scan operation.

Not sure how you can trigger that function.  Is the data being presented after the barcode scan stored in another file or db you are able to access by other means?

What is the name of the software?  Maybe there is an API for it?

Is there a refresh button or anything like that?  Sorry...it's hard to make recommendations without seeing the application.

Edited by spudw2k

Share this post


Link to post
Share on other sites
Posted (edited)

please refer the attachment. Once scan bar code it will show information at Directory,Device Data No and ID.

 

ScreenHunter_01 Apr. 13 08.36.gif

Edited by Rammanan

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Understood.  Not much we can go on then unfortunately.  Have you looked into whether or not there is an API for the software, or if there are known (approved) automation methods, or if the database (if there is one) can be interacted with and what format it is?


Share this post


Link to post
Share on other sites
Posted (edited)

@Rammanan
Strange to hear since all the displayed data should be taken from a Database.

EDIT: By the way, if the ControlSetText() function is working, you should try to send a change/update message to the control :)

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...