mIRC Home    About    Download    Register    News    Help

Print Thread
#18196 05/04/03 07:04 PM
T
Thedude
Thedude
T
When the user connects to the internet, a signal is triggered.

#18197 05/04/03 07:07 PM
Joined: Dec 2002
Posts: 817
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 817
Huh?

#18198 05/04/03 07:10 PM
T
Thedude
Thedude
T
Quote:
Huh?

When the user (The person using mIRC) connects to the internet (dials up and then connects), mIRC triggers a signal. I don't know if there's any DLLs allready that do this, but I haven't seen any yet..

#18199 05/04/03 10:25 PM
Joined: Dec 2002
Posts: 3,015
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,015
um.. are you maybe asking that when you connect to the internet, that there be a way for mIRC to detect that and automatically open and connect to a server?

#18200 05/04/03 11:23 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Thjat would be my guess... I'm assuming like on 1:INTERNET: { }

#18201 06/04/03 01:02 AM
S
SaX0n
SaX0n
S
There are some ways to do it, but not many reliable ones. ICQ does it with it's 'netdetect' agent, however, that only works for Dial-up. Another way to do it might be for mIRC to periodically check for the presence of an IP address. There are problems with that too, However there are probably other methods. It might help if mIRC had an option to place itself in the system tray on windows startup, to compliment this feature. Although i doubt that would be added because of recent viruses.

#18202 06/04/03 06:05 AM
C
codemastr
codemastr
C
checking for an IP address wouldn't work if you are on a LAN. The most reliable way? Try and connect to some host:port you KNOW is up and running. If it connects, you're on the internet, if not, then you aren't. That could be scripted. You'd just make a socket that connects to say... google.com (which I personally have never seen down). If the connect fails, then you're not on the internet, if it succeeds, then you are.

#18203 06/04/03 06:52 PM
T
Thedude
Thedude
T
Yeah, kinda.. When you connect to the internet a on *:internet:{ } thing is triggered, just like the dude said..

#18204 06/04/03 08:53 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
i dont see that possible unless u go into ur registry and make (force) mirc to startup when your pc does ..... in that case then ud only need on start ...... if the program isnt running how is it supposed to detect anything?

#18205 07/04/03 08:37 AM
T
Thedude
Thedude
T
Well, the signal is triggered when you connect to the internet, if mIRC is open.

#18206 07/04/03 12:04 PM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
ok let me slow it down for u your wanting ur pc to auto open mirc and connect to a server when u have an internet connection ......... now if the mirc is already OPEN then why would u need it to open mirc an connect? then u just have the issue of trying to connect only when online ........ just make an onstart event to start checking to see if u can resolve an ip ..... if its able to resolve then u should be connected to the internet in that case then make it connect to whatever server u want to

#18207 07/04/03 04:54 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Quote:

Well, the signal is triggered when you connect to the internet, if mIRC is open.


d3m0n:

I think your misreading.. He wants mirc while opened to trigger the on internet event, and not to open when internet is established...

#18208 07/04/03 06:59 PM
P
ppslim
ppslim
P
There is a quick hack for this.

Using sockets, you can detect if a connection suceeds. You can then use the SIGNAL event, as a workaround to a netdetect event.

#18209 07/04/03 08:14 PM
C
codemastr
codemastr
C
Isn't that what I said... 6 replies ago, although everyone ignored that?

#18210 09/04/03 10:13 AM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
You could even check $sockerr to determine why you couldn't connect, that way you wouldn't even be dependant on google being up.


Link Copied to Clipboard