|
-
Apr 7th, 2004, 12:53 PM
#1
Thread Starter
Frenzied Member
How to launch an application when a modem is connected with remote pc..
-
Apr 9th, 2004, 03:29 AM
#2
Thread Starter
Frenzied Member
Plz.......................
-
Apr 9th, 2004, 07:28 PM
#3
Originally posted by moinkhan
Plz.......................
Why not try using API to check if there is any active connection, as soon as your program detects an active connection then fireup the application you want to launch.
Give that a try.
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Apr 10th, 2004, 05:31 PM
#4
Thread Starter
Frenzied Member
This way my application would always be running and checking the connection on interval basis... this is resource wasting... i don't want that... there must be a system message which application should catch and then process.... like MSN Messenger and yahoo messenger do...
-
Apr 10th, 2004, 05:42 PM
#5
Originally posted by moinkhan
This way my application would always be running and checking the connection on interval basis... this is resource wasting... i don't want that... there must be a system message which application should catch and then process.... like MSN Messenger and yahoo messenger do...
Hmm, i would like to know about those magic functions . How do you think Messenger and Yahoo does that? They check for connection state just like that, or something simillar......
Good luck
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Apr 13th, 2004, 07:57 AM
#6
Thread Starter
Frenzied Member
Originally posted by Danial
Hmm, i would like to know about those magic functions . How do you think Messenger and Yahoo does that? They check for connection state just like that, or something simillar......
Good luck
No magic... just hooks... you have to hook your Program's Windows Main procedure... Operating System sends a message for almost all the activities (like screen refreshing..) to the window.. we intercept such messages and process them before our program has the chance to process(or ignore) it...
Well.. i was interested in knowing whether OS gives any signal whenever dialup connection is made to the remote pc...........Just tell me WM_?????? i will do the rest...
-
Apr 13th, 2004, 08:20 AM
#7
Originally posted by moinkhan
No magic... just hooks... you have to hook your Program's Windows Main procedure... Operating System sends a message for almost all the activities (like screen refreshing..) to the window.. we intercept such messages and process them before our program has the chance to process(or ignore) it...
Well.. i was interested in knowing whether OS gives any signal whenever dialup connection is made to the remote pc...........Just tell me WM_?????? i will do the rest...
I am aware of Hooks, dont think it will apply in this case. Also if you are usinb VB to hook you can expect fequent crash.
I dont think it is that inefficient if you ru a small utility querying registry to check for connection state.
If you want to go on that path, try setting up a system wide hook and watch/check for all meseges.
Check this link for more detail on Hooks in VB.
http://www.vbaccelerator.com/home/VB...ry/article.asp
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
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
|