Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: WinExist Double Byte Characters Set DBCS Foreign Chinese Japanese
There are two workarounds you might want to consider, if you system is not defaulted to a Chinese code page. You could try telling WinBatch to temporarily use a Chinese code page like 950 or 936 by using the ChrGetCodePage and ChrSetCodePage functions for your call to WinExist. These code pages would need to be available on your system for this approach to work.
The other approach would be to convert the window title to Unicode before passing it to WinExist. There are several ways to do the conversion with both the ChrHexToUnicode or BinaryConvert functions coming to mind as possible approaches but there are other techniques. ChrHexToUnicode is probably the easiest if you can assume your window name or names is or are not going to change frequently.
Article ID: W18423
Filename: WinExist and Double-byte Characters.txt
File Created: 2013:07:29:11:58:16
Last Updated: 2013:07:29:11:58:16