May 5, 201510 yr 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.
May 5, 201510 yr You want to write a text file and read from that file within the script or just read it manual?
May 5, 201510 yr Author 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.
May 5, 201510 yr Developer 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, 201510 yr by Khaleesi
May 5, 201510 yr Author 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, 201510 yr by jacksonadams861
May 5, 201510 yr 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
May 5, 201510 yr Author 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.
May 5, 201510 yr 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.
May 5, 201510 yr Author Anywhere. I'd store data in the osbot data dir. Okay thank you, and how about making the keyboard type faster. Any ideas?
May 5, 201510 yr 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, 201510 yr by Psvxe
Create an account or sign in to comment