Results 1 to 10 of 10

Thread: open an external program

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    open an external program

    hey i need a code to open an external program

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    VB Code:
    1. Shell "C:\Windows\System32\notepad.exe", vbMaximizedFocus
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    man u got posts everywhere, how does your brain fit in your head ( i dont mean that offensively) thanks

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Originally posted by duc
    man u got posts everywhere, how does your brain fit in your head ( i dont mean that offensively) thanks
    I have a fast modem, a know a little VB
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    how do you close a program?

    edit: is it true that U.S.A Residents arent allowed to have a GIF in their signature, cuz thats what Alien_Poo keeps saying
    Last edited by duc; Oct 11th, 2002 at 08:57 PM.

  6. #6
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Originally posted by duc
    how do you close a program?

    edit: is it true that U.S.A Residents arent allowed to have a GIF in their signature, cuz thats what Alien_Poo keeps saying
    Close a program :

    VB Code:
    1. Dim Frm as Form
    2.  
    3. Form Each Frm in Forms
    4.  
    5. Unload Frm
    6.  
    7. Set Frm = Nothing
    8.  
    9. Next
    10.  
    11. End
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  7. #7

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    i dont mean the app i creat, like external programs. like say i want to close AIM

    edit: Create*

  8. #8
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    VB Code:
    1. ' Kill an app
    2.  
    3. Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    4. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    5. Private Const WM_CLOSE = &H10
    6.  
    7.  
    8. Private Sub Form_Load()
    9.     Dim tWnd As Long
    10.     tWnd = FindWindow(vbNullString, "Untitled - Notepad")
    11.     PostMessage tWnd, WM_CLOSE, 0&, 0&
    12. End Sub
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  9. #9

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    how bout an .exe

    like say i have AIM (aol instant messanger)

    i want to close the program. if i type whats in the window it just puts it down to the Systray

  10. #10
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Originally posted by duc
    how bout an .exe

    like say i have AIM (aol instant messanger)

    i want to close the program. if i type whats in the window it just puts it down to the Systray
    Why so you can do a search and post old threads to this one. Go play elsewhere...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width