jacksonadams861 Posted May 5, 2015 Share Posted May 5, 2015 1. What is the fastest way to make the client type a string? I've read all the previous topics but it looks like the API's changed. 2. How do I write a text file and read it? I'm used to another clients API. Quote Link to comment Share on other sites More sharing options...
Psvxe Posted May 5, 2015 Share Posted May 5, 2015 You want to write a text file and read from that file within the script or just read it manual? Quote Link to comment Share on other sites More sharing options...
jacksonadams861 Posted May 5, 2015 Author Share Posted May 5, 2015 You want to write a text file and read from that file within the script or just read it manual? Write a file containing my GUI variables and read that file again. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 5, 2015 Share Posted May 5, 2015 (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 Edited May 5, 2015 by Khaleesi Quote Link to comment Share on other sites More sharing options...
jacksonadams861 Posted May 5, 2015 Author Share Posted May 5, 2015 (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 May 5, 2015 by jacksonadams861 Quote Link to comment Share on other sites More sharing options...
Alek Posted May 5, 2015 Share Posted May 5, 2015 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 1 Quote Link to comment Share on other sites More sharing options...
jacksonadams861 Posted May 5, 2015 Author Share Posted May 5, 2015 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. Quote Link to comment Share on other sites More sharing options...
Psvxe Posted May 5, 2015 Share Posted May 5, 2015 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. Anywhere. I'd store data in the osbot data dir. Quote Link to comment Share on other sites More sharing options...
jacksonadams861 Posted May 5, 2015 Author Share Posted May 5, 2015 Anywhere. I'd store data in the osbot data dir. Okay thank you, and how about making the keyboard type faster. Any ideas? Quote Link to comment Share on other sites More sharing options...
Psvxe Posted May 5, 2015 Share Posted May 5, 2015 (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 May 5, 2015 by Psvxe Quote Link to comment Share on other sites More sharing options...