mIRC Homepage

How can I combine these scripts?

Posted By: Ifrag

How can I combine these scripts? - 10/04/07 03:53 PM

Ok I want to combine these 2 groups of scripts.

The first two I want to combine are (so /a makes both happen)

/a /me Is now away playing CSS
/a /nick Ifrag`CSS

and the second (so /b makes both happen)

/b /me Is back from playing CCS
/b /nick Ifrag

If anyone could get back to me it would be greatly appreciated =0D
Posted By: RoCk

Re: How can I combine these scripts? - 10/04/07 03:54 PM

/a /me Is now away playing CSS | /nick Ifrag`CSS

/b /me Is back from playing CCS | /nick Ifrag

You could assign these to F keys...

F2 me is now away playing CSS | nick Ifrag`CSS
F3 me is back from playing CCS | nick Ifrag
Posted By: Kardafol

Re: How can I combine these scripts? - 10/04/07 04:04 PM

A better way of doing it:
Code:
/a {
 me Is now away playing CSS
 nick Ifrag`CSS
}
/b {
 me Is back from playing CCS 
 nick Ifrag
}
Posted By: RoCk

Re: How can I combine these scripts? - 10/04/07 04:13 PM

A different way yes, but not necessarily better. I tend to combine a
couple of simple commands to one line in simple little situations like
this rather than having four lines. Just a matter of preference I guess.

I would never combine/pipe in situations like this one .. it just makes it
harder to read and work with imo.
Posted By: Riamus2

Re: How can I combine these scripts? - 10/04/07 05:29 PM

Just an explanation for using those... Add them to your Aliases tab in the script editor (Alt-R > Aliases). And you don't need any /'s.
Posted By: Ifrag

Re: How can I combine these scripts? - 11/04/07 07:56 PM

Thankyou very much for your help, they worked very well, I have chose to asign them to the F2 and F3 keys, thanks again

Kind Regards

Ifrag
Posted By: billythekid

Re: How can I combine these scripts? - 12/04/07 09:59 AM

Originally Posted By: Riamus2
Just an explanation for using those... Add them to your Aliases tab in the script editor (Alt-R > Aliases). And you don't need any /'s.


...or just Alt+A

btk
Posted By: Riamus2

Re: How can I combine these scripts? - 12/04/07 05:49 PM

I thought Alt-A worked as well, but in 2 clients I run (6.21), Alt-A opens the favorites menu instead.
Posted By: hixxy

Re: How can I combine these scripts? - 12/04/07 05:51 PM

It's Alt+D
Posted By: Riamus2

Re: How can I combine these scripts? - 12/04/07 05:56 PM

Ah. Now I wonder how D is associated with Aliases. Still, it's good to know.
Posted By: RusselB

Re: How can I combine these scripts? - 12/04/07 10:48 PM

If you do Alt+R, then Alt+A, you'll get Aliases

As to how someone would think of Alt+D to get to Aliases, I haven't a clue....we'll probably have to wait for an answer from Khaled in regards to that.
Posted By: RoCk

Re: How can I combine these scripts? - 12/04/07 11:57 PM

According to versions.txt, Alt+D was added in v6.1

105. Added Alt+D shortcut to open Aliases section in script editor,
due to conflicting Alt+A in Favorites menu. The Favorites menu
can however be turned off, in which case Alt+A will revert to
opening Aliases.
Posted By: Mentality

Re: How can I combine these scripts? - 13/04/07 01:41 AM

To expand on what RoCk said btw, the way to turn it back to the original form is go to View > Favorites and checking Tools Menu rather than Main Menu. Then ALT+A will once again open up the Aliases dialog :-)

Regards,
© 2022 mIRC Discussion Forums