mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2005
Posts: 3
G
graze Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2005
Posts: 3
Hi i am after a simple script. so that when i click on a ip in mirc that somebody else puts there it will start my cs source game and i join that server, i cant seem to find one anywhere....

any help will be greatfully recieved

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on $^*:hotlink:/\b(\d+\.\d+)\.(?1)\b/S:*:if !$longip($1) { halt }
on $*:hotlink:/\b(\d+\.\d+)\.(?1)\b/S:*:{ /run c:/program files/cs/game.exe $1 }

$1 is the IP so make your /run command how ever you need to make it mines just an example.

* Credit to Iori Its his/her code cut down from another thread *

Joined: Mar 2005
Posts: 3
G
graze Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2005
Posts: 3
thanks for reply but i am a complete noob err so do i just cut and paste this somewhere and it will work i bet it aint as simple as this...please dont beat me.

ps.my kid has to set the vcr so please be gentle.... confused

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
remotes
alt + r
if there is anything already there go to file and then new and paste it there
try to make sure the code is exactly as above
things tend to deviate when pasted(spacing)

aside: i dont know that runninh css with the ip at the end will make it connect to that ip but its worth a shot wink

Last edited by ricky_knuckles; 06/03/05 10:45 AM.

The Kodokan will move you, one way or another.
Joined: Mar 2005
Posts: 3
G
graze Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Mar 2005
Posts: 3
Ive put the script in but it isnt working its not picking the ip up as a link ie.if i put curser over a link for a url the cursor changes but it does nothing when i hold it over an ip addr for cs;s

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
What do these server links look like? Show an example of one.

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
ive never seen a link that opens css and goes to the server the link was for so it might be a good idea to try and give as many details as u can


The Kodokan will move you, one way or another.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, thay probably look like this: 123.123.123.123:12345
I don't know how you might run cs and connect to server, but this captures the link and port...
Code:
on $^*:hotlink:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\72\d{5}\b/S:*:if !$longip($gettok($1,1,58)) { halt }
on $*:hotlink:/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\72\d{5}\b/S:*:echo -a run whatever.exe with $1

Last edited by Iori; 06/03/05 09:22 PM.

Link Copied to Clipboard