Sign in to follow this  
Followers 0
tom13

ControlSend not sending shift characters even when told so

8 posts in this topic

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?

Share this post


Link to post
Share on other sites



Try the raw flag

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

I've had similar issues where Send works but not ControlSend. What about ControlSetText

Share this post


Link to post
Share on other sites

I've had similar issues where Send works but not ControlSend. What about ControlSetText

Tried that also, what it does is editing the window title... weird eh?

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0