Python code that obtains the parameter that was sent to alexa, and puts it on the clipboard
-
The parameter is also stored in the variable 'par'
import pyperclip as clipboard import time time.sleep(2) ruta = r"C:\Users\nicoa\.TRIGGERcmdData\debug.log" with open(ruta,"r") as f: lista=[] x=1 texto=[] for i in f: texto.append(i) for pos,char in enumerate((texto[-3])): if(char == '.'): x=x+1 if char== '\'' : x=x+1 if x==2: lista.append(char) lista.pop(0) par="".join(lista) clipboard.copy(par)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login