Results 1 to 7 of 7

Thread: How to launch an application when a modem is connected with remote pc..

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    How to launch an application when a modem is connected with remote pc..

    Any Idea??

  2. #2

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Plz.......................

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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 :

  4. #4

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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...

  5. #5
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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 :

  6. #6

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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...

  7. #7
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    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
  •  



Click Here to Expand Forum to Full Width