Advertisement
MarcoPolo0306

Untitled

Jun 14th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. while true do
  2. term.setCursorPos(1,1)
  3. term.setBackgroundColor(colors.black)
  4. term.clear()
  5. print("Please enter program to run:")
  6. local programToRun = read()
  7. print("Please enter window X pos:")
  8. local windowXpos = read()
  9. print("Please enter window Y pos:")
  10. local windowYpos = read()
  11.  
  12. if tonumber(windowXpos) == nil then
  13. error("windowXpos is invalid")
  14. end
  15. if tonumber(windowYpos) == nil then
  16. error("windowYpos is invalid")
  17. end
  18. if not fs.exists(programToRun) then
  19. error("programToRun is invalid")
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement