|
-
Apr 15th, 2005, 10:19 AM
#11
Re: Sending messages between VB-created apps
 Originally Posted by penagate
Here is an scenario where I need it:
User opens my app (web browser).
User then manages to open it again, possibly by opening a .url link file or somehow doing some form of ShellExecute. I then want the 2nd instance to send the 1st instance a message, telling it to open a new window and passing the URL to open as a string, before closing itself (leaving the user with only 1 instance still and none the wiser).
For this, it seems the easiest thing to do is have your app check to see if it is already running, and it so, then not allow a second instance to be executed.
 Originally Posted by penagate
I didn't think this was possible using PostMessage etc. (thought you could only use the specific constants as messages)
Yes, you are right about that and now that I know the specifics of your request, those APIs I mentioned would not do you any good.
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
|