|
-
Oct 11th, 2002, 08:28 PM
#1
Thread Starter
Fanatic Member
open an external program
hey i need a code to open an external program
-
Oct 11th, 2002, 08:30 PM
#2
PowerPoster
Well
VB Code:
Shell "C:\Windows\System32\notepad.exe", vbMaximizedFocus
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 11th, 2002, 08:49 PM
#3
Thread Starter
Fanatic Member
man u got posts everywhere, how does your brain fit in your head ( i dont mean that offensively) thanks
-
Oct 11th, 2002, 08:50 PM
#4
PowerPoster
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....
-
Oct 11th, 2002, 08:54 PM
#5
Thread Starter
Fanatic Member
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.
-
Oct 11th, 2002, 08:58 PM
#6
PowerPoster
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:
Dim Frm as Form
Form Each Frm in Forms
Unload Frm
Set Frm = Nothing
Next
End
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 11th, 2002, 09:01 PM
#7
Thread Starter
Fanatic Member
i dont mean the app i creat, like external programs. like say i want to close AIM
edit: Create*
-
Oct 11th, 2002, 09:04 PM
#8
PowerPoster
Well
VB Code:
' Kill an app
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
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Const WM_CLOSE = &H10
Private Sub Form_Load()
Dim tWnd As Long
tWnd = FindWindow(vbNullString, "Untitled - Notepad")
PostMessage tWnd, WM_CLOSE, 0&, 0&
End Sub
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 11th, 2002, 09:15 PM
#9
Thread Starter
Fanatic Member
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
-
Oct 11th, 2002, 09:17 PM
#10
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|