Page 1 of 5

Simple little alias of some sort, for math evaluations

Posted: Thu Mar 30, 2006 10:27 pm
by Hydryad
Well what I want is pretty simple in theory. I just want to be able to, as opposed to launching a calculator externally use /echo ${Math.Calc[math problem]} for the times when I have something I need to calculate. Easy enough, but that is a lot to type out each time.

So essentially I want to try and make typing:

Code: Select all

="math problem"
evaluate what I enter after the '=' as a math problem. So I want to know, is there a way to make an alias "=" and pass a variable into the brackets from entering just that and the equation? It sounded simple at first but after reading around I doubt it can be done so simply without some kind of a plugin or macro.

A very special kind of lazyness it takes to go through this kind of trouble I guess, but any idea's on where to start or an easy way to go and do this would be appriciated.

*edit* I know how to launch the windows calculator from MQ2 (as several people have told me on IRC) but A) windows calculator sucks and B) it lags my machine when I open it(slightly) and C) I like how google's calculator function works and this would be similar to that, without having to launch a browser to use it while in EQ. Sure, maybe not a super smart way to use my time, but hopefully I can get something like that working.

to easy

Posted: Tue Apr 18, 2006 4:44 am
by Gameross
When you run this macro it will add a alias so you can just type = then your calculation. You need to add a space after the equal. Nothing I can do about that.

Code: Select all

| Math.mac

Sub Main

/squelch /alias = /mac math
/echo ${Param0} = ${Math.Calc[${Param0}]}
/endmacro

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 8:35 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 8:36 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 8:38 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 9:15 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 9:16 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 9:17 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 9:54 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:31 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:32 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:33 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:35 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:36 am
by xyilla

Re: Simple little alias of some sort, for math evaluations

Posted: Fri Jul 11, 2025 10:37 am
by xyilla