Sign in to follow this  
Followers 0
Didonet

Problem with Send()

4 posts in this topic

#1 ·  Posted (edited)

Hello <_<

I have to send some text to another application using autoIT, but i have a problem...

When I send for example the text Send("text") and run the program... it works. If I change my writing layout language when i Send("text") it sends the text but with the letters from the other language :)

Example for Bulgarian language:

EN: Send("text") ===> "text"

BG: Send("text") ===> "теьт"

:P

Can I do something to send only in english? Or to send the text which is not dependent from the keyboard layout...?

Edited by Didonet

Share this post


Link to post
Share on other sites



Mmm.. I'm not really sure.. but probably using ControlSetText()... Or, if it's not a long text, use Send("{ASC XXX}") for the characters that cause trouble.

I don't know if using Send("text",1) will work.. but try that too <_<

Share this post


Link to post
Share on other sites

Mmm.. I'm not really sure.. but probably using ControlSetText()... Or, if it's not a long text, use Send("{ASC XXX}") for the characters that cause trouble.

I don't know if using Send("text",1) will work.. but try that too <_<

It might be that you need to set the language to English before using send, then set it back to Bulgarian again afterwards. If so then have a look at this.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

I use that for send the text:

ControlSend("", "", "", "/me "& $chat, 1)

It's for sending info for the current song in winamp...

I can't find another way to do this...

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