calculating math

Discussion, questions and support.
Post Reply
augustosabeh
Posts: 11
Joined: Oct 26th, ’20, 13:01

Post by augustosabeh » Jun 18th, ’21, 01:16

HI

I would like to know the way in which I can perform an operation (10% discount) on a number that I enter, and that the result shows it to me in a pop-up box. I feel like I can but I don't know how.

I hope someone can help me, thank you.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Jun 18th, ’21, 14:26

The simplest is to use the following code (Type: Command):

Code: Select all

InputBox, InputNum,, Price:,, 200, 120
MsgBox % "Price with 10% discount: " Round(InputNum*0.9, 2)
You can also use Manual Input macro, Calculation macro etc. We'll be releasing a new update with the Message Box macro in few days.
Post Reply