Jump to content

ControlSend not sending shift characters even when told so


tom13
 Share

Recommended Posts

Hi,

I'm sending the following code to the game called World of Warcraft:

ControlSend("World of Warcraft", "", 0, "/script AcceptBattlefieldPort(1,1);")

It should send

/script AcceptBattlefieldPort(1,1);
but instead it sends
/script acceptbattlefieldport91,10;

It is told to use shift etc (as thats the default option for ControlSend), but it doesn't seem to do so.

Any help?

Link to comment
Share on other sites

Try the raw flag

ControlSend("World of Warcraft", "", 0, "/script AcceptBattlefieldPort(1,1);", 1)oÝ÷ Ûú®¢×®'¶­nr@r¶°k(!ø«²Ð¶+Úµëa{§vÛ¬y'§v)ìµæ×hzÌ(®Fî´Ø­¶Ü!W¦x¦7jëh×6Send("/script AcceptBattlefieldPort(1,1);")

Maybe its the game that prefents it from working? If so, Any way to fix that?

Link to comment
Share on other sites

Thanks for the info Zedna and Tom13. Looks like there are many post on this controlsend "sticky shift key" issue. AutoIt help does warn

ControlSend is only unreliable for command prompts as that works differently to normal windows (seems to check physical states rather than accepting the keystroke messages). For normal windows ControlSend should be way more reliable than a normal Send - and yes it does send shift, ctrl, alt etc.

The problem is intermittent, it can go away after a reboot. Also if you type "shift" and a character in a command window or notepad window or in the start, run inputbox, this can temporarily remove the sticking shiftdown. Now for some reason I can't reproduce it.

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...