Sign in to follow this  
Followers 0
Sreeja

Au3_controlgettext returning memory address.

4 posts in this topic

#1 ·  Posted (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 by Sreeja

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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? 

Share this post


Link to post
Share on other sites

Is Jacod.dll registration neccessary for Jautoitx? 

 

No neccessary. Just add the downloaded jar to your classpath.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0