{"id":277,"date":"2011-09-15T10:38:08","date_gmt":"2011-09-15T08:38:08","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=277"},"modified":"2011-09-15T10:40:06","modified_gmt":"2011-09-15T08:40:06","slug":"skype-home-closer","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=277","title":{"rendered":"Skype Home Closer"},"content":{"rendered":"<p>I hate that Home Screen which pops up on every Skype start. I really do&#8230;<br \/>\nSo I created a small Tray Icon app which looks for this Window and closes it immediately.<\/p>\n<p>As usual, there is some Win32 API needed to do this. Here&#8217;s the Code which searches and closes the Window:<\/p>\n<pre class=\"brush: csharp; title: ; wrap-lines: false; notranslate\" title=\"\">\r\n&#x5B;DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto)]\r\npublic static extern IntPtr FindWindow(string strClassName, string strWindowName);\r\n&#x5B;DllImport(&quot;user32.dll&quot;)]\r\npublic static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);\r\n\r\npublic const Int32 WM_SYSCOMMAND = 0x0112;\r\npublic const Int32 SC_CLOSE = 0xF060;\r\n\r\npublic static void Close()\r\n{\r\n\tIntPtr hWnd = FindWindow(&quot;THomeForm&quot;, &quot;Skype Home&quot;);\r\n\tif (hWnd.ToInt32() &gt; 0)\r\n\t{\r\n\t\tSendMessage(hWnd, WM_SYSCOMMAND, new IntPtr(SC_CLOSE), IntPtr.Zero);\r\n\t}\r\n}\r\n<\/pre>\n<p>Here&#8217;s the programm: <a href='http:\/\/dev.flauschig.ch\/wordpress\/wp-content\/uploads\/2011\/09\/SkypeHomeCloser_1.0.zip'>SkypeHomeCloser_1.0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hate that Home Screen which pops up on every Skype start. I really do&#8230; So I created a small Tray Icon app which looks for this Window and closes it immediately. As usual, there is some Win32 API needed to do this. Here&#8217;s the Code which searches and closes the Window: &#x5B;DllImport(&quot;user32.dll&quot;, CharSet = &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4,3,14],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-roemer","4":"post-277","6":"format-standard","7":"category-csharp","8":"category-programming","9":"category-tools"},"acf":[],"views":1608,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/277"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=277"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/277\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}