dar100111 Posted June 10, 2013 Share Posted June 10, 2013 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! Link to comment Share on other sites More sharing options...
water Posted June 10, 2013 Share Posted June 10, 2013 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted June 10, 2013 Share Posted June 10, 2013 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dar100111 Posted June 10, 2013 Author Share Posted June 10, 2013 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! Link to comment Share on other sites More sharing options...
water Posted June 10, 2013 Share Posted June 10, 2013 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
dar100111 Posted June 10, 2013 Author Share Posted June 10, 2013 Ah ok. Looks like I tried Controlsettext and the result was instant and seemed to have solved my problem. Thanks for the help Water! Link to comment Share on other sites More sharing options...
water Posted June 10, 2013 Share Posted June 10, 2013 My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now