Send keys not working for certain computers

namtopia

  • Joined: Feb 11, 2011
  • Posts: 1

Fri 2/11/2011 - 19:12

 I have a winautomation script that sends keys to a game program running on 3 different computers (Win7 and XP).  The keys are successfully sent only to 2 of the 3 machines running the same program and I have tried both manually configuring the keys into job designer and recording the macros.

The computers that this function works on are running Win7 and XP.  The problem machine is running Win7 and is a considerably newer computer as well as higher performance (2011 Alienware desktop).

 

The keys sent are:

{LControlKey}{(F)}

{LMenu}{(C)}

{LMenu}{(P)}

{Escape}

 

What do you think is causing this issue?  I'll be happy to provide more information if its needed.

Thanks in advance!

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2330

Tue 2/15/2011 - 18:48

Hi there, the only thing that crosses my mind, is maybe timing causing this. If the keystrokes are being sent too fast, prior to the field being focused or something. Try adding some delay {Delay 500} (that would be half a second) or more.. to make sure that you give either enough time to focus on the field/window the keys are being sent to prior to sending them. :) Samantha

#2

voltr4nz

  • Joined: Mar 16, 2011
  • Posts: 1

Wed 3/16/2011 - 9:41

Adding some delay also not work for "System Properties" in my Win7. Any other idea?

#3

kimc

  • Joined: Jan 13, 2011
  • Posts: 298

Wed 3/16/2011 - 17:31

Your examples were:

{LControlKey}{(F)}

{LMenu}{(C)}

{LMenu}{(P)}

{Escape}

 

It is my understanding that the parentheses have to be outside of the braces..for example:

{LControlKey{({F})

{LMenu}({C})

 

You have them the other way in your example.

 

I had a similar problem with similar keys; when I changed the braces and parentheses around to the correct order, everything worked great.

 

Good luck.

#4
Not a member yet? Register

Copyright 2013 - Softomotive Ltd