tsolrm Posted April 4, 2011 Share Posted April 4, 2011 ControlSend("Garena", "", "RichEdit20W2", $slash&$banstring&" "&$aLines[$i]) ControlSend("Garena", "", "RichEdit20W2", "{Enter}") This sends a piece of text into a specified window and presses Enter. In this case it would be "/ban nick 10" However since the send function simulates key strokes, if a different keyboard layout (Russian for example) is selected it just sends ".ифт тшсл 10" Is there any way to overcome this problem? Thanks Link to comment Share on other sites More sharing options...
wakillon Posted April 4, 2011 Share Posted April 4, 2011 Did you try with ControlSetText ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
tsolrm Posted April 4, 2011 Author Share Posted April 4, 2011 Did you try with ControlSetText ?I'm not quite sure how that would work out, could you give me a hint? Link to comment Share on other sites More sharing options...
wakillon Posted April 4, 2011 Share Posted April 4, 2011 I'm not quite sure how that would work out, could you give me a hint? Like this ControlSetText ( "Garena", "", "RichEdit20W2", "/ban nick "& $aLines[$i] ) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
tsolrm Posted April 4, 2011 Author Share Posted April 4, 2011 Like this ControlSetText ( "Garena", "", "RichEdit20W2", "/ban nick "& $aLines[$i] ) Thanks I'll give it a go Link to comment Share on other sites More sharing options...
tsolrm Posted April 4, 2011 Author Share Posted April 4, 2011 That doesn't really make any difference Link to comment Share on other sites More sharing options...
Bert Posted April 4, 2011 Share Posted April 4, 2011 ControlSend("Garena", "", "RichEdit20W2", $slash&$banstring&" "&$aLines[$i]) ControlSend("Garena", "", "RichEdit20W2", "{Enter}") This sends a piece of text into a specified window and presses Enter. In this case it would be "/ban nick 10" However since the send function simulates key strokes, if a different keyboard layout (Russian for example) is selected it just sends ".ифт тшсл 10" Is there any way to overcome this problem? Thanks read this The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
tsolrm Posted April 5, 2011 Author Share Posted April 5, 2011 read thisLol it has nothing to do with games. It's a script that helps moderators.Any advice on the subject? Link to comment Share on other sites More sharing options...
bogQ Posted April 5, 2011 Share Posted April 5, 2011 (edited) The script is mented for chat MSNmsg-like win so it dont have anything to do with game Try ClipPut("your data") Send("^v") or ControlSend("Garena", "", "RichEdit20W2", "^v") Edited April 5, 2011 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
tsolrm Posted April 6, 2011 Author Share Posted April 6, 2011 That doesn't always work. I'm looking for a way to make this ControlSend("Garena", "", "RichEdit20W2", $slash&$banstring&" "&$aLines[$i]) send only in EN, so how would i change the keyboard layout or the window input to only english letters? Link to comment Share on other sites More sharing options...
bogQ Posted April 7, 2011 Share Posted April 7, 2011 Before you make another "doesn't work" reply read this, Most of the users (at least older ones) test something before posting As i did test ControlSetText, worked with no problems on 7 different layouts under XP "^v" no problems this programs control is not anything special so that simple code line will work different on any other program control. So if its not working on your testing comp, reinstall comp clean viruses and so on... You are looking for something that is not there. If you need layout _WinAPI_SetKeyboardLayout TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
wallstreetsystems Posted October 12, 2011 Share Posted October 12, 2011 I also cannot make any of these ControlSetText, ControlSend, WinGetHander to work with our C# developed forms. I am sure my syntax of them are correct because I make them work with the installation automation. AutoIt help mentions that AutoIt might not work well with non-stand windows forms. Is that the reason? But the AutoIt v3 Window Info tool can see the Class, Instance, ClanssnameNN of the forms. And these control functions don't even return anything, They just hang, never return. For example, ControlSetText("LDAP Authentication", "", "[CLASS:WindowsForms10.EDIT.app.0.201d787_r16_ad1;INSTANCE:2]", $loginName, 1) If @error Then MsgBox(4096, "Error", "Count not find the correct control") EndIf Never show any msgbox. Any help? 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