ShareShortcuts

NEW SYSTEM TOGGLE

New shortcu

majorata
Dupliquer « NEW SYSTEM TOGGLE »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que majorata soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
31K
Enregistré
1
Actions
115
Catégorie
API
Version
1.0
Langue
EN

New shortcu

Nouveautés

Version 1.0

First release

Historique des versions
1.0 11 juil. 2023

First release

Ce qu’il fait

115 actions
  1. If
  2. Dictionary
  3. Text
  4. Set Name
  5. Choose from List
  6. If
  7. Choose from Menu
    Boost?
  8. Choose from Menu
    Refresh
  9. Get Network Details
  10. Get Network Details
  11. Get Network Details
  12. Set Cellular Data
  13. Set Personal Hotspot
  14. Wait
  15. Set Cellular Data
  16. Choose from Menu
    3G
  17. Show Alert
  18. Cellular Rat Set
  19. Wait
  20. Lock Screen
  21. Show Alert
  22. Choose from Menu
    LTE
  23. Show Alert
  24. Cellular Rat Set
  25. Lock Screen
  26. Show Alert
  27. Run Shortcut
    iControl 1.7.0 Beta 7.1
  28. If
  29. Dictionary
  30. Text
  31. Set Name
  32. Get Contacts from Input
  33. Choose from List
  34. If
  35. Set Cellular Data
  36. If
  37. If
  38. Set Personal Hotspot
  39. Wait
  40. Set Cellular Data
  41. If
  42. Run Shortcut
    iControl 1.7.0 Beta 7.1
  43. If
  44. Dictionary
  45. Text
  46. Set Name
  47. Get Contacts from Input
  48. Choose from List
  49. If
  50. Set Cellular Data
  51. Wait
  52. Set Personal Hotspot
  53. URL
    Prefs:root=INTERNET_TETHERING
  54. Open URLs
  55. If
  56. If
  57. Set Personal Hotspot
  58. If
  59. Run Shortcut
    iControl 1.7.0 Beta 7.1
  60. If
  61. Dictionary
  62. Text
  63. Set Name
  64. Get Contacts from Input
  65. Choose from List
  66. If
  67. Vpn Set
  68. If
  69. If
  70. Vpn Set
  71. If
  72. Run Shortcut
    iControl 1.7.0 Beta 7.1
  73. If
  74. Dictionary
  75. Text
  76. Set Name
  77. Get Contacts from Input
  78. Choose from List
  79. If
  80. Set Wi-Fi
  81. If
  82. If
  83. Set Wi-Fi
  84. If
  85. Run Shortcut
    iControl 1.7.0 Beta 7.1
  86. If
  87. Dictionary
  88. Text
  89. Set Name
  90. Get Contacts from Input
  91. Choose from List
  92. If
  93. Set Bluetooth
  94. If
  95. If
  96. Set Bluetooth
  97. If
  98. Run Shortcut
    iControl 1.7.0 Beta 7.1
  99. If
  100. URL
    Prefs:root=Privacy&path=LOCATION
  101. Open URLs
  102. If
  103. Dictionary
  104. Text
  105. Set Name
  106. Get Contacts from Input
  107. Choose from List
  108. If
  109. A X Toggle Assistive Touch
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  110. If
  111. If
  112. A X Toggle Assistive Touch
    com.apple.AccessibilityUtilities.AXSettingsShortcuts
  113. If
  114. Run Shortcut
    iControl 1.7.0 Beta 7.1
  115. If

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#define mac false
#include 'actions/network'
#define color teal
#define glyph puzzlePiece


