Formular una preguntaFormular una pregunta
 

Respondida3rd Part software!

  • sábado, 31 de octubre de 2009 21:38ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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!

Respuestas

  • sábado, 31 de octubre de 2009 23:50•.trujade.• Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene código
    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˙.•
  • miércoles, 04 de noviembre de 2009 22:48JohnWein Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene código
    This will start it and hide it, but what then?

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

Todas las respuestas

  • sábado, 31 de octubre de 2009 23:20•.trujade.• Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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˙.•
  • sábado, 31 de octubre de 2009 23:26ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Trujade isn't stuff like that. Its an extension to my program; a spell checker. 
  • sábado, 31 de octubre de 2009 23:50•.trujade.• Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene código
    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˙.•
  • domingo, 01 de noviembre de 2009 0:02ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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!
  • domingo, 01 de noviembre de 2009 0:06bdbodger Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Tiene código
    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 .
  • martes, 03 de noviembre de 2009 20:43ShariqDON Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     Tiene código
    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
  • miércoles, 04 de noviembre de 2009 0:52•.trujade.• Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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 '.•
  • miércoles, 04 de noviembre de 2009 1:05ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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? 
  • miércoles, 04 de noviembre de 2009 3:29•.trujade.• Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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 '.•
  • miércoles, 04 de noviembre de 2009 21:21ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    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. 


    • Editadoccr05 jueves, 05 de noviembre de 2009 2:57Email needed to be removed.
    •  
  • miércoles, 04 de noviembre de 2009 22:48JohnWein Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     RespondidaTiene código
    This will start it and hide it, but what then?

        Dim P As Process = Process.GetProcessById(Shell("Notepad.exe", AppWinStyle.Hide))
    
    
  • jueves, 05 de noviembre de 2009 2:58ccr05 Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    That is it, thank you! I shall try that.