Guest User

Untitled

a guest
Jul 31st, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. @name Http Request Test
  2. @inputs Keyboard:string Search EGP:wirelink
  3. @outputs
  4. @persist
  5. @trigger
  6.  
  7. if(first()) {
  8. runOnHTTP(1)
  9. }
  10.  
  11. if (httpCanRequest() & Search == 1) {
  12. httpRequest("https://en.wikipedia.org/wiki/" + Keyboard)
  13. }
  14. else {
  15. print("Error. You cannot search at this time or you did not press the button")
  16. }
  17.  
  18. if (httpClk()) {
  19. RequestURL = httpRequestUrl()
  20. Data = httpData()
  21. if (Data == " ") {
  22. print("Request timed out. Please try again.")
  23. }
  24. else {
  25. print(RequestURL + ":" + Data)
  26. EGP:egpBox(1,vec2(256,256),vec2(512,512))
  27. EGP:egpMaterial(1, Data)
  28. }
  29. }
  30.  
Add Comment
Please, Sign In to add comment