Jump to content

Two questions


Recommended Posts

Posted (edited)

Don't think it's in Osbot API..

 

Why do you need a clients API for that?

it's basic Java, you can make it yourself in 5 minutes..

 

Khaleesi

 

Oh with the other bot I use you have to use Util.getWorkingDirectory().toString() to get the directory to write to. Is that not needed for OSBot?

 

Also anyone know how to make the keyboard write faster :3

Also how can I change the account on a bot without having to add a new one.

Edited by jacksonadams861
Posted

Oh with the other bot I use you have to use Util.getWorkingDirectory().toString() to get the directory to write to. Is that not needed for OSBot?

 

Also anyone know how to make the keyboard write faster :3

Also how can I change the account on a bot without having to add a new one.

 

I'm confused, are you trying to get the working directory or trying to write a file in the working directory? If you're coming for a bot that has API to create files, you might want to unlearn everything you gained while you were there. 

 

https://docs.oracle.com/javase/7/docs/api/java/io/File.html

  • Like 1
Posted

I'm confused, are you trying to get the working directory or trying to write a file in the working directory? If you're coming for a bot that has API to create files, you might want to unlearn everything you gained while you were there. 

 

https://docs.oracle.com/javase/7/docs/api/java/io/File.html

 

I know how to write files with java... I just wanted to know if you had to write files to a certain working directory. Or if we can write files to anywhere.

Posted (edited)

Okay thank you, and how about making the keyboard type faster. Any ideas?

 

So far I have seen there is no method to change the rate of chars written. Only mouse speed can be adjusted.

Write a file containing my GUI variables and read that file again.

 

You could use http://ini4j.sourceforge.net/ too. Pretty simple. Works like a charm. 

 

 

 public static void setIni() throws IOException
         {
                 Wini ini = new Wini(new File(Data.ini.getAbsolutePath()));
                 ini.put("Settings", "Version", Data.MAJOR_VERSION + "." + Data.MINOR_VERSION);
                 ini.put("Settings", "Theme", "org.pushingpixels.substance.api.skin.SubstanceGraphiteGlassLookAndFeel");
                 ini.put("Settings", "Download", Data.DOWNLOAD_FILES);
                 ini.put("Account", "Username", "");
                 ini.put("Account", "Password", "");
                 ini.store();
                 
         }
Something I made a while back. Perhaps you could use something of it and have a example. Edited by Psvxe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...