Jump to content
Sign in to follow this  
XLimas

Problem with Send function

Recommended Posts

XLimas

Hello,

I have small problem. Function Send() doesn't send numbers.

I have several languages in windows: English (EN) and Lithuanian (LT).

For example let's use simple program code:

;1
Send(123)

;2
Send('123')

;3
Send("123")

When my language is set to LT all 3 of Send function works, but if i set language to EN none of them give result.

I'm trying to make my job easier by filling some of the boxes automatically.

I noticed, that in some text boxes i can't write numbers while there is set EN language.

I dunno where is the problem, maybe it's in my settings. But does anyone have any idea how to fix it?

Thanks in advance,

Andrew

Share this post


Link to post
Share on other sites
rudi

Hi.

When my language is set to LT all 3 of Send function works, but if i set language to EN none of them give result.

Strange!

send() just "litterally types" the text you pass to this function. I never ever had such issues.

Did you verify, that this is fact on a different PC as well?

Did you try to send to a different application, e.g. Notepad?

I'm trying to make my job easier by filling some of the boxes automatically.

I noticed, that in some text boxes i can't write numbers while there is set EN language.

As a shot in the dark: Maybe the control names change, when you change the language?

Regards, Rudi

Edited by rudi

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
Andreik

You said have to fill some boxes automaticaly, did you tried also ControlSend(), same problem?


When the words fail... music speaks

Share this post


Link to post
Share on other sites
XLimas

Hi.

Strange!

send() just "litterally types" the text you pass to this function. I never ever had such issues.

Did you verify, that this is fact on a different PC as well?

I'm curently at work, i'm gonna test it at home.

Did you try to send to a different application, e.g. Notepad?

Yeah, i have tried that script just on autoit editor, it doesnt send any numbers while there is set EN language.

As a shot in the dark: Maybe the control names change, when you change the language?

I don't use any control names nor i really know how to do it. My script just moves through text boxes by pressing tab key.

I'm just a newbie :)

You said have to fill some boxes automaticaly, did you tried also ControlSend(), same problem?

I never used ControlSend() before, but i have just tested it now and i can't get ControlID on that aplication by Window info. :/

Btw, i kinda solved that problem in another way, but it's still strange to me :/

ClipPut("123")
Send("^v")

And it works :)

Edited by XLimas

Share this post


Link to post
Share on other sites
clips

I have the same problem - when I change my windows language, the function Send("123456", 1) doesn't do what it is expected to. I have several computers and the problem exists in all of them although default languages in computers differ.

Share this post


Link to post
Share on other sites
clips

ControlSend() doesn't work.

I tried inserting variables, like Send($var), or ControlSend("Untitled", "", "Edit1", $var), but still no use.

Working option:

Send("{NUMPAD1}")

Sleep(50)

Send("{NUMPAD2}")

Sleep(50)

Send("{NUMPAD3}")

Sleep(50)

Send("{NUMPAD4}")

Sleep(50)

Send("{NUMPAD5}")

Sleep(50)

Send("{NUMPAD6}")

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.