Jump to content

ControlDend command entering sme wrong values sometimes


Recommended Posts

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?

Link to comment
Share on other sites

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

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 :unsure:

Edited by MrMitchell
Link to comment
Share on other sites

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 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 :unsure:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...