Can an application refuse the Sendkeys function? I am trying to write an app that will paste text into an application called Cerner which runs via a secure vpn. My code works fine going into notepad or word. I doesn't seem to do anything with the Cerner program.

I thought that the sendkeys command basically mimiced the keyboard.

Member Avatar for Huntondoom

true but the focus would have to lie inside of the textbox

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.