mIRC Home    About    Download    Register    News    Help

Print Thread
on internet #18196 05/04/03 07:04 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
When the user connects to the internet, a signal is triggered.

Re: on internet #18197 05/04/03 07:07 PM
Joined: Dec 2002
Posts: 843
P
Poppy Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Huh?


Never compare yourself to others - they're more screwed up than you think.
Re: on internet #18198 05/04/03 07:10 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
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..

Re: on internet #18199 05/04/03 10:25 PM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
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?


ParaBrat @#mIRCAide DALnet
Re: on internet #18200 05/04/03 11:23 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Thjat would be my guess... I'm assuming like on 1:INTERNET: { }


-KingTomato
Re: on internet #18201 06/04/03 01:02 AM
Joined: Feb 2003
Posts: 32
S
SaX0n Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 32
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.

Re: on internet #18202 06/04/03 06:05 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

Re: on internet #18203 06/04/03 06:52 PM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
Yeah, kinda.. When you connect to the internet a on *:internet:{ } thing is triggered, just like the dude said..

Re: on internet #18204 06/04/03 08:53 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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?


D3m0nnet.com
Re: on internet #18205 07/04/03 08:37 AM
Joined: Jan 2003
Posts: 41
T
Thedude Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
Well, the signal is triggered when you connect to the internet, if mIRC is open.

Re: on internet #18206 07/04/03 12:04 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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


D3m0nnet.com
Re: on internet #18207 07/04/03 04:54 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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...


-KingTomato
Re: on internet #18208 07/04/03 06:59 PM
Joined: Dec 2002
Posts: 44
P
ppslim Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 44
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.


Suck it, lick it, milk it then put it away.
Re: on internet #18209 07/04/03 08:14 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Isn't that what I said... 6 replies ago, although everyone ignored that?

Re: on internet #18210 09/04/03 10:13 AM
Joined: Dec 2002
Posts: 117
R
Rich Offline
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.


$input(Me like stars, You too?)