Jump to content

send a Text


Recommended Posts

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 by phreaxxer
Link to comment
Share on other sites

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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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 by Swift
Link to comment
Share on other sites

; $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

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 connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

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 by phreaxxer
Link to comment
Share on other sites

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 by Squirrely1

Das Häschen benutzt Radar

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...