Sign in to follow this  
Followers 0
dar100111

String value problem from Send function

7 posts in this topic

Hey All,

I keep having a weird lag issue with my send command. It's like it's processing the letters too fast and causing some anomolies.

I have a step where I'm saving something to an image program after it's created.  I'm saving by the reference by

ControlSend($edoc, "", "[CLASS:TScaleMemo; INSTANCE:2]", $edocnumber)

I have a value say "DFWT113001" that represents my $edocnumber in this case.

It appears like it's writing the letters slow and not correctly evertime it's done "DFWT1301", "DFWT11301", "DFWT13001".

It's not consistent writing it to the field.  Is there a function or a way I can make sure it takes enough time to write this properly?

Wondered if anyone experience anything like this.  Thanks for the help!

Share this post


Link to post
Share on other sites



You could check

ControlSend($edoc, "", "[CLASS:TScaleMemo; INSTANCE:2]", $edocnumber, 1)

to send the data as a raw string without AutoIt interpreting special characters.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

If this doesn't work play with

AutoItSetOption("SendKeyDelay", n)

to set the length of the brief pause in between sent keystrokes (default = 5 milliseconds).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks water.  What would be the correct syntax to apply autoitset option for my variable in the control send statement?  I tried the first and that didn't seem to work.  And thanks again for the help!

Share this post


Link to post
Share on other sites

AutoItSetOption is a global setting.

AutoItSetOption("SendKeyDelay", 500)

will wait half a second after each sent character.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Ah ok.  Looks like I tried Controlsettext and the result was instant and seemed to have solved my problem.  Thanks for the help Water!

Share this post


Link to post
Share on other sites

:D


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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