Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: SendKey SendKeysTo ClipPut ClipBoard Unicode ANSI Extended ASCII Keyboard Foreign Chinese German Double Byte Characters Question Marks Umlaut
Using the system clipboard to copy and paste the values is the best approach.
Run( "notepad.exe", "" ) WinWaitExist( "~Notepad", 5) UmlautChar = ChrHexToUnicode("DF00") ; ß UmlautChar = ChrHexToUnicode("E400") ; ä UmlautChar = ChrHexToUnicode("F600") ; ö UmlautChar = ChrHexToUnicode("FC00") ; ü UmlautChar = ChrHexToUnicode("C400") ; Ä UmlautChar = ChrHexToUnicode("D600") ; Ö UmlautChar = ChrHexToUnicode("DC00") ; Ü ;Handle Unicode Characters using SendKey ClipPut(UmlautChar) ; Place Unicode character in clipboard SendKey("^v") ; Clipboard paste ExitThere is really no way for the SendKey function to confirm the keystrokes were sent to their intended target. SendKey return value is meaningless hence the return value of zero.
Surname = {a Chinese character} First_name = {a Chinese character} ;Winactivate to open the screen WinActivate("GIOS") TimeDelay(0.5) ;Entering name and DOB data SendKey(Surname) SendKey("{ENTER}") TimeDelay(0.5) SendKey(First_name) SendKey("{ENTER}")
Without knowing more about your applications it is a little difficult to recommend a solution. One suggestion is using the system clipboard to copy and paste the Chinese users names into your app. That might be worth a try.
Surname = {a Chinese character} First_name = {a Chinese character} ;Winactivate to open the screen WinActivate("GIOS") TimeDelay(0.5) ;Entering name and DOB data ClipPut(Surname) SendKey("^v") ;Clip board paste SendKey("{ENTER}") TimeDelay(0.5) ClipPut(First_name) SendKey("^v") ;Clip board paste SendKey("{ENTER}")
Article ID: W18271
Filename: Sending Unicode Keystrokes.txt
File Created: 2014:06:27:08:30:44
Last Updated: 2014:06:27:08:30:44