The Sandbox Thread

23 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

MSN System Tray Web Search

Back to Forum: The Sandbox
  • GusPinto

    This simple app allows you to use the MSN web search.
    Instead of taking space off of your taskbar it simply seats on the notification area and can be invoked by double-clicking the "systray" icon or via right-click menu.

    It will also work as a web address bar, meaning that you can type an http address and will be redirected directly to that page.

    It also uses the feature of suggesting websites by using a list of your previously visited websites.

    It requires .NET Framework 2.0


    enjoy it,

    Gus.

  • GusPinto


    (June, 15th) - Added support to UNC paths.

  • Shareef

    Where can I download this application?

  • Steve411

    I like the source, it's so... Simple Wink

    private void searchButton1_Click(object sender, EventArgs e)
    {
          this.FadeDownTo(0);
          string text1 = this.searchBox.Text.Replace("\"", "%22");
          if (this.searchBox.Text.StartsWith("http"))
          {
                Process.Start(this.searchBox.Text.ToString());
          }
          else if (this.searchBox.Text.StartsWith("https"))
          {
                Process.Start(this.searchBox.Text.ToString());
          }
          else if (this.searchBox.Text.StartsWith("www"))
          {
                Process.Start("http://" + this.searchBox.Text.ToString());
          }
          else
          {
               
    Process.Start("http://search.msn.com/results.aspx?q=" + text1);
          }
    }
    public void SetOpacityAndWait(int opacity)
    {
          base.Opacity = ((double) opacity) / 100;
          this.Refresh();
          Thread.Sleep(20);
    }
    
    
    public int Int32Opacity
    {
          get
          {
                return (int) (base.Opacity * 100);
          }
    }
     
    public void FadeUpTo(int max)
    {
          for (int num1 = this.Int32Opacity; num1 <= max; num1 += 5)
          {
                this.SetOpacityAndWait(num1);
          }
    }
    
    public void FadeDownTo(int min)
    {
          for (int num1 = this.Int32Opacity; num1 >= min; num1 -= 5)
          {
                this.SetOpacityAndWait(num1);
          }
    }
    

    Great program by the way Smiley

  • GusPinto

    The link to download the software is right beneth the picture as "[Save]".


    Gus

  • GusPinto

    Glad you liked.


    I was meant to be simple right out of the board.

  • Steve411

    Works great. Smiley Well done.

  • Loadsgood

    Oh also I can open the search bar window, then open the About box, which closes the search bar window, that's good except I can right click the notification icon and click open and that will open the search bar window underneath the About box. That makes the "Always on top" option false advertisement.
    Also have the search bar window open and Paint.NET open, Paint.NET's Translucent undocked tool boxes over take the search toolbar window, also making "Always on top" false advertisement.
    When I have the About box open and then open another instance of it via right cliking the notification icon, it hurls some more vomit, here's the greenish yellow bits:

    ************** Exception Text **************
    System.InvalidOperationException: Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling showDialog.
       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
       at System.Windows.Forms.Form.ShowDialog()
       at MSNTray.MainForm.aboutToolStripMenuItem_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Plus, why isn't there an option to not have the about box on top? I find it pretty annoying telling you about these bugs and it being on top of everything else (not including Paint.NET's Translucent undocked tool boxes)
    I'd also like to see an option to change the transparency levels of the search bar window and the About box.
    I would like to be able to set this prog up to start when windows starts, plus I'd like an installer so I don't have to put it in C:\Program Files\MSN Search Bar\ and add a shortcut to it in the All Programs part of the Start Menu, in the quick launch bar and on the desktop.
    Is this product made by MSN or Microsoft? A unknowing user would think "This is a product of Microsoft, but it is a hacked version since the real name of the creator has been replaced by this "Gus Pinto" guy. Or is that a worker from Microsoft? Maybe I should SUE!" It is just a bit strange seeing all these logos and MSN information that a non-tech user would shizen their pants over. Just stuff like the tooltip of the notification icon says "MSN Search" it should be less Fake Microsoftian and less confusing to all users.
    Why doesn't the about box fade out when I close it? It should. It should also be more flat across the board, like the search bar window has a cross for closing the window, but the about box has the word "Close" for it. You should try and keep the style for both windows the same so that a user can grow into it and refer to the style fast. Do stuff like change the style of the About box to blue so that it looks the same as the search bar window and then keep it that way.
    Also, there is no way of returning or bringing up a new window for the search bar from the about box, it should say "Search bar" or have an icon we can click on to return to the search bar window. Just make sure the style is the same across the board when you add this feature.

    What? Do you think I went overboard? Wink Sorry GusPinto, this is how I am. I can't help but find bugs and problems with programs. Sometimes I don't verbalise these bugs, but I had to let a rip here Smiley



    I hope you comply with the above.
    Loadsgood.

  • Loadsgood

    Yeah it's really good, except it vomits when my firewall denies it internet access. Here's the food bits of the vomit:

    ************** Exception Text **************
    System.ComponentModel.Win32Exception: An error occurred in sending the command to the application
       at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start(String fileName)
       at MSNTray.MainForm.searchButton1_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.PerformClick()
       at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
       at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
       at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
       at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

    Other than that it works great Smiley

    EDIT: Could you add that down arrow from MSN Search to the left of "Search Web" and make a menu which says "Web" "Images" etc. and when I click one of those it changes the "Search Web" button to say "Search Images", Search [option clicked here]"?
    Also could you get it to detect the user's regional settings of the computer and change the MSN Search to the local MSN Search for that user? If they don't have an MSN Search for their region just have it go to the .com one.
    Could you make the search bar window and the about box movable?  


    Go this app.
    Loadsgood.

  • Steve411

    Hey LoadsGood, my good ol' buddy. See any updates I added to NinerStat here? Wink

  • Loadsgood

    There's two new icons underneath the words "Channel 9" in the middle panel. A link to more information about NinerStat rendering of threads from Channel9 (Sounds like you failed the HTML! Wink) A red cross to remove the thread rendering panel (God knows why you would want to remove that panel). A "Visit online" button and that's all I can see for now.
    You leakage boy! Oh and you added "Elqoh Software" into the title, you should change it back to enterTech since I thought you got rid of Elwoh... I'll bug spray the latest NinerStat once I defeat the FC4 beast Smiley



    Oh you leak maniac.
    Loadsgood.

  • GusPinto

    Loadsgood,

    No need to apologize. That's why I published the tool here.
    There isn't a best place to have knowledgeable people downloading it and giving feedback.

    Your feedback was awesome, your comments were the kind of comments you expect when someone is looking for feedbacks.

    I already have a version that contains most of the stuff you commented, as soon as my time allows me, I will try to wrap it up with more stuff I got from my friends, and re-publish it.

    Thanks a bunch for taking your time to review the app.

    regards,

    Gus

  • Steve411

    Loadsgood wrote:
    There's two new icons underneath the words "Channel 9" in the middle panel. A link to more information about NinerStat rendering of threads from Channel9 (Sounds like you failed the HTML! ) A red cross to remove the thread rendering panel (God knows why you would want to remove that panel). A "Visit online" button and that's all I can see for now.
    You leakage boy! Oh and you added "Elqoh Software" into the title, you should change it back to enterTech since I thought you got rid of Elwoh... I'll bug spray the latest NinerStat once I defeat the FC4 beast



    Oh you leak maniac.
    Loadsgood.

    Elwoh's still intact. Hence my display photo. I'll send the latest copy over to you but don't leak out the release. Wink. And yes, the HTML rendering failed for some reason, I'll have to see why as soon as i get VS installed again. There are ALOT more updates in there, [View] that you'll have to see for your self later. Smiley And I'll think you'll like "PersonalFeed". I've added what you've requested a little while back. Still working on that clock! Smiley

  • Loadsgood

    GusPinto wrote:
    Loadsgood,

    No need to apologize. That's why I published the tool here.
    There isn't a best place to have knowledgeable people downloading it and giving feedback.

    Your feedback was awesome, your comments were the kind of comments you expect when someone is looking for feedbacks.

    I already have a version that contains most of the stuff you commented, as soon as my time allows me, I will try to wrap it up with more stuff I got from my friends, and re-publish it.

    Thanks a bunch for taking your time to review the app.

    regards,

    Gus



    You know it makes me feel good telling people about bugs in their software.... I think I might pick it up again and tell people about bugs in their software rather than holding back or not being bothered opening a new IE window. Plus I like this peice of software, it works well except for those bits I pointed out. I think there was some more but yesterday I thought I'd tell you if they were there in the new release and now I've forgotten what they were... Meh doesn't matter.

    And as for you Mister Steve 411... I'm all confused on the situation with Elwoh so as long as I can scream at you for the missing features and the bugness I'm happy Wink



    Damn trial version of MagicISO.
    Loadsgood.

  • Steve411

    Pick on me all you want, Miss. LoadsGood.


    I need my VS CD's.
    Steve.

  • Loadsgood

    Steve411 wrote:
    Pick on me all you want, Miss. LoadsGood.


    I need my VS CD's.
    Steve.


    That Miss better be short for Misster Mad Haha you still don't have your VS CDs... I tells you someone took them.



    Get some replacement CDs from Microsoft Wink
    Loadsgood.

  • Steve411

    "Visit online" button checks to see which feed you select, then it loads the appropriate page into the html view on the right. I have also added Group Sorting, "Right Click - > Assign to Group" or "Right Click - > New Group" for instant loading... There is also a properties dialog with a bunch of shizzle info on it. I've re-re-written the RSS Reader class from the top now and a bunch of stuff added there as well. Custom item sorting, item browsing, removing.. etc.

    Here's some code for the RssItem struct gathering, instead of idexes.


    /* this it how we did it in the past...VERY hard to figure out the item index in a list view */
    public RssItem getItem(int Index)
    {
    return (RssItem)List[Index];
    }
    /* this is how we do it now.. VERY easy to loop through the items.:) */
    public RssItem getItem(RssItem item)
    {
    RssItem nItem = new RssItem();
    foreach(RssItem i in Functions.feed.Items)
    {
    if(item.title == i.title)
    {
    if(Functions.feed.Items.InnerList.Contains(i))
    {
    return (RssItem)i;
    }
    }
    }
    return nItem;
    }

    To use the new bit of code we just browse like this.

    /* Validation is required before we send it off to the InnerList.
    Tried it without current-to-current validation and it failed.
    This fixes that with ease. */
    foreach(XPListViewItem i in ListItems.SelectedItems)
    {
    foreach(RssItem rItem in Functions.feed.Items)
    {
    if(rItem.title == i.Text)
    {
    ThePostDetails.PostData = Functions.feed.Items.getItem(rItem).Link;
    }
    else{}
    }
    }


    I am always posting updates about NinerStat [even SOURCE!] on my Blog. For example, here is a post that I think you've seen a while ago. All the content described in the post is still intact, and I'm back to coding, installed VS NO MORE NOTEPAD! Wink.

    You can now even sort the items into groups with a click of a mouse button. Even got that toolbar menu you wanted up. Auto Grouping, though, is my favorite feature. I can keep track of my favorite posters here on C9 and even use ColorDeco in the process.

    I've removed the ZoomFactor for just a little while. Added an advanced reader with easy ColorDeco activation and grouping. Subscriptions are all set to go as well.

    PM me on MSN and I'll send you a copy. Wink
    NinerStat - Start something Extraordinary.

    Mommy, when can I be a C# gurry?. Sad
    Steve.

  • Loadsgood

    Wow go Steve. How many features do you want? Expressionless I just hope they don't clash or else it'll be a minefield full of bugs. I'll MSN you one day..... one day....



    Great work you doing there on NinerStat Big Smile
    Loadsgood.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.