Shortcuts and Codea

My video…

My script Codea:

-- Shortcuts

-- Use this function to perform your initial setup
function setup()
--# Clear Clipboard
--# Open App Shortcuts
img = nil

-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
-- Do your drawing here
if img then
sprite(img, WIDTH/2, HEIGHT/2, WIDTH, HEIGHT)
img = pasteboard.image

my script Shortcuts:

@Diablo76 Can you explain what you’re showing here. I’m not sure what to make of this. My shortcuts app is in a folder with other apps that I’ll probably never use.

just play with command “openURL(“shortcuts://run-shortcut?name=name of shortcut”)”

So you’re using Codea to run things that can be controlled using the shortcuts app.


I tried it with the camera. I created a shortcut to take a picture and from Codea I called the shortcut. I could hear the camera take the picture, but it didn’t show up in the Photos app. Not sure where the picture went.

PS. The picture didn’t go anywhere. I had to add save to recents to the shortcut. So from Codea I took a picture and saved it to the recents folder in photos.

This can get interesting with all the shortcut options. Thanks @Diablo76

@dave1707 oui je pense que ce thread va amener quelques raccourcis lol
ho sorry my english is bad:
yes I think this thread will bring some shortcuts