In that case, are you using the Unicode build or the ANSI build? If you're not sure, you may run this:
MsgBox % A_IsUnicode ? "Unicode" : "ANSI"
If you add
ListLines
Pause
to the end of your script, do you see those characters in the line listing?
If I copy and paste your code and run it with the Unicode build, I get the following output in both Notepad and SciTE:
hello你好
hello你好
hello你好{enter}hello你好
However, the script outputs the following for me with the ANSI build:
hello??
hello??
hello??{enter}hello??This is because my system default ANSI code page does not include those characters.
Firstly,Thank you all the same,but the Problems still occurred:
reply 1:
Yes,the msgbox come out "Unicode"
repy2:
my runing result as below>
--------------------------------------------
002: SendMode,Input
003: SetWorkingDir,%A_ScriptDir%
004: MsgBox,A_IsUnicode ? "Unicode" : "ANSI" (1.64)
005: WinActivate,seen.txt - 记事本 (0.13)
006: Send,hello你好{Enter} (0.08)
007: SendInput,hello你好{Enter} (0.03)
008: SendRaw,hello你好{enter} (0.03)
009: SendInput,hello你好{Enter} (0.03)
010: ListLines
and the output is:
hello
hello
hello{enter}hello
repy3:
Yes,when it is the old version of autohotkey(non_L) my running result is as same as yours above.
hello??
hello??
hello??{enter}hello??
---------------------------------------------
sigh,where is the true reason? Do you mind helping check it and solve it please? or may you share you ahk_L version copy which can work normally to me ,if so,Great thanks ,then I can run to test whether it is my System environment problem or not.
my GM:pesicolar@gmail.com