<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: X Command Causes Windows Explorer Window to Come Forward in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397615#M278250</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12230"&gt;@asumsie&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The focus shift happens when I issue any&amp;nbsp;X command with option XSYNC.&amp;nbsp; Opening Excel is&amp;nbsp;an example I can provide publically. Excel does indeed open&amp;nbsp;but prior to Excel opening, SAS is shifted to the background, File Explorer shifts&amp;nbsp;to the&amp;nbsp;foreground, then Excel opens in the foreground.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's what I would expect to happen.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 21:10:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-20T21:10:57Z</dc:date>
    <item>
      <title>X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397294#M278241</link>
      <description>&lt;P&gt;When running a X command in SAS Interactive 9.4 1M3, if I have a windows explorer window open and not minimized&amp;nbsp;it will cause the explorer window to come forward and shift SAS Interactive to the background, as though I ALT-TAB'd to Explorer. Is there a way to prevent this from occuring?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I minimize the Windows Explorer window, or don't have one open at all, then no focus shift occurs.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 00:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397294#M278241</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T00:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397308#M278242</link>
      <description>&lt;P&gt;That's odd. Have you tried using the noxwait and noxsync options see if they make a difference?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 03:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397308#M278242</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-20T03:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397458#M278243</link>
      <description>&lt;P&gt;Are you sure that the window isn't a command window?&lt;/P&gt;
&lt;P&gt;Or perhaps you should show the specific X command you are issuing.&lt;/P&gt;
&lt;P&gt;With 9.4.4 a basic X command on my system opens a command window.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 14:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397458#M278243</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T14:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397475#M278244</link>
      <description>&lt;P&gt;What does your code look like? Perhaps there's a mistake in your X command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version of Windows are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397475#M278244</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-20T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397543#M278245</link>
      <description>&lt;P&gt;This is on Windows 7 Professional.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue&amp;nbsp;can be modulated&amp;nbsp;with XSYNC/NOXSYNC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Causes focus shift to Windows File Explorer and SAS Interactive&amp;nbsp;to go to background focus:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noxwait&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;xsync&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'"C:\Program Files\Microsoft Office\Office15\EXCEL.EXE"'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;SAS Interactive&amp;nbsp;stays in foreground:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noxwait&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noxsync&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;'"C:\Program Files\Microsoft Office\Office15\EXCEL.EXE"'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397543#M278245</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T17:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397598#M278247</link>
      <description>Does Excel open as well?
I no longer have Office 15 installed but the equivalent code for my version opens Excel and shifts the focus to Excel, which is what I would expect to happen.</description>
      <pubDate>Wed, 20 Sep 2017 20:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397598#M278247</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T20:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397602#M278248</link>
      <description>&lt;P&gt;Just an FYI - if you're using DDE in your code, you CANNOT use your computer while it's running and need to wait for it to finish. You'll get weird behaviours if you do.&amp;nbsp;&lt;BR /&gt;I've seen it dump the data into Outlook instead if I switched the 'focus' there instead.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 20:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397602#M278248</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-20T20:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397614#M278249</link>
      <description>&lt;P&gt;The focus shift happens when I issue any&amp;nbsp;X command with option XSYNC.&amp;nbsp; Opening Excel is&amp;nbsp;an example I can provide publically. Excel does indeed open&amp;nbsp;but prior to Excel opening, SAS is shifted to the background, File Explorer shifts&amp;nbsp;to the&amp;nbsp;foreground, then Excel opens in the foreground.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397614#M278249</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T21:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397615#M278250</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12230"&gt;@asumsie&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The focus shift happens when I issue any&amp;nbsp;X command with option XSYNC.&amp;nbsp; Opening Excel is&amp;nbsp;an example I can provide publically. Excel does indeed open&amp;nbsp;but prior to Excel opening, SAS is shifted to the background, File Explorer shifts&amp;nbsp;to the&amp;nbsp;foreground, then Excel opens in the foreground.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's what I would expect to happen.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397615#M278250</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-20T21:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397616#M278251</link>
      <description>&lt;P&gt;Why would you expect Windows File Explorer to shift to the foreground?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397616#M278251</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T21:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397619#M278252</link>
      <description>&lt;P&gt;There's no use of DDE in this example.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397619#M278252</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397620#M278253</link>
      <description>&lt;P&gt;Sorry, just tested. No, it doesn't switch to Windows File Explorer, it switches off of SAS to the Microsoft Command interface which isn't shown, but is being used to execute the command. It's the black command line screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X command are really just any command you type into the Run interface and it switches to 'that'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you close (not minimize) all windows explorer windows, it actually opens a windows explorer instance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested this on Windows 7 Enterprise&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397620#M278253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-20T21:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397622#M278254</link>
      <description>&lt;P&gt;Thanks, Chris - there's nothing in the documentation nor would I naturally anticipate a synchronization option to cause Windows File Explorer window to shift to foreground. I'll consider this a bug.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397622#M278254</guid>
      <dc:creator>asumsie</dc:creator>
      <dc:date>2017-09-20T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397627#M278255</link>
      <description>&lt;P&gt;I re-read your initial question, and that matches what I see.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to guess the Windows command line tool and Windows Explorer are 'linked' and that this is actually on Windows side. Since you can execute a command from windows explorer by typing in cmd + Command.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397627#M278255</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-20T21:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397634#M278256</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12230"&gt;@asumsie&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I am guessing that since you call the&amp;nbsp;CLI window, SAS goes to the background, and since you choose not to display the CLI window, Windows defaults to the default "shell", i.e. Explorer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't test since I am stuck with EG, but this looks more like a Windows "feature" than a bug.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I must admit I never paid attention to the sequence of what's displayed when I used SAS Desktop and the X command, and it also may well be different for different versions of Windows.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 22:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397634#M278256</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-09-20T22:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: X Command Causes Windows Explorer Window to Come Forward</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397646#M278257</link>
      <description>&lt;P&gt;This has nothing to do with WIndows Explorer. You just happened to have a Windows Explorer window open so that it could be the one that got focus. Close all of your windows explorer windows and open something else instead and Windows will probably shift focus to that windows instead. When I tested it switched to my open Chrome window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Playing with it I found that the XSYNC option is the one that causes SAS to lose focus. &amp;nbsp;Even when SAS was the only program running with option XSYNC SAS would still be in front, but the program window where I was submitting the commands was no longer selected. Setting NOXSYNC and then with or without setting XWAIT the SAS program editor window kept focus.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 23:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-Causes-Windows-Explorer-Window-to-Come-Forward/m-p/397646#M278257</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-20T23:25:21Z</dc:date>
    </item>
  </channel>
</rss>

