Jump to content
Sign in to follow this  
n0dy

Help in controlgettext

Recommended Posts

n0dy

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

Share this post


Link to post
Share on other sites
n0dy

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.

Share this post


Link to post
Share on other sites
n0dy

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.

Share this post


Link to post
Share on other sites
kaotkbliss

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!

Share this post


Link to post
Share on other sites
bogQ

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.

 

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.