|
-
Jan 16th, 2002, 07:20 PM
#1
-
Jan 16th, 2002, 07:22 PM
#2
Lively Member
Code:
shell "programname.exe"
should work.
-
Jan 16th, 2002, 07:27 PM
#3
Fanatic Member
You can even add
Code:
myInt = Shell "c:\Program2.exe", vbNormalFocus
'This will open the new program in front, not minimized or in any other state, and make myInt 1 if the program loads, and 0 if it fails.
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
-
Jan 16th, 2002, 07:28 PM
#4
not that command.
ie. i have a program that all ready compiled to example.exe and i want to make another new program, if I double click on the example.exe my new program have to open.
how do i do it..
-
Jan 16th, 2002, 07:47 PM
#5
ie. I want to open a program call microsoft word. i want to make a new program if i double click on microsoft word.exe and then a message box have to appear from my new program and say "Welcome".
How do i do it????
-
Jan 16th, 2002, 08:09 PM
#6
Frenzied Member
As everyone has said. You compile your EXE to be called whatever. Your code would read as follows.
VB Code:
msgbox "Hello and welcome to my program",vbokonly,"Hi"
shell "c:\program files\microsoft office\winword.exe",vbnormal
"If at first you don't succeed, then skydiving is not for you"
-
Jan 20th, 2002, 06:14 PM
#7
not like that. if microsoft word opens, my program have to open tooo.
-
Jan 20th, 2002, 06:20 PM
#8
Frenzied Member
ie. I want to open a program call microsoft word. i want to make a new program if i double click on microsoft word.exe and then a message box have to appear from my new program and say "Welcome".
You are Canadian and yet.. U dont speak English ?? 
What people have given you is what you asked for in your statement above.
Anyway, never mind.
What you have to do is run your program in the background with a timer set to monitor all open windows.
When your program finds the handle of Micorosft Word, it can then intercept and do what you want it to do.
Search for help on using the findWindow or look at my post to Zero_Flaw and use the code. All you have to do is find what handle MS word uses.
Mega.
"If at first you don't succeed, then skydiving is not for you"
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
|