tom13 Posted November 24, 2007 Share Posted November 24, 2007 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 More sharing options...
picaxe Posted November 24, 2007 Share Posted November 24, 2007 Try the raw flag ControlSend("World of Warcraft", "", 0, "/script AcceptBattlefieldPort(1,1);", 1) Link to comment Share on other sites More sharing options...
tom13 Posted November 24, 2007 Author Share Posted November 24, 2007 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 More sharing options...
picaxe Posted November 24, 2007 Share Posted November 24, 2007 I've had similar issues where Send works but not ControlSend. What about ControlSetText Link to comment Share on other sites More sharing options...
tom13 Posted November 24, 2007 Author Share Posted November 24, 2007 I've had similar issues where Send works but not ControlSend. What about ControlSetTextTried that also, what it does is editing the window title... weird eh? Link to comment Share on other sites More sharing options...
tom13 Posted November 24, 2007 Author Share Posted November 24, 2007 i found a working fix: #include <string.au3> Opt("SendKeyDelay", 10) Opt("SendKeyDownDelay", 10) $hex = _StringToHex("/script AcceptBattlefieldPort(1,1);") ControlSend("World of Warcraft", "", "", _HexToString($Hex)) Link to comment Share on other sites More sharing options...
Zedna Posted November 24, 2007 Share Posted November 24, 2007 (edited) Look here for reason of these Shift problems.If you use some national keyboards (like Czech) you may have problems with Shift/Caps.It's unsolved in AutoIt. Edited November 24, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
picaxe Posted November 26, 2007 Share Posted November 26, 2007 Thanks for the info Zedna and Tom13. Looks like there are many post on this controlsend "sticky shift key" issue. AutoIt help does warnControlSend 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now