Sreeja Posted May 30, 2014 Posted May 30, 2014 (edited) Au3_controlgettext function using Autoitx.dll in java is returning values like : [b@1b0590b [b@a60905 [b@183eae7 [b@1b2f0c7 [b@ddab20 [b@10ddf0a [b@1ae3b4d @Override public String getText(String TestObjectKey) { // TODO Auto-generated method stub byte[] getText=new byte[10]; String myString=""; AutoITConfig.INSTANCE.AU3_ControlGetText("Windowname","Text",Controlid,getText,10); byte[] bytesData = new String(getText).getBytes(); myString=bytesData.toString(); System.out.println(myString); return (myString); } Can someone help on how to retreive the String directly using Au3_controlgettext function. Edited May 30, 2014 by Sreeja
Solution wangzhengbo Posted May 31, 2014 Solution Posted May 31, 2014 Au3_controlgettext function using Autoitx.dll in java is returning values like : [b@1b0590b [b@a60905 [b@183eae7 [b@1b2f0c7 [b@ddab20 [b@10ddf0a [b@1ae3b4d @Override public String getText(String TestObjectKey) { // TODO Auto-generated method stub byte[] getText=new byte[10]; String myString=""; AutoITConfig.INSTANCE.AU3_ControlGetText("Windowname","Text",Controlid,getText,10); byte[] bytesData = new String(getText).getBytes(); myString=bytesData.toString(); System.out.println(myString); return (myString); } Can someone help on how to retreive the String directly using Au3_controlgettext function. You can use jautoitx. Download it from http://code.google.com/p/jautoitx/downloads/list With jautoitx, you can get control text by call Control.getText(final String title, final String text, final String controlId) static method.
Sreeja Posted June 9, 2014 Author Posted June 9, 2014 You can use jautoitx. Download it from http://code.google.com/p/jautoitx/downloads/list With jautoitx, you can get control text by call Control.getText(final String title, final String text, final String controlId) static method. Is Jacod.dll registration neccessary for Jautoitx?
wangzhengbo Posted June 10, 2014 Posted June 10, 2014 Is Jacod.dll registration neccessary for Jautoitx? No neccessary. Just add the downloaded jar to your classpath.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now