
{"id":267,"date":"2011-05-16T17:05:10","date_gmt":"2011-05-16T17:05:10","guid":{"rendered":"http:\/\/tech-no.104.210.61.21.xip.io\/?p=267"},"modified":"2011-06-02T00:26:38","modified_gmt":"2011-06-02T00:26:38","slug":"citrix-seamless-applications-lose-focus-fixed","status":"publish","type":"post","link":"https:\/\/tech-no.org\/?p=267","title":{"rendered":"Citrix Seamless Applications lose focus. FIXED!"},"content":{"rendered":"<h2><a href=\"http:\/\/tech-no.104.210.61.21.xip.io\/wp-content\/uploads\/sites\/4\/2011\/05\/citrix.jpg\"><img loading=\"lazy\" class=\"alignleft size-full wp-image-272\" title=\"citrix\" src=\"http:\/\/tech-no.104.210.61.21.xip.io\/wp-content\/uploads\/sites\/4\/2011\/05\/citrix.jpg\" alt=\"\" width=\"257\" height=\"101\" srcset=\"https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2011\/05\/citrix.jpg 257w, https:\/\/tech-no.org\/wp-content\/uploads\/sites\/4\/2011\/05\/citrix-150x58.jpg 150w\" sizes=\"(max-width: 257px) 100vw, 257px\" \/><\/a>Fun with Citrix and Legacy Applications<\/h2>\n<p>Legacy applications sometimes have issues when you publish them as a seamless application in Citrix Xenapp. We recently came across this when publishing McKesson Practice Plus and found a fix that seems to work well. I wanted to pass this along since im sure there are plenty of Citrix admins that have had this issue and reverted to a published desktop to help with the issue and maybe this will help someone out there.<\/p>\n<p>&nbsp;<\/p>\n<h3>Summary of the issue:<\/h3>\n<p>When using the application (which is a couple of .exe files) the test users would complain that then worked mainly with the keyboard and sometimes in the middle of working on the program, another application would launch. we thought it was a hotkey they were pressing and we chased our tail looking for answers. It turns out the application was losing focus and the thin client desktop became the focus and pressing enter launched whatever the cursor was last on. The following article on Citrix had a listing of &#8220;SeamlessFlags&#8221; and we found that 0x8000 was the value we needed to stop this behavior.<\/p>\n<p>We also added 0x100 to control how users launch applications and to set the preference to re-use existing sessions in favor of load balancing.<\/p>\n<p><strong>Seamless Global Registry Flags<\/strong><\/p>\n<p>These values affect all Seamless connections to a server.<\/p>\n<p>To  configure a Global Seamless Flag, create the value SeamlessFlags, and  then specify a value corresponding to one or more of the choices listed  below:<\/p>\n<p>Registry Key:  HKEY_LOCAL_MACHINE\/System\/CurrentControlSet\/Control\/Citrix\/wfshell\/TWI<br \/>\nValue Name:  SeamlessFlags<br \/>\nValue Type:  REG_DWORD<br \/>\nValues: 0x8000<\/p>\n<h3>Seamless Configuration Settings &#8211; Read the link below for all settings you can use.<\/h3>\n<div>Document ID:  \t\t\t \t\t <strong>CTX101644<\/strong> \/\u00a0\u00a0\t   \t\t Created On: Apr 23, 2003 \t\t \t \t\t \u00a0\u00a0\/\u00a0\u00a0\t \t\t Updated On: May 5, 2011<\/div>\n<p><a title=\"http:\/\/support.citrix.com\/article\/CTX101644\" href=\"http:\/\/support.citrix.com\/article\/CTX101644\" target=\"_blank\">http:\/\/support.citrix.com\/article\/CTX101644<\/a><\/p>\n<h3>Case Study: Seamless Flag Troubleshooting &#8211; Read this article if you want to understand how to quickly find the settings that you may need to apply.<\/h3>\n<p>Document ID:  \t\t\t \t\t <strong>CTX127043<\/strong> \/\u00a0\u00a0\t   \t\t Created On: Nov 4, 2010 \t\t \t \t\t \u00a0\u00a0\/\u00a0\u00a0\t \t\t Updated On: Nov 4, 2010<\/p>\n<p><a title=\"http:\/\/support.citrix.com\/article\/CTX127043\" href=\"http:\/\/support.citrix.com\/article\/CTX127043\" target=\"_blank\">http:\/\/support.citrix.com\/article\/CTX127043<\/a><\/p>\n<p>We ended up using the following settings:<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"#ffffff\">\n<tbody>\n<tr>\n<td valign=\"top\" bgcolor=\"#ffffff\">14.<\/td>\n<td valign=\"top\" bgcolor=\"#ffffff\">DON\u2019T SEND DISABLE, DISABLE LOAD CHECK<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" bgcolor=\"#ffffff\"><\/td>\n<td valign=\"top\" bgcolor=\"#ffffff\">Value: 0x8000, 0x100\u00a0 combined to 0x8100<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" bgcolor=\"#ffffff\"><\/td>\n<td valign=\"top\" bgcolor=\"#ffffff\">Explanation:  Setting this Flag reverses the behavior introduced in version 8.0 of  the Win32 ICA client for Seamless connections of sending the WS_DISABLED  Window Style to the client. Supporting this Window Style would cause a  small number of custom applications to lose focus to a local application  window running on the workstation when the Seamless Application would  set this Window Style and also have an invisible window in the  background. The reason for introducing the ability to send the  WS_DISABLE window style to the client was to support the implementation  of Seamless application windows responding to the \u201cMinimize All\u201d or  \u201cShow Desktop\u201d feature on Windows workstations. Therefore, setting this  Flag has an affect on how Seamless Windows will respond to the windows  messages sent by using the \u201cMinimize All\u201d or \u201cShow Desktop\u201d feature.&nbsp;<\/p>\n<p>Support  for this Seamless Flag can only be activated by applying both a Win32  client and Server update that support it. See the following  requirements.<\/p>\n<p>&nbsp;<\/p>\n<p>Explanation: By default Load Balancing takes precedence over  Session Sharing on a fully loaded server. New connections are routed to  other less busy servers, rather than have their sessions shared with  existing connections. Setting this Flag along with the required updates  listed below, will allow session sharing of connections on fully loaded  servers. Without this, Registry Value set or setting this value to 0x0  retains the default load balancing behavior<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" bgcolor=\"#ffffff\"><\/td>\n<td valign=\"top\" bgcolor=\"#ffffff\">Supported Platforms and Required Hotfixes:<\/p>\n<p>Not needed for xenapp 4.5 and 5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Fun with Citrix and Legacy Applications Legacy applications sometimes have issues when you publish them as a seamless application in Citrix Xenapp. We recently came across this when publishing McKesson Practice Plus and found a fix that seems to work well. I wanted to pass this along since im sure there are plenty of Citrix &hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/267"}],"collection":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267"}],"version-history":[{"count":6,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/267\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}