Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

OSD Calculator


  • Please log in to reply
No replies to this topic
Argande102
  • Members
  • 19 posts
  • Last active: Jan 05 2016 09:26 PM
  • Joined: 17 Aug 2012

OSD Calculator
 
First of all, my english is pretty horrible so sorry of that.
 
About a half year ago I got an idea when I was using photoshop and got annoyed when I needed everytime to open my calculator to calculate simple calculations. And because I don't use so much numpad I made calculator in numpad. I did this script then and never shared because I didn't use it after all a lot of and I thought nobody doesn't need this and I had couple problems with it. But now I thought that why not. Maybe AHK community gets something out of this. happy.png
 
Basic idea is that whole numpad area is your calculator and you can type in your screen calculation and press enter to get your answer. When your num lock is on, calculator is on and if you want to reset the calculator you just switch calculator off and on (like those cheap simple calculators what you can buy from any market). You can type numbers, basic operations (+, -, *, /) and decimals. You can copy and paste stuff too (Ctrl+C and V) in calculator and from calculator. You can change your font color too.
 
Features:

  • Calculate basic calculations fast and easy
  • Decimals works
  • Copy and paste your numbers
  • Change your font color!

Code:

Spoiler

After all, really simple script.
 
Notes:

  • Copy and paste works but it has some own problems e.g. when you paste something it's pasting that in calculator and outside of the calculator.
  • Position is now only one place.
  • White color doesn't work. I use it as transparency color so if you put white, whole text is gone. I think it's fixable but I leave it now.
  • I'm not the best at AHK so there isn't extremely compact code here and maybe useless stuff too.

If you have any good fixes and tips, tell me! happy.png