<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Getting SDK help from an external editor</title>
	<atom:link href="http://www.xsi-blog.com/archives/79/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xsi-blog.com/archives/79</link>
	<description>People and thoughts behind XSI in production...</description>
	<pubDate>Sun, 23 Nov 2008 09:31:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Andy Nicholas</title>
		<link>http://www.xsi-blog.com/archives/79#comment-645</link>
		<dc:creator>Andy Nicholas</dc:creator>
		<pubDate>Sat, 14 Jan 2006 13:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-645</guid>
		<description>I just found how to launch an external application with Visual Studio Macros:

    Sub LaunchCalc()
        DTE.ExecuteCommand("Tools.Shell c:\Windows\System32\calc.exe")
    End Sub</description>
		<content:encoded><![CDATA[<p>I just found how to launch an external application with Visual Studio Macros:</p>
<p>    Sub LaunchCalc()<br />
        DTE.ExecuteCommand(&#8221;Tools.Shell c:\Windows\System32\calc.exe&#8221;)<br />
    End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Nicholas</title>
		<link>http://www.xsi-blog.com/archives/79#comment-644</link>
		<dc:creator>Andy Nicholas</dc:creator>
		<pubDate>Sat, 14 Jan 2006 12:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-644</guid>
		<description>Hi Andrew,

I''ve not had a look at how to do it in a macro yet, but you can launch external applications using the "Tools-&#62;External Tools..." where you can also add in the currently selected text into the command line as I mentioned above. 

You can also slave it to a keyboard shortcut via the "Customize..." menu,  Keyboard" button, and adding the shortcut to one of the "Tools.ExternalCommand(nn)" entries, where (nn) is the numeric position of the external command in the menu.</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>I&#8221;ve not had a look at how to do it in a macro yet, but you can launch external applications using the &#8220;Tools-&gt;External Tools&#8230;&#8221; where you can also add in the currently selected text into the command line as I mentioned above. </p>
<p>You can also slave it to a keyboard shortcut via the &#8220;Customize&#8230;&#8221; menu,  Keyboard&#8221; button, and adding the shortcut to one of the &#8220;Tools.ExternalCommand(nn)&#8221; entries, where (nn) is the numeric position of the external command in the menu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Skowronski</title>
		<link>http://www.xsi-blog.com/archives/79#comment-642</link>
		<dc:creator>Andrew Skowronski</dc:creator>
		<pubDate>Fri, 13 Jan 2006 20:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-642</guid>
		<description>(Actually I realise that it would, at least, be possible to use this macro to go to the external wiki version of the docs...

Just change the line above to this:
        path = "http://softimage.wiki.avid.com/sdkdocs/" &#38; ts.Text &#38; ".htm"

But opening the chm would often be better.

Also, this approach doesn''t work for the methods of objects, because the path includes the class name.</description>
		<content:encoded><![CDATA[<p>(Actually I realise that it would, at least, be possible to use this macro to go to the external wiki version of the docs&#8230;</p>
<p>Just change the line above to this:<br />
        path = &#8220;http://softimage.wiki.avid.com/sdkdocs/&#8221; &amp; ts.Text &amp; &#8220;.htm&#8221;</p>
<p>But opening the chm would often be better.</p>
<p>Also, this approach doesn&#8221;t work for the methods of objects, because the path includes the class name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Skowronski</title>
		<link>http://www.xsi-blog.com/archives/79#comment-641</link>
		<dc:creator>Andrew Skowronski</dc:creator>
		<pubDate>Fri, 13 Jan 2006 19:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-641</guid>
		<description>Very cool tip.  Such a feature should be also very possible in Microsoft Visual Studio, it has a full SDK for writing macros.

However I can''t figure out how to do such a straightfoward thing as launch an application (e.g. call a hh.exe)

I tried going via internet explorer but that DOESN''T work.

    Sub XSISDKHelp()
        Dim win As Window = DTE.ActiveWindow

        Dim ts As TextSelection = win.Selection

        If (ts.Text = "") Then
            MsgBox("Select a word to lookup in the SDK help")
            Exit Sub
        End If

        Dim path
        path = "C:\Softimage\XSI_5.0\Doc\XSISDK\xsidevref.chm::/" &#38; ts.Text &#38; ".htm"

        ''DOESN''T WORK
        Dim oApp
        oApp = CreateObject("InternetExplorer.Application.1")
        oApp.Visible = True
        oApp.Navigate(path)

    End Sub

Any one have any ideas?</description>
		<content:encoded><![CDATA[<p>Very cool tip.  Such a feature should be also very possible in Microsoft Visual Studio, it has a full SDK for writing macros.</p>
<p>However I can&#8221;t figure out how to do such a straightfoward thing as launch an application (e.g. call a hh.exe)</p>
<p>I tried going via internet explorer but that DOESN&#8221;T work.</p>
<p>    Sub XSISDKHelp()<br />
        Dim win As Window = DTE.ActiveWindow</p>
<p>        Dim ts As TextSelection = win.Selection</p>
<p>        If (ts.Text = &#8220;&#8221;) Then<br />
            MsgBox(&#8221;Select a word to lookup in the SDK help&#8221;)<br />
            Exit Sub<br />
        End If</p>
<p>        Dim path<br />
        path = &#8220;C:\Softimage\XSI_5.0\Doc\XSISDK\xsidevref.chm::/&#8221; &amp; ts.Text &amp; &#8220;.htm&#8221;</p>
<p>        &#8221;DOESN&#8221;T WORK<br />
        Dim oApp<br />
        oApp = CreateObject(&#8221;InternetExplorer.Application.1&#8243;)<br />
        oApp.Visible = True<br />
        oApp.Navigate(path)</p>
<p>    End Sub</p>
<p>Any one have any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Aldis</title>
		<link>http://www.xsi-blog.com/archives/79#comment-597</link>
		<dc:creator>Kim Aldis</dc:creator>
		<pubDate>Sat, 24 Dec 2005 08:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-597</guid>
		<description>Back in the old days, when we used html, I also figured a way, using the same kind of method, of parsing the html docs and echoing out functions that matched the word under the cursor with an option to pick one to insert in the code in place of the word. In many ways this is more useful than bringing up the full docs because often you know what the function does, you just want a reminder of the arguments. Not quite intellisense but a reasonable imitation thereof.</description>
		<content:encoded><![CDATA[<p>Back in the old days, when we used html, I also figured a way, using the same kind of method, of parsing the html docs and echoing out functions that matched the word under the cursor with an option to pick one to insert in the code in place of the word. In many ways this is more useful than bringing up the full docs because often you know what the function does, you just want a reminder of the arguments. Not quite intellisense but a reasonable imitation thereof.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Nicholas</title>
		<link>http://www.xsi-blog.com/archives/79#comment-590</link>
		<dc:creator>Andy Nicholas</dc:creator>
		<pubDate>Fri, 23 Dec 2005 21:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-590</guid>
		<description>Cool, thanks very much for that Kim. It''d be great if anyone else uses a different editor to the ones mentioned above if you could post how to get this working for yours.</description>
		<content:encoded><![CDATA[<p>Cool, thanks very much for that Kim. It&#8221;d be great if anyone else uses a different editor to the ones mentioned above if you could post how to get this working for yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Aldis</title>
		<link>http://www.xsi-blog.com/archives/79#comment-589</link>
		<dc:creator>Kim Aldis</dc:creator>
		<pubDate>Fri, 23 Dec 2005 21:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.xsi-blog.com/?p=79#comment-589</guid>
		<description>Here''s a version that''ll work with vim or gvim. Put this code into your _vimrc. It maps the comman to F2. Alter the last two lines if this doesn''t suit. Enjoy, and merry Christmas.

function XSIhelp() 

	" yank word under cursor into " buffer
	normal yiw

	" assign to variable
	let sWord = @"
	
	" construct our command
	let sCom = ''C:\WINDOWS\hh.exe C:\Softimage\XSI_5.0\Doc\XSISDK\xsidevref.chm::/'' . sWord . ''.htm''

	" and run it.
	let sResponse = system( sCom );

endfunction

:map  :call XSIhelp()
:imap  :call XSIhelp()</description>
		<content:encoded><![CDATA[<p>Here&#8217;&#8217;s a version that&#8221;ll work with vim or gvim. Put this code into your _vimrc. It maps the comman to F2. Alter the last two lines if this doesn&#8221;t suit. Enjoy, and merry Christmas.</p>
<p>function XSIhelp() </p>
<p>	&#8221; yank word under cursor into &#8221; buffer<br />
	normal yiw</p>
<p>	&#8221; assign to variable<br />
	let sWord = @&#8221;</p>
<p>	&#8221; construct our command<br />
	let sCom = &#8221;C:\WINDOWS\hh.exe C:\Softimage\XSI_5.0\Doc\XSISDK\xsidevref.chm::/&#8221; . sWord . &#8221;.htm&#8221;</p>
<p>	&#8221; and run it.<br />
	let sResponse = system( sCom );</p>
<p>endfunction</p>
<p>:map  :call XSIhelp()<br />
:imap  :call XSIhelp()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
