TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Nico Ramirez
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by Nico Ramirez

    • 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)
      
      posted in General Discussion
      Nico RamirezN
      Nico Ramirez