ShareShortcuts
Bifurcar “Wi-Fi or Data?”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que gollap-exe reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
39K
Guardado
1
Acciones
17
Categoría
API
Versión
1.0
Idioma
EN

A simple shortcut that detects whether you are on flight mode (stopping the shortcut), Wi-Fi or Data. Feel free to use in your own shortcuts, no credits needed!

Novedades

Versión 1.0

First release

Historial de versiones
1.0 4 de sep. de 2022

First release

Qué hace

17 acciones
  1. Show Alert
  2. Get IP Address
  3. If
  4. Show Alert
    Error
  5. Stop This Shortcut
  6. Get Device Details
  7. Wait
  8. Get Network Details
  9. If
  10. Comment
    This detects if the user is on Wi-Fi or Data, because shortcuts doesn’t allow us to set variables to custom text, we have to set it to something like the device model instead.
  11. Set Variable
    On Wi-Fi
  12. If
  13. Set Variable
    On Wi-Fi
  14. If
  15. Show Alert
  16. If
  17. Show Alert

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/network'
#define color green

confirm("Getting Network Details..")
const CurrentIPAddress = getExternalIP()

if !CurrentIPAddress {
	alert("You are on Airplane Mode!", "Error")
	stop()
}
getDeviceDetail("Device Model")
wait(3)
const NetworkDetails = getWifiDetail("Network Name")

if NetworkDetails {
	// This detects if the user is on Wi-Fi or Data, because shortcuts doesn’t allow us to set variables to custom text, we have to set it to something like the device model instead.

	@OnWiFi
} else {
	@OnWiFi = nil
}

if @OnWiFi {
	confirm("You are using Wi-Fi!")
} else {
	confirm("You are using Data!")
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de gollap-exe

Ver todo

También te puede gustar

Ver todo
Publicidad