rahuroy Posted April 28, 2011 Posted April 28, 2011 I am using controlsend command in scripts. Am sending values 1) C:\sudhi\temp but sometimes it types as C:\sudhi|temp 2)%temp% sometimes types as 5temp% 3)C:\sudhi sometimes types as C;\sudhi If i observe carefully typing | instead of / , 5 instead of % and ; instead of :...All these keys are on same key of keyboard. Please let me know how to solve issue?
JScript Posted April 28, 2011 Posted April 28, 2011 I use in loop through 100 times, did not fail!!! ControlSend("[CLASS:Notepad]", "", "Edit1", "C:\sudhi\temp" & @CR) ControlSend("[CLASS:Notepad]", "", "Edit1", "%temp%" & @CR) ControlSend("[CLASS:Notepad]", "", "Edit1", "C:\sudhi" & @CR) http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
rahuroy Posted April 28, 2011 Author Posted April 28, 2011 Global $emdir = IniRead($INI, "EMSettings", "IS_INSTALLDIR", "") ControlSend("InstallShield Wizard","Change Current Destination Folder","[CLASS:RichEdit20W; INSTANCE:1]",$emdir) I am using like above.If machine is too fast and quick will it type sometimes the other values? like | instead of \ (In my case C:\sudhi entering as C:|sudhi)
MrMitchell Posted April 28, 2011 Posted April 28, 2011 (edited) Maybe slow down the key send delay? Opt("SendKeyDelay", 5) ;5 milliseconds Or plug in a different keyboard? Edit: I guess that would be SPEED UP the send key delay, or slow down the rate at which keys are sent Edited April 28, 2011 by MrMitchell
rahuroy Posted April 28, 2011 Author Posted April 28, 2011 Hi Mitchell,Thanks for information and its really helpful .But can you please clarify one doubt ? I am reading the value of variable from ini file and entering install directory value in filed by using controlsend command. But how it ll solve the above problem by using sendkeydelay? Maybe slow down the key send delay?Opt("SendKeyDelay", 5) ;5 millisecondsOr plug in a different keyboard?Edit: I guess that would be SPEED UP the send key delay, or slow down the rate at which keys are sent
MrMitchell Posted April 28, 2011 Posted April 28, 2011 But how it ll solve the above problem by using sendkeydelay? Look in the Help File about "Opt()". It goes at the very top of the script...
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