Advertisement
GravityCube

MonitorDisplay

Mar 5th, 2018 (edited)
2,400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. os.loadAPI("gcapi")
  2. function printSaved()
  3.     while true do
  4.         if fs.exists('gcAPIImage') then
  5.             gcapi.printImageFromFile('gcAPIImage', nil, true)
  6.         end
  7.         sleep(60)
  8.     end
  9. end
  10.  
  11. function mainProgram()
  12.     while true do  
  13.         write("Enter the url: ")
  14.         gcapi.printImageFromURL(gcapi.split(read()," ")[1], nil, true)
  15.     end
  16. end
  17. parallel.waitForAny(printSaved, mainProgram)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement