Hi everybody,

I was making an application that continuosly loads a Java String into a TextField in another program and then hits enter (hits the enter button in the external application) and then reeats the process.

Can you tell me how 2 do this?

Thanx,
C++

hmm im not sure to what extent java can utilize the windows api so I'm not exactly sure how to tackle this one in java. In C/C++ however, using the windows api you can grab the windows HWND, then using that get the HWND of the texfield. After that use SetDlgItemText to set the text of the textfield. Finally emulate a "enter" keystroke using keeyboard event function.

more help plz...

Is this other application one that you made, or just some other window application?

some other window ap - ex: IE

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.