我使用jna来调用系统的api,但是好像jna钟没有setWindowText这个方法,请问如何在java中调用setwindowtext
char[] windowText = new char[512];
User32.INSTANCE.GetWindowText(hwnd, windowText, 512);
StringBuffer stringBuffer=new StringBuffer();
for(int i=0;i<windowText.length;i++){
if(windowText[i]=='\u0000'){
continue;
}
stringBuffer.append(windowText[i]);
}
String temp="231444444444";
char[] a=temp.toCharArray();
User32.INSTANCE.SetWindowText(hwnd,a);