Simple little alias of some sort, for math evaluations

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

Hydryad
decaying skeleton
decaying skeleton
Posts: 7
Joined: Wed Jan 18, 2006 7:50 pm

Simple little alias of some sort, for math evaluations

Post by Hydryad » Thu Mar 30, 2006 10:27 pm

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.

Gameross
a lesser mummy
a lesser mummy
Posts: 46
Joined: Mon May 03, 2004 10:11 am

to easy

Post by Gameross » Tue Apr 18, 2006 4:44 am

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

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 8:35 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 8:36 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 8:38 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 9:15 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 9:16 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 9:17 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 9:54 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:31 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:32 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:33 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:35 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:36 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

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

Post by xyilla » Fri Jul 11, 2025 10:37 am