ShareShortcuts

Cat toy

Play hide and seek with your pet

Создать форк «Cat toy»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы автор оригинала получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
73K
Сохранено
0
Действия
55
Категория
Fun
Версия
1.0
Язык
EN

Play hide and seek with your pet. Choose a sound and time and quickly hide your device. The sounds trigger your pet into some playful search. Let the hunting begin! Hide your device under a pillow or blanket. Shortcut features: - Select a sound - Choose the playing time - Restores your volume and brightness after the game has ended.

Что нового

Версия 1.0

First release

История версий
1.0 2 ноя 2018 г.

First release

Что делает

Действий: 55
  1. Comment
    Cat toy v1 by WildlakeLN Play hide and seek with your pet. Choose a sound and time and quickly hide your device. The sounds trigger your pet into some playful search. Let the hunting begin! Hide your device under a pillow or blanket. Shortcut featur…
  2. Comment
    Please don't frustrate your pet, so do not make it too difficult to find your device. If this game doesn't seem to give any reaction or triggers any interest in the playfulness of your pet, do not force your pet in any unwanted actions. Remember tha…
  3. Comment
    For your safety: No personal information is shared externally. This shortcut uses only native and local shortcuts actions. This shortcut is for entertainment purposes only.
  4. Get Device Details
  5. Set Variable
    Volume
  6. Get Device Details
  7. Set Variable
    Brightness
  8. Show Alert
    Let's play hide and seek
  9. Choose from Menu
    For how long does the game needs to play?
  10. Choose from Menu
    1 Minute
  11. Number
  12. Choose from Menu
    2 Minutes
  13. Number
  14. Choose from Menu
    5 Minutes
  15. Number
  16. Choose from Menu
    10 Minutes
  17. Number
  18. Text
  19. Set Variable
    Instruction
  20. Choose from Menu
    Choose a sound:
  21. Choose from Menu
    Bird sounds
  22. Show Alert
    Start game with bird sounds 🐦
  23. Wait
  24. Set Low Power Mode
  25. Set Volume
  26. Set Brightness
  27. Repeat
  28. Text
  29. Base64 Encode
  30. Play Sound
  31. Choose from Menu
    Cat sounds
  32. Show Alert
    Start game with cat sounds 🐱
  33. Wait
  34. Set Low Power Mode
  35. Set Volume
  36. Set Brightness
  37. Repeat
  38. Text
  39. Base64 Encode
  40. Play Sound
  41. Choose from Menu
    Mice sounds
  42. Show Alert
    Start game with mice sounds 🐭
  43. Wait
  44. Set Low Power Mode
  45. Set Volume
  46. Set Brightness
  47. Repeat
  48. Text
  49. Base64 Encode
  50. Play Sound
  51. Set Volume
  52. Set Brightness
  53. Set Low Power Mode
  54. Show Alert
  55. Run Shortcut
    Cat toy

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/media'
#define mac false
#include 'actions/device'
#define color pink
#define glyph pawPrint

/*
Cat toy v1 by WildlakeLN

Play hide and seek with your pet. Choose a sound and time and quickly hide your device. The sounds trigger your pet into some playful search. Let the hunting begin! Hide your device under a pillow or blanket.

Shortcut features:
- Select a sound
- Choose the playing time
- Restores your volume and brightness after the game has ended. 
*/
// Please don't frustrate your pet, so do not make it too difficult to find your device. If this game doesn't seem to give any reaction or triggers any interest in the playfulness of your pet, do not force your pet in any unwanted actions. Remember that this game doesn't always effect every pet.

// For your safety: No personal information is shared externally. This shortcut uses only native and local shortcuts actions. This shortcut is for entertainment purposes only.

getDeviceDetail("Current Volume")
@Volume = nil
getDeviceDetail("Current Brightness")
@Brightness = nil
alert("Choose a sound and time and hide your device. The sounds will trigger your pet into some playful search.\n\nTip: Hide your device under a blanket or pillow.", "Let's play hide and seek")

const ResultaatMenu = menu "For how long does the game needs to play?" {
item "1 Minute":
item "2 Minutes":
item "5 Minutes":
item "10 Minutes":
}
@Instruction = "Press 'OK' and hide your device, so your pet can go on a hunting trip.\n\nDo not lock your device. You have 10 seconds before the game starts."

menu "Choose a sound:" {
item "Bird sounds":
	alert(@Instruction, "Start game with bird sounds 🐦")
	wait(10)
	setLowPowerMode(false)
	setVolume(1)
	setBrightness(0)
	repeat _ for ResultaatMenu {
		base64Encode(nil)
		playSound(nil)
	}
item "Cat sounds":
	alert(@Instruction, "Start game with cat sounds 🐱")
	wait(10)
	setLowPowerMode(false)
	setVolume(1)
	setBrightness(0)
	repeat _ for ResultaatMenu {
		base64Encode(nil)
		playSound(nil)
	}
item "Mice sounds":
	alert(@Instruction, "Start game with mice sounds 🐭")
	wait(10)
	setLowPowerMode(false)
	setVolume(1)
	setBrightness(0)
	repeat _ for ResultaatMenu {
		base64Encode(nil)
		playSound(nil)
	}
}
setVolume(@Volume)
setBrightness(@Brightness)
setLowPowerMode(false)
alert("Do you want to play again?", "")
runSelf()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Вам также может понравиться

См. все
Реклама