Advertisement
Guest User

mainclass

a guest
Jul 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. package scripts;
  2.  
  3. import org.powerbot.script.Condition;
  4. import org.powerbot.script.PollingScript;
  5. import org.powerbot.script.rt4.ClientContext;
  6. import org.powerbot.script.Script;
  7.  
  8. import javax.swing.*;
  9.  
  10.  
  11. @Script.Manifest(name = "AutoTyper420", description = "420 autotyper", properties = "author = the downy; topic=999; client=4")
  12.  
  13.  
  14. public class AutoTyper extends PollingScript<ClientContext> {
  15.  
  16.  
  17. public boolean guiTimer = false;
  18.  
  19.  
  20.  
  21.  
  22. @Override
  23. public void start() {
  24. System.out.println("Started");
  25. SwingUtilities.invokeLater(new Runnable() {
  26. @Override
  27. public void run() {
  28. try {
  29. frame frame = new frame();
  30. frame.setVisible(true);
  31. } catch (Exception e) {
  32. e.printStackTrace();
  33. }
  34. }
  35. });
  36.  
  37.  
  38. }
  39.  
  40. @Override
  41. public void stop() {
  42. System.out.println("stopped");
  43.  
  44. }
  45. public void autoTyping(){
  46. frame frame = new frame();
  47. frame.setVisible(false);
  48. if(frame.talker = true){
  49. ctx.input.sendln(frame.textInput);
  50. }
  51. if(frame.talker = false){
  52. System.out.println("is stayin false nigga");
  53. }
  54.  
  55. }
  56.  
  57. public void poll() {
  58. autoTyping();
  59.  
  60.  
  61. }
  62.  
  63.  
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement