Advertisement
kolton

Untitled

Jul 11th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function Test() {
  2. print("ÿc8TESTING");
  3.  
  4. var c;
  5.  
  6. function KeyDown(key) {
  7. if (key === 45) {
  8. c = true;
  9. }
  10. }
  11.  
  12. addEventListener("keydown", KeyDown);
  13. addEventListener("copydata", CopyDataEvent);
  14.  
  15. function CopyDataEvent(mode, msg) {
  16. print(msg);
  17. }
  18.  
  19. while (true) {
  20. if (c) {
  21. test();
  22.  
  23. c = false;
  24. }
  25.  
  26. delay(10);
  27. }
  28. }
  29.  
  30. function test() {
  31. var profile1 = "Test",
  32. profile2 = "Test2";
  33.  
  34. sendCopyData(null, me.profile === profile1 ? profile2 : profile1, 0, "hi this is a test");
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement