<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Sytone's Ramblings - Latest Comments</title><link>http://sytonesramblings.disqus.com/</link><description></description><atom:link href="https://sytonesramblings.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 13 Aug 2012 15:39:02 -0000</lastBuildDate><item><title>Re: SyntaxHighlighter Evolved: Autohotkey Brush</title><link>http://www.sytone.com/syntaxhighlighter-evolved-autohotkey-brush/#comment-618317325</link><description>&lt;p&gt;Thanks for the plugin. I just set this up. It works fine and it looks slick.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luser</dc:creator><pubDate>Mon, 13 Aug 2012 15:39:02 -0000</pubDate></item><item><title>Re: WPF Converter: CaseConverter</title><link>http://www.sytone.com/2010/08/wpf-converter-caseconverter/#comment-557300732</link><description>&lt;p&gt;How to use it on an UseControl ?? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zayanimahjoub</dc:creator><pubDate>Thu, 14 Jun 2012 12:01:55 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-501275707</link><description>&lt;p&gt;Thanks for taking the time with Hamisha2000's selection question!  Helped me tremendously.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Veenroid</dc:creator><pubDate>Wed, 18 Apr 2012 19:19:37 -0000</pubDate></item><item><title>Re: Making a shortcut to Libraries in Windows 7</title><link>http://www.sytone.com/2011/02/making-a-shortcut-to-libraries-in-windows-7/#comment-484766779</link><description>&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ICDZ</dc:creator><pubDate>Tue, 03 Apr 2012 13:37:32 -0000</pubDate></item><item><title>Re: Toodledo Distraction Free</title><link>http://www.sytone.com/toodledo-distraction-free/#comment-467918999</link><description>&lt;p&gt;Crashes on loading hotkeys on Windows 7 x86&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Budin</dc:creator><pubDate>Sat, 17 Mar 2012 15:31:26 -0000</pubDate></item><item><title>Re: Running Windows 8 on the Eee PC T101MT</title><link>http://www.sytone.com/2011/11/running-windows-8-on-the-eee-pc-t101mt/#comment-458171953</link><description>&lt;p&gt;This still works for the Windows 8 Consumer Preview&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fastclock</dc:creator><pubDate>Tue, 06 Mar 2012 16:50:13 -0000</pubDate></item><item><title>Re: Running Windows 8 on the Eee PC T101MT</title><link>http://www.sytone.com/2011/11/running-windows-8-on-the-eee-pc-t101mt/#comment-457927908</link><description>&lt;p&gt;awesome thank you!&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cel</dc:creator><pubDate>Tue, 06 Mar 2012 12:11:46 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-456693687</link><description>&lt;p&gt;Thanks for taking the time to test that. The code you have above will always return the currently selected Explorer item regardless of whether it was the item that was right-clicked or not. They only happen to be the same item if you right-click the currently selected item in the Explorer but this cannot be guaranteed.&lt;/p&gt;&lt;p&gt;This confirms the issue I have in being able to determine the item that the context menu command was fired on. FYI I have also posted on MSDN and just received a reply that indicates what I am trying to achieve is currently not possible:&lt;/p&gt;&lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/outlookdev/thread/1bb79bdc-dd23-43cf-b08f-a08a82401fd7" rel="nofollow noopener" target="_blank" title="http://social.msdn.microsoft.com/Forums/en-US/outlookdev/thread/1bb79bdc-dd23-43cf-b08f-a08a82401fd7"&gt;http://social.msdn.microsof...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Cheers,&lt;br&gt;Hamish&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamisha2000</dc:creator><pubDate>Mon, 05 Mar 2012 04:38:51 -0000</pubDate></item><item><title>Re: Windows 8 Consumer Preview with Eee PC T101MT</title><link>http://www.sytone.com/2012/03/windows-8-consumer-preview-with-eee-pc-t101mt/#comment-456684109</link><description>&lt;p&gt;i notice that i get 2 new options 1024 x 768 and 1152 x 864&lt;br&gt;it would be nice if we could create a proportional option for this screen size&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 05 Mar 2012 04:01:27 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-456311662</link><description>&lt;p&gt;I have added the command in and the Context in this case is a Explorer and the Selection object of the explorer object has 1 item in its collection.&lt;/p&gt;&lt;p&gt;control.Context.Selection.Count&lt;br&gt;1&lt;/p&gt;&lt;p&gt;control.Context.Selection[1].Subject&lt;br&gt;"RE: XXXXXXXXXXXXXXXX"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sytone</dc:creator><pubDate>Sun, 04 Mar 2012 18:02:29 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-455621247</link><description>&lt;p&gt;Ah ha - very interesting indeed, thanks for taking the time to check it out. I just tested your code myself and can confirm I do indeed get a selection in this case.&lt;/p&gt;&lt;p&gt;However, could I impose on you to try it a little differently? Could you try repurposing the existing idMso="Reply" command and testing the same thing in the onAction handler.&lt;/p&gt;&lt;p&gt;XML for the Ribbon is:&lt;/p&gt;&lt;p&gt;  &amp;lt;commands&amp;gt;    &amp;lt;command idmso="Reply" onaction="myReply"/&amp;gt;  &amp;lt;/commands&amp;gt;&lt;/p&gt;&lt;p&gt;Handler code is:&lt;/p&gt;&lt;p&gt;public void myReply(Office.IRibbonControl control, ref bool cancelDefault){    if (control.Context is Outlook.Selection)    {        MessageBox.Show("Context is Selection");    }&lt;br&gt;    if (control.Context is Outlook.Explorer)    {&lt;br&gt;        MessageBox.Show("Context is Explorer");    }&lt;br&gt;    cancelDefault = false;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamisha2000</dc:creator><pubDate>Sat, 03 Mar 2012 19:18:16 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-455587050</link><description>&lt;p&gt;Interesting. I just added a context XML blob to my XML and wired it to a method and the control.Context was a selection item. &lt;br&gt; &lt;br&gt;My XML for RibbonXAddin:&lt;br&gt;  &amp;lt;contextmenus&amp;gt;&lt;br&gt;    &amp;lt;contextmenu idmso="contextmenumailitem"&amp;gt;&lt;br&gt;      &amp;lt;button id="mycontextmenumailitem"           label="ContextMenuMailItem"           onaction="OnMyButtonClick"/&amp;gt;&lt;br&gt;    &amp;lt;/contextmenu&amp;gt;&lt;br&gt;  &amp;lt;/contextmenus&amp;gt;&lt;br&gt; &lt;br&gt;The Code to handle:&lt;/p&gt;&lt;p&gt;public void OnMyButtonClick(Office.IRibbonControl control)&lt;br&gt;{&lt;br&gt;  if (control.Context is Outlook.Selection)&lt;br&gt;  {&lt;br&gt;      string msg = string.Empty;&lt;br&gt;      // Where I put my break ^.&lt;br&gt;  }&lt;br&gt;}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sytone</dc:creator><pubDate>Sat, 03 Mar 2012 18:00:53 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-455555259</link><description>&lt;p&gt;Yes, I have seen a number of descriptions that say the context should be a selection. However I only ever get an Explorer object back for the context menu (a debug break has confirmed this). No one else seems to have this problem so maybe I'm doing something wrong - thanks, I'll keep looking into it...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamisha2000</dc:creator><pubDate>Sat, 03 Mar 2012 16:53:37 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-455534323</link><description>&lt;p&gt;I have not had a chance to play with the context menu in Mail yet. According to MSDN the Context should be a Selection object. I would recommend dropping into debug and droppping a break in to see what the makeup of the Context is.&lt;/p&gt;&lt;p&gt;Reference: &lt;a href="http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem" rel="nofollow noopener" target="_blank" title="http://msdn.microsoft.com/en-us/library/ee692172.aspx#OfficeOLExtendingUI_ContextMenuforaMailItem"&gt;http://msdn.microsoft.com/e...&lt;/a&gt;&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sytone</dc:creator><pubDate>Sat, 03 Mar 2012 16:08:21 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-455270576</link><description>&lt;p&gt;Nice one. You don't happen to know how to determine the right-clicked Item in the case where the Ribbon command is raised from an Item context menu. The e.Control.Context in this case is still an Explorer object but explorer.Selection[1] cannot be used because right-clicking an Item in Outlook 2010 does not select the object.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hamisha2000</dc:creator><pubDate>Sat, 03 Mar 2012 07:50:10 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-437757621</link><description>&lt;p&gt;You cannot replace it just like that. This method follows the signature of the control click event. This should be called by a ribbon bar button click or like event. &lt;br&gt;Here is a link to the delegate signature: &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.ribboncontroleventhandler.aspx" rel="nofollow noopener" target="_blank" title="http://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.ribboncontroleventhandler.aspx"&gt;http://msdn.microsoft.com/e...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sytone</dc:creator><pubDate>Mon, 13 Feb 2012 11:31:04 -0000</pubDate></item><item><title>Re: Toodledo Distraction Free</title><link>http://www.sytone.com/toodledo-distraction-free/#comment-402915329</link><description>&lt;p&gt;Same here. Win7x64.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Fri, 06 Jan 2012 17:00:36 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-394909023</link><description>&lt;p&gt;Hi, im a new in c#&lt;br&gt;i want to know, when i call the function ""GetMailItem", if i replace the RibbonControlEventArgs by my name of ribbon or button. &lt;br&gt;Thanks &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bndiaye</dc:creator><pubDate>Tue, 27 Dec 2011 05:41:59 -0000</pubDate></item><item><title>Re: Toodledo Distraction Free</title><link>http://www.sytone.com/toodledo-distraction-free/#comment-389778837</link><description>&lt;p&gt;Same here Win7 SP1 x64. crashes on startup looks like a hotkey problem?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Coolbossov</dc:creator><pubDate>Mon, 19 Dec 2011 05:55:57 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-369260623</link><description>&lt;p&gt;Thank you so much..its very useful&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Balu</dc:creator><pubDate>Mon, 21 Nov 2011 06:25:35 -0000</pubDate></item><item><title>Re: Toodledo Distraction Free</title><link>http://www.sytone.com/toodledo-distraction-free/#comment-363360194</link><description>&lt;p&gt;Crashes during boot on Windows 7 x64 :-( Pity.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Token Canadian</dc:creator><pubDate>Tue, 15 Nov 2011 00:52:10 -0000</pubDate></item><item><title>Re: Getting the Central Admin URL for a Farm in SharePoint</title><link>http://www.sytone.com/2010/07/getting-the-central-admin-url-for-a-farm-in-sharepoint/#comment-352900073</link><description>&lt;p&gt;Thanks, easy way to dynammically call SharePoint admin Config Web Services&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Blais</dc:creator><pubDate>Tue, 01 Nov 2011 12:13:54 -0000</pubDate></item><item><title>Re: Getting a Outlook MailItem from a Ribbon Event</title><link>http://www.sytone.com/2010/02/getting-a-outlook-mailitem-from-a-ribbon-event/#comment-323388573</link><description>&lt;p&gt;You are a life saver!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Adam</dc:creator><pubDate>Thu, 29 Sep 2011 21:42:57 -0000</pubDate></item><item><title>Re: Automating OneNote with AutoHotKey to be a Journal V1.1</title><link>http://www.sytone.com/2011/08/374/#comment-289736311</link><description>&lt;p&gt;Great - thank you for the update. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RichardFortune</dc:creator><pubDate>Wed, 17 Aug 2011 22:17:21 -0000</pubDate></item><item><title>Re: Automating OneNote with AutoHotKey to be a Journal</title><link>http://www.sytone.com/2011/01/automating-onenote-with-autohotkey-to-be-a-journal/#comment-279868963</link><description>&lt;p&gt;I will create a new post with a updated version with logging. Sorry it did not work the first time!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sytone</dc:creator><pubDate>Sun, 07 Aug 2011 15:56:59 -0000</pubDate></item></channel></rss>