Jump to content

Recommended Posts

Posted

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?

Posted

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?

Posted

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?

Posted

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.

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
×
×
  • Create New...