Ask a questionAsk a question
 

Answer3rd Part software!

  • Saturday, October 31, 2009 9:38 PMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, i have a third party software and i would like it to lunch when someone runs my program (and no its not a virus). But the thing is when you run it; it shows up in the system tray, how can i set the program to invisible and close it when it my app closes? Thanks!

Answers

  • Saturday, October 31, 2009 11:50 PM•.trujade.• Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    just checking..
    i knew i should not expect something like that from you, especially from viewing/helping out w/your past threads, but it was worth asking.
    -----
    here is something to get you started, see if it helps.

        Dim myexe As Process = Process.Start("notepad")
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            myexe.Kill()
        End Sub
    

    •.˙trujade˙.•
  • Wednesday, November 04, 2009 10:48 PMJohnWein Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    This will start it and hide it, but what then?

        Dim P As Process = Process.GetProcessById(Shell("Notepad.exe", AppWinStyle.Hide))
    
    

All Replies

  • Saturday, October 31, 2009 11:20 PM•.trujade.• Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    keylogger, malware ,etc.?
    why would you run something on a users p.c. without their notice and approval?
    if they approve, they would not mind it showing in the system tray.
    •.˙trujade˙.•
  • Saturday, October 31, 2009 11:26 PMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Trujade isn't stuff like that. Its an extension to my program; a spell checker. 
  • Saturday, October 31, 2009 11:50 PM•.trujade.• Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    just checking..
    i knew i should not expect something like that from you, especially from viewing/helping out w/your past threads, but it was worth asking.
    -----
    here is something to get you started, see if it helps.

        Dim myexe As Process = Process.Start("notepad")
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            myexe.Kill()
        End Sub
    

    •.˙trujade˙.•
  • Sunday, November 01, 2009 12:02 AMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hey trujade that worked! But how do i set the program to invisible, if you want to try it its called TinySpell, and no, i would NEVER make/do something like that. Thanks for all your help!
  • Sunday, November 01, 2009 12:06 AMbdbodger Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    You can do like this as well assuming that your spell checker is a console app .

      
     Dim Spelling As New Process
    
        Private Sub Form1_Load( _
        ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
    
            Dim SpellInfo As New ProcessStartInfo
            With SpellInfo
                .FileName = "MySpell.exe"
                .RedirectStandardInput = True
                .RedirectStandardOutput = True
                .RedirectStandardError = True
                .UseShellExecute = False
                .CreateNoWindow = True
            End With
            Spelling.StartInfo = SpellInfo
            Spelling.Start()
    
        End Sub
    

    To write to the spellchecker you use

            Spelling.StandardInput.Write("Some Text")
            Spelling.StandardInput.WriteLine("A line")
    

    and read the output in a simular way
    coding for fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
    Please format the code in your posts with the button . Makes it easier to read .
  • Tuesday, November 03, 2009 8:43 PMShariqDON Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hey trujade that worked! But how do i set the program to invisible, if you want to try it its called TinySpell, and no, i would NEVER make/do something like that. Thanks for all your help!

    Sorry For Proposed As Answer :

    Try this:

    Dim RunningProcess As System.Diagnostics.Process = Process.GetProcessesByName("notepad.exe")(0)
    RunningProcess.Kill()
    
    

    www.shariqdon.media.officelive.com
  • Wednesday, November 04, 2009 12:52 AM•.trujade.• Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ccro5 , i tried out tinyspell. nice little app, too many beeps..
    by using it, i noticed that all my windows apps were affected.. this could get annoying, did for me, really quick, so, i uninstalled the app even quicker.

    another thing, tinyspell is freeware, somewhat, although if you plan to distribute your app, freeware or not, contact the designer(s) of tinyspell and ask for permission to do so, etc.  i did for icons on my freeware apps, and i got the permission to add a link to my website..
    always support the little guys, as having your splash screen display a little note somewhere, stating ( powered by tinyspell ).

    otherwise, unless you get permission from the tinyspell designer(s), to hide the icon in the system tray, i am done w/this thread.


    •.' trujade '.•
  • Wednesday, November 04, 2009 1:05 AMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    trujade i did plan on getting their permission but i was trying to hide the icon to get it out of the way, not to claim the app as mine. Do you have any idea if i could fix it for my app, and my app only or would i have to ask the developers for it? 
  • Wednesday, November 04, 2009 3:29 AM•.trujade.• Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ccro5 , personally, i would not be the one to edit anyone else's published app, so my help w/doing so, none there. ;o/
    would not know where to begin..
    good luck.
    about asking the developer(s), what a great idea..   just evaluate your presentation a little.
    if they look like this guy --> you should be in good hands..


    •.' trujade '.•
  • Wednesday, November 04, 2009 9:21 PMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hmm... if i cannot make it invisible im sure my users will not mind having it open while my app is running. Since they will more than likely be focused on my app anyways, and if not they can simply ignore it or even close Tiny-Spell. 


    • Edited byccr05 Thursday, November 05, 2009 2:57 AMEmail needed to be removed.
    •  
  • Wednesday, November 04, 2009 10:48 PMJohnWein Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    This will start it and hide it, but what then?

        Dim P As Process = Process.GetProcessById(Shell("Notepad.exe", AppWinStyle.Hide))
    
    
  • Thursday, November 05, 2009 2:58 AMccr05 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    That is it, thank you! I shall try that.