ShareShortcuts

Homemade Calculator

Welcome To HCalculator!

mayoomisauce
Fork “Homemade Calculator”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so mayoomisauce gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
46K
Saved
1
Actions
33
Category
Calculations
Version
1.1
Language
EN

Welcome To HCalculator! This is a little calculator shortcut i made during school. Enjoy!

What's New

Version 1.1

added new icon lol

Version History
1.1 Nov 9, 2021

added new icon lol

1.0 Nov 9, 2021

First release

What it does

33 actions
  1. Dictionary
  2. Run Shortcut
  3. Ask for Input
    first number?
  4. Ask for Input
    second number?
  5. Choose from Menu
    what operation?
  6. Choose from Menu
    Add
  7. Calculate
  8. Show Result
  9. Choose from Menu
    make note?
  10. Choose from Menu
    yes
  11. Create Note
  12. Choose from Menu
    no
  13. Choose from Menu
    Subtract
  14. Calculate
  15. Show Result
  16. Choose from Menu
    make note?
  17. Choose from Menu
    yes
  18. Create Note
  19. Choose from Menu
    no
  20. Choose from Menu
    Multiply
  21. Calculate
  22. Show Result
  23. Choose from Menu
    make note?
  24. Choose from Menu
    yes
  25. Create Note
  26. Choose from Menu
    no
  27. Choose from Menu
    Divide
  28. Calculate
  29. Show Result
  30. Choose from Menu
    make note?
  31. Choose from Menu
    yes
  32. Create Note
  33. Choose from Menu
    no

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#define color orange
#define glyph calculator

const Dictionary = {
	"Name": "Homemade Calculator",
	"Shareid": 1522,
	"Version": "1.0"
}
runSelf(Dictionary)
const ProvidedInput = prompt("first number?", "Number")
const ProvidedInput1 = prompt("second number?", "Number")

menu "what operation?" {
item "Add":
	show()
	menu "make note?" {
	item "yes":
		rawAction("com.apple.mobilenotes.SharingExtension", {
			"ShowWhenRun": false,
			"WFCreateNoteInput": "{}",
			"WFNoteGroup": "Ask: \"which folder do you want the note to be in?\""
		})
	item "no":
	}
item "Subtract":
	show()
	menu "make note?" {
	item "yes":
		rawAction("com.apple.mobilenotes.SharingExtension", {
			"ShowWhenRun": false,
			"WFCreateNoteInput": "{}",
			"WFNoteGroup": "Ask: \"which folder do you want the note to be in?\""
		})
	item "no":
	}
item "Multiply":
	show()
	menu "make note?" {
	item "yes":
		rawAction("com.apple.mobilenotes.SharingExtension", {
			"ShowWhenRun": false,
			"WFCreateNoteInput": "{}",
			"WFNoteGroup": "Ask: \"which folder do you want the note to be in?\""
		})
	item "no":
	}
item "Divide":
	show()
	menu "make note?" {
	item "yes":
		rawAction("com.apple.mobilenotes.SharingExtension", {
			"ShowWhenRun": false,
			"WFCreateNoteInput": "{}",
			"WFNoteGroup": "Ask: \"which folder do you want the note to be in?\""
		})
	item "no":
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by mayoomisauce

See All

You Might Also Like

See All
Advertisement