Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
auto typer
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-25-2010, 03:01 PM
Active Member
 
Join Date: Jul 2010
Posts: 109
Default auto typer

could anyone show me how to make an autotyper, i think it would go in this section
Reply With Quote
  #2  
Old 07-25-2010, 06:57 PM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: auto typer

In order to simulate key events you would call the keyPress() and keyRelease() methods of the java.awt.Robot class after obtaining an instance of the class. The int argument that you pass to the method is the VK key code of the key to press/release. The VK keycodes are kept as constants in the java.awt.event.KeyEvent class. An extremely example of this can be found here.
__________________
Reply With Quote
  #3  
Old 07-26-2010, 02:26 AM
itsboom's Avatar
Forum Addict
 
Join Date: May 2010
Posts: 290
Default Re: auto typer

Heres a basic autotyper, but I made it not allow any symbols due to them causing it errors
Code:

import java.awt.AWTException;
import java.awt.GridLayout;
import java.awt.Robot;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;

public class Main extends JFrame implements ActionListener,Runnable{
    JTextField one,two;
    char[] arr;
    public Main(){
        one = new JTextField(20);
        two = new JTextField(20);
        setSize(250,150);
        setLayout(new GridLayout(5,5));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("Autotyper");
       setResizable(false);
        add(one);
       two.setEditable(false);
        add(two);
        JButton b = new JButton("Go!");
        add(b);
        b.addActionListener(this);
    }
    public Main(char[] ar){
      //  this();
        arr = ar;
    }
    public static void main(String[] args){
        try{
            
            new Main().setVisible(true);
        }catch(Exception e){e.printStackTrace();}
    }
    private void copy(Robot robot, char[] charsToPrint){
        robot.setAutoDelay(100);
        for(char l : charsToPrint)
        {
            if(Character.isUpperCase(l)){
                robot.keyPress(16);
                pNr(robot,(int)l);
                robot.keyRelease(16);
            }
            else if (Character.isLetterOrDigit(l))pNr(robot, Character.toUpperCase(l));
            else if(Character.isWhitespace(l))pNr(robot,KeyEvent.VK_SPACE);
        }
       edit(true);
       one.requestFocus();
       one.setText(null);
    }
    private void pNr(Robot robot, int to)
    {

        robot.keyPress(to);
        robot.keyRelease(to);
    }
    public void run(){
        try{
            copy(new Robot(),arr);
        }catch(AWTException e){System.err.println(e);};
    }
    private void edit(boolean edit){
        one.setEditable(edit);
        two.setEditable(!edit);
    }
    public void actionPerformed(ActionEvent e){
        if(one.getText().length() < 1)
            return;
        edit(false);
        two.setText(null);     
        two.requestFocus();
        arr = one.getText().toCharArray();
        try{
            new Thread(this).start();
        }catch(Exception ae){ae.printStackTrace();}

    }
}

Last edited by itsboom : 07-26-2010 at 02:26 AM.
Reply With Quote
  #4  
Old 07-26-2010, 10:18 PM
Active Member
 
Join Date: Jul 2010
Posts: 109
Default Re: auto typer

ok, wow thanks, now i see it, i couldnt of done this

thanks alot though, and what do i put that in?
Reply With Quote
  #5  
Old 07-27-2010, 01:59 AM
itsboom's Avatar
Forum Addict
 
Join Date: May 2010
Posts: 290
Default Re: auto typer

put it in a document called Main.java, then compile and run it, this is only an example that will type in the jtextfield.
Reply With Quote
  #6  
Old 07-27-2010, 03:53 AM
Active Member
 
Join Date: Jul 2010
Posts: 109
Default Re: auto typer

hm...idk what u mean by that im extremely new to coding and havent ever tried java before
Reply With Quote
  #7  
Old 08-01-2010, 07:35 PM
db0winsanity's Avatar
Active Member
 
Join Date: Dec 2008
Location: Wisconsin
Posts: 109
Send a message via MSN to db0winsanity
Default Re: auto typer

your best bet is to use that one as a guide, and start from scratch, otherwise you'll never understand it.. check out Netbeans, the gui editor is nice for beginers
__________________
Good trades: 10
Bad trades: 1
Reply With Quote
  #8  
Old 08-31-2010, 06:48 PM
Newcomer
 
Join Date: Jul 2010
Posts: 3
Default Re: auto typer

Hey flick watch this guys videos.
http://www.youtube.com/watch?v=Hl-zzrqQoSE
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 01:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1