Citrix XenApp application does not have keyboard focus when launched

citrixterminal-serverxenapp

On new or existing Citrix XenApp 4.5 servers, I am having problems streaming the Allscripts Pro EHR application via the XenApp web interface.

When users launch the application via the Citrix XenApp web interface, the application does not have focus, preventing users from typing in their username and password. If they use their mouse to select either the username or password fields, they still cannot enter any text.

However, if they do any of the following actions, they can then enter in their username and password and the application runs without problems:

  1. Click on the Login button with empty
    fields. Logon fails but they can
    then enter their credentials.
  2. Minimize the login window and then maximize it. They can then gain
    keyboard focus to enter their
    credentials.

What might be preventing this particular application from having focus when it launches?

Best Answer

Try this: launch the app seamlessly via RDP instead of Citrix.

  1. Launch mstsc
  2. Go to Options and browse to the Programs tab
  3. Check the Start the following program on connection checkbox and enter the full path and working directory of the application or script you are launching
  4. Click Connect and login.

Observer the behavior of the application. If you see the same behavior, it is almost 100% certain that the problem is in the application, and 100% certain that it is not Citrix-related.

I have seen other applications behave this way when no other windows are present in the session. If another window is open in the session when the application launches, the behavior doesn't present.