mIRC Homepage
Posted By: graze Help the idiot man with a script..... - 05/03/05 03:00 PM
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
Posted By: DaveC Re: Help the idiot man with a script..... - 05/03/05 09:41 PM
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 *
Posted By: graze Re: Help the idiot man with a script..... - 06/03/05 10:14 AM
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
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
Posted By: graze Re: Help the idiot man with a script..... - 06/03/05 05:43 PM
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
Posted By: Iori Re: Help the idiot man with a script..... - 06/03/05 06:55 PM
What do these server links look like? Show an example of one.
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
Posted By: Iori Re: Help the idiot man with a script..... - 06/03/05 09:21 PM
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
© mIRC Discussion Forums