Piorjade

Google WebSite for WebBrowser Program (german)

Jan 11th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. sleep(0) --So you don't go too fast
  2. write("Suche: ")
  3. input = read()
  4. rednet.broadcast("rednet.api.ping.searchengine") --Send a message to all listening servers
  5. while true do -- Start the loop
  6. local a, i = rednet.receive(0) --Begin receiving for all servers that received the message
  7. if i then --If you receive a message then...
  8. if input == "" then
  9. print("Ergebnis (Adresse): " ..i) --Print the address
  10. else
  11. if string.find(i, input) then
  12. print("Ergebnis (Adresse): " ..i) --Print the address
  13. end
  14. end
  15. else --If you dont receive a message or you received every message then...
  16. break --Stop the searching
  17. end
  18. end--Finish the loop
Add Comment
Please, Sign In to add comment