mIRC Home    About    Download    Register    News    Help

Print Thread
G
graze
graze
G
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

D
DaveC
DaveC
D
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 *

G
graze
graze
G
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

R
ricky_knuckles
ricky_knuckles
R
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.
G
graze
graze
G
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

I
Iori
Iori
I
What do these server links look like? Show an example of one.

R
ricky_knuckles
ricky_knuckles
R
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

I
Iori
Iori
I
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