{"id":8401,"date":"2007-03-04T11:33:00","date_gmt":"2007-03-04T11:33:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2007\/03\/04\/internet-radio-function\/"},"modified":"2019-02-18T13:16:52","modified_gmt":"2019-02-18T20:16:52","slug":"internet-radio-function","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/internet-radio-function\/","title":{"rendered":"Internet Radio Function"},"content":{"rendered":"<p>I found a cool blog entry at <a href=\"http:\/\/hung-yuwu.spaces.live.com\/Blog\/cns!744FB258BF8C8020!1377.entry\">http:\/\/hung-yuwu.spaces.live.com\/Blog\/cns!744FB258BF8C8020!1377.entry<\/a> . I have no idea what it says but I can read the script and I like it. The person has an internet radio site that they like and wrote a simple script to get run it in an IE windows with a fixed size and location and without all the IE adornments. I love this stuff! <\/p>\n<p><span><span>function <strong>ufo-radio<\/strong><br \/>{ <br \/>$ie = new-object -com &#8220;InternetExplorer.Application&#8221;<br \/>$ie.Navigate2(&#8220;http:\/\/radio.hinet.net\/radio\/player\/player_ie.jsp?radio_id=232&#8221;);<br \/>$ie.width = 400<br \/>$ie.height = 270<br \/>$ie.Top=500<br \/>$ie.Left=0<br \/>$ie.Resizable =$false<br \/>$ie.ToolBar =$false<br \/>$ie.MenuBar =$false<br \/>$ie.Visible = $true;<br \/>}<br \/>set-alias ufo ufo-radio <\/span><\/span><\/p>\n<p>The one nit I have is that that should probably be called: <strong>Start-UFO<\/strong> instead of <strong>UFO-Radio. Get-UFO <\/strong>might also be OK and then you don&#8217;t need the alias. Remember if you type a command and we can&#8217;t resolve it, we&#8217;ll add a &#8220;get-&#8221; in front of it and try it again. So if you named this Get-UFO and typed UFO \u2013 we would look for something called UFO and if it existed \u2013 we would use that otherwise we would look up Get-UFO. Try this yourself with PROCESS, SERVICE, etc. <\/p>\n<p>Enjoy! <\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows PowerShell\/MMC Architect<br \/>Visit the Windows PowerShell Team blog at: <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at: <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found a cool blog entry at http:\/\/hung-yuwu.spaces.live.com\/Blog\/cns!744FB258BF8C8020!1377.entry . I have no idea what it says but I can read the script and I like it. The person has an internet radio site that they like and wrote a simple script to get run it in an IE windows with a fixed size and location [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>I found a cool blog entry at http:\/\/hung-yuwu.spaces.live.com\/Blog\/cns!744FB258BF8C8020!1377.entry . I have no idea what it says but I can read the script and I like it. The person has an internet radio site that they like and wrote a simple script to get run it in an IE windows with a fixed size and location [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=8401"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8401\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=8401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=8401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=8401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}