Jump to content

Help in controlgettext


n0dy
 Share

Recommended Posts

Posted Image

Kaotik This is what i am trying. Thanks for helping. Very appreciating :D

The script you gave is right, But even "LowCardBot" retrieved from Static1, it is not sending text "!d"

Jos i am sorry again, i didnt do anything to show you any rude thing. :huggles:

Dim $var
While 1
$var = ControlGetText("[CLASS:Player]", "", "Static1")
If $var = "LowCardBot" Then
ControlSetText("Player", "", "[CLASS:Edit; INSTANCE:1]", "!d" )
ControlSend("Player", "", "[CLASS:Button; INSTANCE:3]", "{ENTER}1")
 EndIf
 Sleep(50)
 WEnd
Edited by n0dy
Link to comment
Share on other sites

Any help guys? Because when "LowCardBot" is retrieved from static1, the call to settext and controlsend should be done, mean text "!d" should be in Typing area which is in white colour, and controlsend should be worked. But it is not sending "!d" nor retrieving text.

Link to comment
Share on other sites

Like?

Bytheway i have tried changing If $var = "LowCardBot" Then to If $var <> "LowCardBot" Then in this script, it works but it works like with 50ms it is sending "!d" contineuosly only not waiting for the LowCardBot to be retrieved first and then it should send it.

Link to comment
Share on other sites

Every time $var does not equal ( <> ) LowCardBot then it will do those 2 things, which is why it was changed to =

the line for !d is controlsettext, maybe it is supposed to be controlsend

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Some help, do not bump a thread within 24h and maby someone will help you, if you bump it all the time youl probably will not get any.

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

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...