if !ShortcutInput {
	const Text = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Cellular data 3G LTE refresh;;;;\nORG;CHARSET=utf-8:data refresh and switch between 3g lte;\nPHOTO;ENCODING=b:{['celular data 3g']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:cellular data toggle;;;;\nORG;CHARSET=utf-8:cellular data on off;\nPHOTO;ENCODING=b:{['celular data']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Personal hotspot toggle;;;;\nORG;CHARSET=utf-8: personal hotspot on off;\nPHOTO;ENCODING=b:{['personal hotspot']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:VPN toggle;;;;\nORG;CHARSET=utf-8:  VPN on off;\nPHOTO;ENCODING=b:{['vpn']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Wi-Fi toggle;;;;\nORG;CHARSET=utf-8:Wi-Fi on off;\nPHOTO;ENCODING=b:{['Wi-Fi']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8: Bluetooth toggle;;;;\nORG;CHARSET=utf-8:Bluetooth  on off;\nPHOTO;ENCODING=b:{['Bluetooth']}\nEND:VCARD\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8: location services toggle;;;;\nORG;CHARSET=utf-8: Public transportation to all location services;\nPHOTO;ENCODING=b:{['location']}\nEND:VCARD\n\n\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8: Assistive Touch toggle;;;;\nORG;CHARSET=utf-8:Assistive Touch on off;\nPHOTO;ENCODING=b:{['assistive']}\nEND:VCARD\n"
	const ObjektUmbenennen = setName(Text, "Action.vcf")
	const ChosenItem = chooseFromList(ObjektUmbenennen, "Action")
	if ChosenItem == "Cellular data 3G LTE refresh" {
		menu "Boost?" {
		item "Refresh":
			getCellularDetail("Radio Technology")
			getWifiDetail("Network Name")
			getCellularDetail("Carrier Name")
			setCellularData(0)
			setHotspot(false)
			wait(5)
			setCellularData(1)
		item "3G":
			confirm("In the next pop up you can choose which SIM do you want to boost.(if you have eSIM.)")
			rawAction("is.workflow.actions.cellular.rat.set", {
				"ratMode": "3G",
				"sim": "Ask"
			})
			wait(3)
			lockScreen()
			confirm("Boosted!")
		item "LTE":
			confirm("In the next pop up you can choose which SIM do you want to boost.(if you have eSIM.)")
			rawAction("is.workflow.actions.cellular.rat.set", {
				"ratMode": "LTE",
				"sim": "Ask"
			})
			lockScreen()
			confirm("Signal from before has been successful retrieved")
		}
		runSelf()
	}
	if ChosenItem == "cellular data toggle" {
		const Metin = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
		const AdDeimie = setName(Metin, "vcard.vcf")
		const Kiiler = getContacts(AdDeimie)
		const Seilie = chooseFromList(Kiiler, false)
		if Seilie == "On" {
			setCellularData(1)
		} else {
		}
		if Seilie == "Off" {
			setHotspot(false)
			wait(2)
			setCellularData(0)
		} else {
		}
		runSelf(EerSonucu)
	}
	if ChosenItem == "Personal hotspot toggle" {
		const Metin1 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
		const AdDeimie1 = setName(Metin1, "vcard.vcf")
		const Kiiler1 = getContacts(AdDeimie1)
		const Seilie1 = chooseFromList(Kiiler1, false)
		if Seilie1 == "On" {
			setCellularData(1)
			wait(2)
			setHotspot(false)
			const URL = url("Prefs:root=INTERNET_TETHERING")
			openURL(URL)
		} else {
		}
		if Seilie1 == "Off" {
			setHotspot(false)
		} else {
		}
		runSelf()
	}
	if ChosenItem == "VPN toggle" {
		const Metin2 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
		const AdDeimie2 = setName(Metin2, "Menu.vcf")
		const Kiiler2 = getContacts(AdDeimie2)
		const Seilie2 = chooseFromList(Kiiler2, false)
		if Seilie2 == "On" {
			rawAction("is.workflow.actions.vpn.set", {
				"WFVPN": "Ask"
			})
		} else {
		}
		if Seilie2 == "Off" {
			rawAction("is.workflow.actions.vpn.set", {
				"WFVPN": "Ask",
				"WFVPNOperation": "Disconnect"
			})
		} else {
		}
		runSelf(EerSonucu1)
	}
	if ChosenItem == "Wi-Fi toggle" {
		const Metin3 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
		const AdDeimie3 = setName(Metin3, "vcard.vcf")
		const Kiiler3 = getContacts(AdDeimie3)
		const Seilie3 = chooseFromList(Kiiler3, false)
		if Seilie3 == "On" {
			setWifi(1)
		} else {
		}
		if Seilie3 == "Off" {
			setWifi(0)
		} else {
		}
		runSelf(EerSonucu1)
	}
	if ChosenItem == "Bluetooth toggle" {
		const Metin4 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
		const AdDeimie4 = setName(Metin4, "vcard.vcf")
		const Kiiler4 = getContacts(AdDeimie4)
		const Seilie4 = chooseFromList(Kiiler4, false)
		if Seilie4 == "On" {
			setBluetooth(false)
		} else {
		}
		if Seilie4 == "Off" {
			setBluetooth(0)
		} else {
		}
		runSelf(EerSonucu1)
	}
	if ChosenItem == "location services toggle" {
		const URL1 = url("Prefs:root=Privacy&path=LOCATION")
		openURL(URL1)
	}
}

if ChosenItem == "Assistive Touch toggle" {
	const Metin5 = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:On;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.on']}\nEND:VCARD\n\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Off;;;;\nORG:  ;\nPHOTO;ENCODING=b:{['Icons.off']}\nEND:VCARD\n\n"
	const AdDeimie5 = setName(Metin5, "vcard.vcf")
	const Kiiler5 = getContacts(AdDeimie5)
	const Seilie5 = chooseFromList(Kiiler5, false)
	if Seilie5 == "On" {
		rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleAssistiveTouchIntent", {
			"operation": "turn",
			"state": 1
		})
	} else {
	}
	if Seilie5 == "Off" {
		rawAction("com.apple.AccessibilityUtilities.AXSettingsShortcuts.AXToggleAssistiveTouchIntent", {
			"operation": "turn",
			"state": 0
		})
	} else {
	}
	runSelf(EerSonucu1)
} else {
}
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de majorata

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité