Jump to content

Recommended Posts

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
Posted

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

Posted

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...

Posted

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:

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
×
×
  • Create New...