phreaxxer Posted January 25, 2008 Share Posted January 25, 2008 (edited) Hi @ all first sry for my bad english i have a problem with a script i will send to a Ingame Chat a text. the text come from a the Gui $txtwspnick = bla bla $txtwsptext = see this beauty World If $msg = $txtwspsign Then ControlSend($Title, "", "", "{ENTER}" & "{BS 20}"& "/w " & GUICtrlRead($txtwspnick) & " " & GUICtrlRead($txtwsptext) & "{ENTER}",0) may ingame write it only 7w bla bla see this beauty World i will it's write /w bla bla see this beauty World what can i doo ? Greetz Phreaxxer Edited January 25, 2008 by phreaxxer Link to comment Share on other sites More sharing options...
Swift Posted January 25, 2008 Share Posted January 25, 2008 (edited) run the script... Send("blah") O.O -Im Serious. The Helpfile Does Wonders. Edited January 25, 2008 by Swift Link to comment Share on other sites More sharing options...
therks Posted January 25, 2008 Share Posted January 25, 2008 (edited) I don't think that's the issue Swift. I think he's saying it's converting / to 7. *Although why he needed to create TWO topics to ask the same question, I don't know... Edited January 25, 2008 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
phreaxxer Posted January 25, 2008 Author Share Posted January 25, 2008 Right Saunders i will Send a / not a 7 but i can do wat i want it send everytime a 7 *grml* Sry for Dupe Post i have write wrong Title but cant edit this Greetz Phreaxxer Link to comment Share on other sites More sharing options...
bogQ Posted January 26, 2008 Share Posted January 26, 2008 (edited) Right Saunders i will Send a / not a 7 but i can do wat i want it send everytime a 7 *grml* Sry for Dupe Post i have write wrong Title but cant edit this Greetz Phreaxxer maybe Send(Chr(47)) ? or Send("+7")? Edited January 26, 2008 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...
phreaxxer Posted January 26, 2008 Author Share Posted January 26, 2008 No this don't work :-( thx for your Help Greetz Phreaxxer Link to comment Share on other sites More sharing options...
phreaxxer Posted January 26, 2008 Author Share Posted January 26, 2008 Push Link to comment Share on other sites More sharing options...
Swift Posted January 26, 2008 Share Posted January 26, 2008 (edited) So...your tring to send the number 7? into your game? if you are... then its very simple... Controlsend("7") Send("7") if this is NOT what you want...then explain a lil more... or it is you wanna send: / into the game? if Send("/") or Controlsend("/") they dont work...then this game probably has game guard...stopping you from sending the key 7. ---Thanks Swift Edited January 26, 2008 by Swift Link to comment Share on other sites More sharing options...
phreaxxer Posted January 26, 2008 Author Share Posted January 26, 2008 Hi it not Works. The Script dont Send anything Shifted Chars *confuse* i can do what i want it send only unshifted chars *grml* greetz Phreaxxer Link to comment Share on other sites More sharing options...
Squirrely1 Posted January 26, 2008 Share Posted January 26, 2008 ; $txtwspnick needs to be a control that you could read its value: $txtwspnick = bla bla ; $txtwsptext also needs to be a control that you could read its value: $txtwsptext = see this beauty World While 1 $msg =GUIGetMsg() If $msg = $txtwspsign Then $x = GUICtrlRead($txtwspnick) $y = GUICtrlRead($txtwsptext) $text = "/w " & $x & " " & $y ; A Control-ID is needed in the following lines: ControlSend($Title, "", "[ControlID- needed !!]", "{ENTER}", 0) ControlSend($Title, "", "[ControlID- needed !!]", "{BS 20}", 0) ControlSend($Title, "", "[ControlID- needed !!]", $text, 0) ControlSend($Title, "", "[ControlID- needed !!]", "{ENTER}", 0) EndIf Sleep(30) WEnd Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
bogQ Posted January 27, 2008 Share Posted January 27, 2008 can you tell the name of the game your haveing problems with, and does game have protection and can you tell what kboard language do you use on the game becose on my kboard ( english (united states) ) shifed 7 = & and the / isnt shifed button, its notrmal button? 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...
phreaxxer Posted January 27, 2008 Author Share Posted January 27, 2008 (edited) the game is Archlord i use German Key set an what for a Control ID can you give a example ? this is a snippet of the script Func ChatSend() $colorinject = "" If BitAND(GUICtrlRead($colorvlang), $GUI_CHECKED) = $GUI_CHECKED Then $colorinject = "{ASC 60}{ASC 59}{ASC 72}{ASC 72}{" & $hexr & $hexg & $hexb & "}{ASC 62}" If $msg = $txtgensign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{" & GUICtrlRead($txtgentext) & "}{ENTER}", 0) EndIf If $msg = $txtgldsign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{ASC 64}{" & GUICtrlRead($txtgldtext) & "}{ENTER}", 0) EndIf If $msg = $txtunisign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{ASC 47}{u }{" & $colorinject & " " & GUICtrlRead($txtunitext) & "}{ENTER}", 0) EndIf If $msg = $txtptysign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{ASC 36}{" & GUICtrlRead($txtptytext) & "}{ENTER}", 0) EndIf If $msg = $txtwspsign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{ASC 94}{" & GUICtrlRead($txtwspnick) & "}{ " & GUICtrlRead($txtwsptext) & "}{ENTER}", 0) EndIf If $msg = $txtshtsign Then ControlSend($Title, "", "", "{ENTER}{BS 20}{ASC 33}{" & $colorinject & "}{" & GUICtrlRead($txtshttext) & "}{ENTER}", 0) EndIf EndFunc ;==>ChatSend Edited January 27, 2008 by phreaxxer Link to comment Share on other sites More sharing options...
phreaxxer Posted January 28, 2008 Author Share Posted January 28, 2008 Push Link to comment Share on other sites More sharing options...
Squirrely1 Posted January 28, 2008 Share Posted January 28, 2008 (edited) For the third parameter of a ControlSend function, you need to provide not "" but a "controlID" it is called. To find out the controlID of the control you want to send text to, you use the AutoIt Window Info tool - in my computer you get to it by going to Start button > All Programs > AutoIt ver3 > AutoIt Window Info To use that tool you make the Chat window to be active by clicking on its title bar, and then you read the information in the edit pane of the Window Info Tool. You want to know the classnameNN of the control. Example - this sends to the SciTe edit pane, "squirrely business": ControlSend("(Untitled) - SciTe", "", "[ClassnameNN:Scintilla1]", "squirrely business", 0) (But it only works to do that if no file is already opened in SciTe.) Edited January 28, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
phreaxxer Posted January 28, 2008 Author Share Posted January 28, 2008 Ok thx i try it out :-) Greetz Phreaxxer PS: sry for my Noob Questions and my bad english :-) 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