NissanNut

AutoTalkerUI

Jul 10th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 35.17 KB | None | 0 0
  1. import org.runedream.api.Script;
  2.  
  3. /*
  4.  * To change this template, choose Tools | Templates
  5.  * and open the template in the editor.
  6.  */
  7.  
  8. /**
  9.  *
  10.  * @author Tanner
  11.  */
  12. public class AutoTalkerUI extends javax.swing.JFrame {
  13.    
  14.     public static boolean start = false;
  15.     public static boolean msg1;
  16.     public static boolean msg2;
  17.     public static boolean msg3;
  18.     public static boolean msg4;
  19.     public static boolean msg5;
  20.     public static boolean randomize;
  21.     public static boolean humanlike;
  22.     public static boolean rotation;
  23.     public static boolean randomorder;
  24.    
  25.     public static String msg_1;
  26.     public static String msg_2;
  27.     public static String msg_3;
  28.     public static String msg_4;
  29.     public static String msg_5;
  30.    
  31.     public static int intervalS, intervalMs;
  32.     public static int keystrokeMin, keystrokeMax;
  33.  
  34.     /**
  35.      * Creates new form AutoTalkerUI
  36.      */
  37.     public AutoTalkerUI() {
  38.         initComponents();
  39.     }
  40.  
  41.     /**
  42.      * This method is called from within the constructor to initialize the form.
  43.      * WARNING: Do NOT modify this code. The content of this method is always
  44.      * regenerated by the Form Editor.
  45.      */
  46.     @SuppressWarnings("unchecked")
  47.     // <editor-fold defaultstate="collapsed" desc="Generated Code">
  48.     private void initComponents() {
  49.  
  50.         jTabbedPane1 = new javax.swing.JTabbedPane();
  51.         jPanel1 = new javax.swing.JPanel();
  52.         jLabel7 = new javax.swing.JLabel();
  53.         jLayeredPane1 = new javax.swing.JLayeredPane();
  54.         jLayeredPane2 = new javax.swing.JLayeredPane();
  55.         jLabel10 = new javax.swing.JLabel();
  56.         jLabel9 = new javax.swing.JLabel();
  57.         jPanel2 = new javax.swing.JPanel();
  58.         jCheckBox1 = new javax.swing.JCheckBox();
  59.         jCheckBox2 = new javax.swing.JCheckBox();
  60.         jCheckBox3 = new javax.swing.JCheckBox();
  61.         jCheckBox4 = new javax.swing.JCheckBox();
  62.         jCheckBox5 = new javax.swing.JCheckBox();
  63.         jComboBox1 = new javax.swing.JComboBox();
  64.         jComboBox2 = new javax.swing.JComboBox();
  65.         jTextField1 = new javax.swing.JTextField();
  66.         jComboBox3 = new javax.swing.JComboBox();
  67.         jComboBox4 = new javax.swing.JComboBox();
  68.         jTextField2 = new javax.swing.JTextField();
  69.         jComboBox5 = new javax.swing.JComboBox();
  70.         jComboBox6 = new javax.swing.JComboBox();
  71.         jTextField3 = new javax.swing.JTextField();
  72.         jComboBox7 = new javax.swing.JComboBox();
  73.         jComboBox8 = new javax.swing.JComboBox();
  74.         jTextField4 = new javax.swing.JTextField();
  75.         jComboBox9 = new javax.swing.JComboBox();
  76.         jComboBox10 = new javax.swing.JComboBox();
  77.         jTextField5 = new javax.swing.JTextField();
  78.         jPanel3 = new javax.swing.JPanel();
  79.         jLabel1 = new javax.swing.JLabel();
  80.         jTextField6 = new javax.swing.JTextField();
  81.         jLabel2 = new javax.swing.JLabel();
  82.         jTextField7 = new javax.swing.JTextField();
  83.         jLabel3 = new javax.swing.JLabel();
  84.         jCheckBox6 = new javax.swing.JCheckBox();
  85.         jCheckBox7 = new javax.swing.JCheckBox();
  86.         jLabel4 = new javax.swing.JLabel();
  87.         jTextField8 = new javax.swing.JTextField();
  88.         jLabel5 = new javax.swing.JLabel();
  89.         jTextField9 = new javax.swing.JTextField();
  90.         jLabel6 = new javax.swing.JLabel();
  91.         jCheckBox8 = new javax.swing.JCheckBox();
  92.         jCheckBox9 = new javax.swing.JCheckBox();
  93.         jButton1 = new javax.swing.JButton();
  94.         jButton2 = new javax.swing.JButton();
  95.         jButton3 = new javax.swing.JButton();
  96.         jButton4 = new javax.swing.JButton();
  97.  
  98.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  99.         setTitle("Nissan Nut's Auto Talker");
  100.         setBounds(new java.awt.Rectangle(0, 0, 700, 25));
  101.  
  102.         jTabbedPane1.setToolTipText("Hello");
  103.         jTabbedPane1.setPreferredSize(new java.awt.Dimension(586, 200));
  104.  
  105.         jPanel1.setPreferredSize(new java.awt.Dimension(581, 200));
  106.  
  107.         jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon.png"))); // NOI18N
  108.  
  109.         jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon.png"))); // NOI18N
  110.         jLabel10.setBounds(60, 10, 320, 100);
  111.         jLayeredPane2.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);
  112.  
  113.         jLayeredPane2.setBounds(0, 0, 430, 220);
  114.         jLayeredPane1.add(jLayeredPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);
  115.  
  116.         jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Pay_to_PK_riot.gif"))); // NOI18N
  117.         jLabel9.setBounds(0, 0, 430, 220);
  118.         jLayeredPane1.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);
  119.  
  120.         javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  121.         jPanel1.setLayout(jPanel1Layout);
  122.         jPanel1Layout.setHorizontalGroup(
  123.             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  124.             .addGroup(jPanel1Layout.createSequentialGroup()
  125.                 .addContainerGap()
  126.                 .addComponent(jLabel7)
  127.                 .addContainerGap(110, Short.MAX_VALUE))
  128.             .addComponent(jLayeredPane1)
  129.         );
  130.         jPanel1Layout.setVerticalGroup(
  131.             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  132.             .addGroup(jPanel1Layout.createSequentialGroup()
  133.                 .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)
  134.                 .addGap(122, 122, 122)
  135.                 .addComponent(jLabel7)
  136.                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  137.         );
  138.  
  139.         jTabbedPane1.addTab("AutoTalker", jPanel1);
  140.  
  141.         jCheckBox1.setSelected(true);
  142.         jCheckBox1.setText("1");
  143.  
  144.         jCheckBox2.setText("2");
  145.  
  146.         jCheckBox3.setText("3");
  147.         jCheckBox3.setToolTipText("");
  148.  
  149.         jCheckBox4.setText("4");
  150.  
  151.         jCheckBox5.setText("5");
  152.  
  153.         jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "red:", "purple:", "green:", "cyan:", "yellow:", "white:", "flash1:", "flash2:", "flash3:", "glow1:", "glow2:", "glow3:" }));
  154.         jComboBox1.setSelectedIndex(-1);
  155.         jComboBox1.addActionListener(new java.awt.event.ActionListener() {
  156.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  157.                 jComboBox1ActionPerformed(evt);
  158.             }
  159.         });
  160.  
  161.         jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "wave:", "wave2:", "scroll:", "slide:", "shake:" }));
  162.         jComboBox2.setSelectedIndex(-1);
  163.  
  164.         jTextField1.setText("Message");
  165.         jTextField1.setToolTipText("");
  166.         jTextField1.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  167.  
  168.         jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "red:", "purple:", "green:", "cyan:", "yellow:", "white:", "flash1:", "flash2:", "flash3:", "glow1:", "glow2:", "glow3:" }));
  169.         jComboBox3.setSelectedIndex(-1);
  170.         jComboBox3.addActionListener(new java.awt.event.ActionListener() {
  171.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  172.                 jComboBox3ActionPerformed(evt);
  173.             }
  174.         });
  175.  
  176.         jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "wave:", "wave2:", "scroll:", "slide:", "shake:" }));
  177.         jComboBox4.setSelectedIndex(-1);
  178.  
  179.         jTextField2.setToolTipText("");
  180.         jTextField2.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  181.  
  182.         jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "red:", "purple:", "green:", "cyan:", "yellow:", "white:", "flash1:", "flash2:", "flash3:", "glow1:", "glow2:", "glow3:" }));
  183.         jComboBox5.setSelectedIndex(-1);
  184.         jComboBox5.addActionListener(new java.awt.event.ActionListener() {
  185.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  186.                 jComboBox5ActionPerformed(evt);
  187.             }
  188.         });
  189.  
  190.         jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "wave:", "wave2:", "scroll:", "slide:", "shake:" }));
  191.         jComboBox6.setSelectedIndex(-1);
  192.  
  193.         jTextField3.setToolTipText("");
  194.         jTextField3.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  195.  
  196.         jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "red:", "purple:", "green:", "cyan:", "yellow:", "white:", "flash1:", "flash2:", "flash3:", "glow1:", "glow2:", "glow3:" }));
  197.         jComboBox7.setSelectedIndex(-1);
  198.         jComboBox7.addActionListener(new java.awt.event.ActionListener() {
  199.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  200.                 jComboBox7ActionPerformed(evt);
  201.             }
  202.         });
  203.  
  204.         jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "wave:", "wave2:", "scroll:", "slide:", "shake:" }));
  205.         jComboBox8.setSelectedIndex(-1);
  206.  
  207.         jTextField4.setToolTipText("");
  208.         jTextField4.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  209.  
  210.         jComboBox9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "red:", "purple:", "green:", "cyan:", "yellow:", "white:", "flash1:", "flash2:", "flash3:", "glow1:", "glow2:", "glow3:" }));
  211.         jComboBox9.setSelectedIndex(-1);
  212.         jComboBox9.addActionListener(new java.awt.event.ActionListener() {
  213.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  214.                 jComboBox9ActionPerformed(evt);
  215.             }
  216.         });
  217.  
  218.         jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "wave:", "wave2:", "scroll:", "slide:", "shake:" }));
  219.         jComboBox10.setSelectedIndex(-1);
  220.  
  221.         jTextField5.setToolTipText("");
  222.         jTextField5.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  223.  
  224.         javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
  225.         jPanel2.setLayout(jPanel2Layout);
  226.         jPanel2Layout.setHorizontalGroup(
  227.             jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  228.             .addGroup(jPanel2Layout.createSequentialGroup()
  229.                 .addContainerGap()
  230.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  231.                     .addGroup(jPanel2Layout.createSequentialGroup()
  232.                         .addComponent(jCheckBox5)
  233.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  234.                         .addComponent(jComboBox9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  235.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  236.                         .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  237.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  238.                         .addComponent(jTextField5))
  239.                     .addGroup(jPanel2Layout.createSequentialGroup()
  240.                         .addComponent(jCheckBox1)
  241.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  242.                         .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  243.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  244.                         .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  245.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  246.                         .addComponent(jTextField1))
  247.                     .addGroup(jPanel2Layout.createSequentialGroup()
  248.                         .addComponent(jCheckBox2)
  249.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  250.                         .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  251.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  252.                         .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  253.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  254.                         .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
  255.                     .addGroup(jPanel2Layout.createSequentialGroup()
  256.                         .addComponent(jCheckBox3)
  257.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  258.                         .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  259.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  260.                         .addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  261.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  262.                         .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
  263.                     .addGroup(jPanel2Layout.createSequentialGroup()
  264.                         .addComponent(jCheckBox4)
  265.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  266.                         .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  267.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  268.                         .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  269.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  270.                         .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)))
  271.                 .addContainerGap())
  272.         );
  273.         jPanel2Layout.setVerticalGroup(
  274.             jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  275.             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
  276.                 .addContainerGap()
  277.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  278.                     .addComponent(jCheckBox1)
  279.                     .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  280.                     .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  281.                     .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  282.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  283.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  284.                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  285.                         .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  286.                         .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  287.                         .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  288.                     .addComponent(jCheckBox2))
  289.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  290.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  291.                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  292.                         .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  293.                         .addComponent(jComboBox6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  294.                         .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  295.                     .addComponent(jCheckBox3))
  296.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  297.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  298.                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  299.                         .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  300.                         .addComponent(jComboBox8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  301.                         .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  302.                     .addComponent(jCheckBox4))
  303.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  304.                 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  305.                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  306.                         .addComponent(jComboBox9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  307.                         .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  308.                         .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  309.                     .addComponent(jCheckBox5))
  310.                 .addContainerGap(57, Short.MAX_VALUE))
  311.         );
  312.  
  313.         jTabbedPane1.addTab("Messages", jPanel2);
  314.  
  315.         jLabel1.setText("Intervals");
  316.  
  317.         jTextField6.setText("1");
  318.         jTextField6.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  319.         jTextField6.addActionListener(new java.awt.event.ActionListener() {
  320.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  321.                 jTextField6ActionPerformed(evt);
  322.             }
  323.         });
  324.  
  325.         jLabel2.setText("seconds ");
  326.  
  327.         jTextField7.setText("500");
  328.         jTextField7.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  329.         jTextField7.addActionListener(new java.awt.event.ActionListener() {
  330.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  331.                 jTextField7ActionPerformed(evt);
  332.             }
  333.         });
  334.  
  335.         jLabel3.setText("milliseconds");
  336.  
  337.         jCheckBox6.setSelected(true);
  338.         jCheckBox6.setText("Randomize Intervals (0-250ms)");
  339.  
  340.         jCheckBox7.setSelected(true);
  341.         jCheckBox7.setText("Human-like typing");
  342.  
  343.         jLabel4.setText("milliseconds");
  344.  
  345.         jTextField8.setText("40");
  346.         jTextField8.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  347.         jTextField8.addActionListener(new java.awt.event.ActionListener() {
  348.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  349.                 jTextField8ActionPerformed(evt);
  350.             }
  351.         });
  352.  
  353.         jLabel5.setText("to");
  354.  
  355.         jTextField9.setText("10");
  356.         jTextField9.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  357.         jTextField9.addActionListener(new java.awt.event.ActionListener() {
  358.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  359.                 jTextField9ActionPerformed(evt);
  360.             }
  361.         });
  362.  
  363.         jLabel6.setText("Keystroke Delay");
  364.  
  365.         jCheckBox8.setText("Camera Rotation");
  366.  
  367.         jCheckBox9.setText("Random order");
  368.  
  369.         javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
  370.         jPanel3.setLayout(jPanel3Layout);
  371.         jPanel3Layout.setHorizontalGroup(
  372.             jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  373.             .addGroup(jPanel3Layout.createSequentialGroup()
  374.                 .addContainerGap()
  375.                 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  376.                     .addComponent(jCheckBox9)
  377.                     .addComponent(jCheckBox6)
  378.                     .addComponent(jCheckBox8)
  379.                     .addComponent(jCheckBox7)
  380.                     .addGroup(jPanel3Layout.createSequentialGroup()
  381.                         .addComponent(jLabel1)
  382.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  383.                         .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
  384.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  385.                         .addComponent(jLabel2)
  386.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  387.                         .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  388.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  389.                         .addComponent(jLabel3))
  390.                     .addGroup(jPanel3Layout.createSequentialGroup()
  391.                         .addComponent(jLabel6)
  392.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  393.                         .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  394.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  395.                         .addComponent(jLabel5)
  396.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  397.                         .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  398.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  399.                         .addComponent(jLabel4)))
  400.                 .addContainerGap(210, Short.MAX_VALUE))
  401.         );
  402.         jPanel3Layout.setVerticalGroup(
  403.             jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  404.             .addGroup(jPanel3Layout.createSequentialGroup()
  405.                 .addContainerGap()
  406.                 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  407.                     .addComponent(jLabel1)
  408.                     .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  409.                     .addComponent(jLabel2)
  410.                     .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  411.                     .addComponent(jLabel3))
  412.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  413.                 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  414.                     .addComponent(jLabel6)
  415.                     .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  416.                     .addComponent(jLabel5)
  417.                     .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  418.                     .addComponent(jLabel4))
  419.                 .addGap(7, 7, 7)
  420.                 .addComponent(jCheckBox6)
  421.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  422.                 .addComponent(jCheckBox7)
  423.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  424.                 .addComponent(jCheckBox8)
  425.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  426.                 .addComponent(jCheckBox9)
  427.                 .addContainerGap(50, Short.MAX_VALUE))
  428.         );
  429.  
  430.         jTabbedPane1.addTab("Settings", jPanel3);
  431.  
  432.         jButton1.setLabel("Update");
  433.         jButton1.addActionListener(new java.awt.event.ActionListener() {
  434.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  435.                 jButton1ActionPerformed(evt);
  436.             }
  437.         });
  438.  
  439.         jButton2.setLabel("Start");
  440.         jButton2.addActionListener(new java.awt.event.ActionListener() {
  441.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  442.                 jButton2ActionPerformed(evt);
  443.             }
  444.         });
  445.  
  446.         jButton3.setText("Pause");
  447.         jButton3.addActionListener(new java.awt.event.ActionListener() {
  448.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  449.                 jButton3ActionPerformed(evt);
  450.             }
  451.         });
  452.  
  453.         jButton4.setText("Stop");
  454.         jButton4.addActionListener(new java.awt.event.ActionListener() {
  455.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  456.                 jButton4ActionPerformed(evt);
  457.             }
  458.         });
  459.  
  460.         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  461.         getContentPane().setLayout(layout);
  462.         layout.setHorizontalGroup(
  463.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  464.             .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
  465.             .addGroup(layout.createSequentialGroup()
  466.                 .addContainerGap()
  467.                 .addComponent(jButton1)
  468.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 152, Short.MAX_VALUE)
  469.                 .addComponent(jButton2)
  470.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  471.                 .addComponent(jButton3)
  472.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  473.                 .addComponent(jButton4)
  474.                 .addContainerGap())
  475.         );
  476.         layout.setVerticalGroup(
  477.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  478.             .addGroup(layout.createSequentialGroup()
  479.                 .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 243, javax.swing.GroupLayout.PREFERRED_SIZE)
  480.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  481.                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  482.                     .addComponent(jButton1)
  483.                     .addComponent(jButton2)
  484.                     .addComponent(jButton3)
  485.                     .addComponent(jButton4))
  486.                 .addContainerGap())
  487.         );
  488.  
  489.         pack();
  490.     }// </editor-fold>
  491.  
  492.     private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  493.         // TODO add your handling code here:
  494.     }                                          
  495.  
  496.     private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  497.         // TODO add your handling code here:
  498.     }                                          
  499.  
  500.     private void jComboBox5ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  501.         // TODO add your handling code here:
  502.     }                                          
  503.  
  504.     private void jComboBox7ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  505.         // TODO add your handling code here:
  506.     }                                          
  507.  
  508.     private void jComboBox9ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  509.         // TODO add your handling code here:
  510.     }                                          
  511.  
  512.     private void jTextField6ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  513.         // TODO add your handling code here:
  514.     }                                          
  515.  
  516.     private void jTextField7ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  517.         // TODO add your handling code here:
  518.     }                                          
  519.  
  520.     private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  521.         // TODO add your handling code here:
  522.     }                                          
  523.  
  524.     private void jTextField9ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  525.         // TODO add your handling code here:
  526.     }                                          
  527.  
  528.     private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
  529.         start = false;
  530.         dispose();
  531.         Script.stop();
  532.     }
  533.  
  534.     private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
  535.         start = false;
  536.     }
  537.  
  538.     private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
  539.         start = true;
  540.     }
  541.  
  542.     private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
  543.         msg1 = jCheckBox1.isSelected();
  544.         msg2 = jCheckBox2.isSelected();
  545.         msg3 = jCheckBox3.isSelected();
  546.         msg4 = jCheckBox4.isSelected();
  547.         msg5 = jCheckBox5.isSelected();
  548.         randomize = jCheckBox6.isSelected();
  549.         humanlike = jCheckBox7.isSelected();
  550.         rotation = jCheckBox8.isSelected();
  551.         randomorder = jCheckBox9.isSelected();
  552.        
  553.         msg_1 = jComboBox1.getSelectedItem() + jComboBox2.getSelectedItem().toString() + jTextField1.getText();
  554.         msg_2 = jComboBox3.getName() + jComboBox4.getName() + jTextField2.getText();
  555.         msg_3 = jComboBox5.getName() + jComboBox6.getName() + jTextField3.getText();
  556.         msg_4 = jComboBox7.getName() + jComboBox8.getName() + jTextField4.getText();
  557.         msg_5 = jComboBox9.getName() + jComboBox10.getName() + jTextField5.getText();
  558.        
  559.         intervalS = Integer.parseInt(jTextField6.getText());
  560.         intervalMs = Integer.parseInt(jTextField7.getText());
  561.         keystrokeMin = Integer.parseInt(jTextField9.getText());
  562.         keystrokeMax = Integer.parseInt(jTextField8.getText());
  563.     }
  564.  
  565.     /**
  566.      * @param args the command line arguments
  567.      */
  568.     public static void main(String args[]) {
  569.         /*
  570.          * Set the Nimbus look and feel
  571.          */
  572.         //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  573.         /*
  574.          * If Nimbus (introduced in Java SE 6) is not available, stay with the
  575.          * default look and feel. For details see
  576.          * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  577.          */
  578.         try {
  579.             for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  580.                 if ("Nimbus".equals(info.getName())) {
  581.                     javax.swing.UIManager.setLookAndFeel(info.getClassName());
  582.                     break;
  583.                 }
  584.             }
  585.         } catch (ClassNotFoundException ex) {
  586.             java.util.logging.Logger.getLogger(AutoTalkerUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  587.         } catch (InstantiationException ex) {
  588.             java.util.logging.Logger.getLogger(AutoTalkerUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  589.         } catch (IllegalAccessException ex) {
  590.             java.util.logging.Logger.getLogger(AutoTalkerUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  591.         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  592.             java.util.logging.Logger.getLogger(AutoTalkerUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  593.         }
  594.         //</editor-fold>
  595.  
  596.         /*
  597.          * Create and display the form
  598.          */
  599.         java.awt.EventQueue.invokeLater(new Runnable() {
  600.  
  601.             public void run() {
  602.                 new AutoTalkerUI().setVisible(true);
  603.             }
  604.         });
  605.     }
  606.     // Variables declaration - do not modify
  607.     private javax.swing.JButton jButton1;
  608.     private javax.swing.JButton jButton2;
  609.     private javax.swing.JButton jButton3;
  610.     private javax.swing.JButton jButton4;
  611.     private javax.swing.JCheckBox jCheckBox1;
  612.     private javax.swing.JCheckBox jCheckBox2;
  613.     private javax.swing.JCheckBox jCheckBox3;
  614.     private javax.swing.JCheckBox jCheckBox4;
  615.     private javax.swing.JCheckBox jCheckBox5;
  616.     private javax.swing.JCheckBox jCheckBox6;
  617.     private javax.swing.JCheckBox jCheckBox7;
  618.     private javax.swing.JCheckBox jCheckBox8;
  619.     private javax.swing.JCheckBox jCheckBox9;
  620.     private javax.swing.JComboBox jComboBox1;
  621.     private javax.swing.JComboBox jComboBox10;
  622.     private javax.swing.JComboBox jComboBox2;
  623.     private javax.swing.JComboBox jComboBox3;
  624.     private javax.swing.JComboBox jComboBox4;
  625.     private javax.swing.JComboBox jComboBox5;
  626.     private javax.swing.JComboBox jComboBox6;
  627.     private javax.swing.JComboBox jComboBox7;
  628.     private javax.swing.JComboBox jComboBox8;
  629.     private javax.swing.JComboBox jComboBox9;
  630.     private javax.swing.JLabel jLabel1;
  631.     private javax.swing.JLabel jLabel10;
  632.     private javax.swing.JLabel jLabel2;
  633.     private javax.swing.JLabel jLabel3;
  634.     private javax.swing.JLabel jLabel4;
  635.     private javax.swing.JLabel jLabel5;
  636.     private javax.swing.JLabel jLabel6;
  637.     private javax.swing.JLabel jLabel7;
  638.     private javax.swing.JLabel jLabel9;
  639.     private javax.swing.JLayeredPane jLayeredPane1;
  640.     private javax.swing.JLayeredPane jLayeredPane2;
  641.     private javax.swing.JPanel jPanel1;
  642.     private javax.swing.JPanel jPanel2;
  643.     private javax.swing.JPanel jPanel3;
  644.     private javax.swing.JTabbedPane jTabbedPane1;
  645.     private javax.swing.JTextField jTextField1;
  646.     private javax.swing.JTextField jTextField2;
  647.     private javax.swing.JTextField jTextField3;
  648.     private javax.swing.JTextField jTextField4;
  649.     private javax.swing.JTextField jTextField5;
  650.     private javax.swing.JTextField jTextField6;
  651.     private javax.swing.JTextField jTextField7;
  652.     private javax.swing.JTextField jTextField8;
  653.     private javax.swing.JTextField jTextField9;
  654.     // End of variables declaration
  655. }
Advertisement
Add Comment
Please, Sign In to add comment