Jump to content

Au3_controlgettext returning memory address.


Sreeja
 Share

Go to solution Solved by wangzhengbo,

Recommended Posts

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
Link to comment
Share on other sites

  • Solution

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.

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

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