Welcome Guest Search | Active Topics | Sign In | Register

C# SendKeys.Send Options
M.Kramer
Posted: Wednesday, November 11, 2015 6:14:24 AM
Rank: Advanced Member
Groups: Member

Joined: 11/3/2015
Posts: 65
Hello,

I'm trying to write a macro function into an application.

to run a macro I use this code:
Quote:

foreach (string line in list)
{
if (line.Trim() != "")
{
SendKeys.Send(line);
}
}


if the focus is on a c# object, like a richttextbox it works fine,
but if the focus is on a textinput field in a eo webview this:
Quote:

CHGDTAARA DTAARA*LDA 21 2 VALUE'10'
CHGDTAARA DTAARA*LDA 27 2 VALUE'10'

turns into this
Quote:

CHHHHGGGGGGDDTAAAARRRA DTAAAAAAAAARAAA*LDA 2222111111111111 22 VVVAAAALLLLLLUUUUUUUEE''''111100''''''''''''

CHGDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAA DTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRRRRRRRA***********************************************************************************************LDDDDDDDDDDDDDDDDDDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 22777 2222 VVVVVVVVVVVVVVVVVVVVVVVVVVALLLLLLLLLLLLLLLLLLLUUUUUUUUUUUUUUUUUUUUUUUUUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE'11111111111111111100000''''''''''''''''''''''''''''''''''''''''''

or into this:
Quote:

CHGDDTTAAAAAAAAAAAAAAAAAAAAARRRRRA DDTAAARA*LDA 211 2 VALUEE''''11111111100000'''

CHGDTTAAAARRA DDTTTTTAAAAAAAAAARRRRRRRRA***LDDDDDDDDDDDDDDDDDDDAA 2227777777 2222222 VAAALLUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE''''''''''''11111111111111111111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000''


do you have a tip for me to fix that problem?
eo_support
Posted: Wednesday, November 11, 2015 1:01:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

Please try to add a time delay between sending each character and see if that works. If that still does not work, then your only option is to use JavaScript to fill those fields.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.