Sign in to follow this  
Followers 0
kania

problem when using ControlSend($handle,"","","A{ASC 2709}B")

5 posts in this topic

#1 ·  Posted (edited)

here is the code

HotKeySet("{PAUSE}", "EndScript")
while 1
    sleep(1000)
;{ASC 2709} is code piece come from the autoit3 help document,its a chinese char.
    ControlSend("cmd.exe","","","A{ASC 2709}B")
wend
Func EndScript() 
    Exit 
EndFunc

when the cmd.exe window is active,the code runs well,but when the cmd.exe window is on background,it only recieve String [AB],it just lose the unicode. ControlSendPlus act in the same way too.

any further info is welcome.

thx

Edited by kania

Share this post


Link to post
Share on other sites



ControlSendPlus ???? whats that? I looked in the beta, and didn't see it.

he means _ControlSendPlus just search.

In fact back to the subject _ControlSendPlus will not take care of UNICODE char. At least it is my guess

Share this post


Link to post
Share on other sites

yeah,i mean [the user define function ControlSendPlus].

i really wonder why the cmd.exe window need to be active to recieve a unicode char send by ControlSend though...

Share this post


Link to post
Share on other sites

yeah,i mean [the user define function ControlSendPlus].

i really wonder why the cmd.exe window need to be active to recieve a unicode char send by ControlSend though...

I really don't know even I see the internal code (I am in the DevTeam) but Windows coding is not so easy to override what it is done by Windows itself. Perhaps other Dev can comment :whistle:

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0