Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("gcapi")
- function printSaved()
- while true do
- if fs.exists('gcAPIImage') then
- gcapi.printImageFromFile('gcAPIImage', nil, true)
- end
- sleep(60)
- end
- end
- function mainProgram()
- while true do
- write("Enter the url: ")
- gcapi.printImageFromURL(gcapi.split(read()," ")[1], nil, true)
- end
- end
- parallel.waitForAny(printSaved, mainProgram)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement