Jump to content

Recommended Posts

Posted

Hi,

Please help in solving this problem.

I have a script which sends a string(characters) to a Textbox control.

Example Script:

;start of scritp

#include "IE.au3"

#include "File.au3"

#include <GUIConstants.au3>

#AutoIt3Wrapper_useansi=y

ControlClick("Test Window Name","",1001)

Send("test_name_test")

Sleep(1000)

ControlClick("Test Window Name","",1002)

Send("test_password_test)

sleep(1000)

;end of script

This script when run on Win XP is giving desired results. However when I run the script on Win98SE, on control Id 1001, I found that actual string that is entered is " test-name-test " and in control ID 1002 , as " test-password-test ". (All underscores are converted to hyphen)

Am I doing something wrong?

AutoIt Version - 3.2.4.9

Thank you,

Bhima

Posted

Hi,

Please help in solving this problem.

I have a script which sends a string(characters) to a Textbox control.

Example Script:

;start of scritp

#include "IE.au3"

#include "File.au3"

#include <GUIConstants.au3>

#AutoIt3Wrapper_useansi=y

ControlClick("Test Window Name","",1001)

Send("test_name_test")

Sleep(1000)

ControlClick("Test Window Name","",1002)

Send("test_password_test)

sleep(1000)

;end of script

This script when run on Win XP is giving desired results. However when I run the script on Win98SE, on control Id 1001, I found that actual string that is entered is " test-name-test " and in control ID 1002 , as " test-password-test ". (All underscores are converted to hyphen)

Am I doing something wrong?

AutoIt Version - 3.2.4.9

Thank you,

Bhima

I wouldn't know what you are doing wrong since it doesn't seem like you are... But try this as a workaround:

Send("test"&chr(95)&"password"&chr(95)&"test)

Roses are FF0000, violets are 0000FF... All my base are belong to you.

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