Jump to content

Text disappears in text-box input


Recommended Posts

Hello.

I am trying to input some text in textbox using this code:

ControlSetText($hWnd, "", "[CLASS:TFidProfileDropDownNationality; INSTANCE:1]", "some text")

Interestingly when I move to the next line of code and try to set text to another text the text dissapears as if it did not exist at all

Also tried with ControlSend but still

$idFirstName = "[CLASS:TFidProfileEditFirstName; INSTANCE:1]"

;ControlFocus($hIndPflWnd, "", $idFirstName)
Sleep(100)
ControlSend($hIndPflWnd, "", $idFirstName, "Kricket")
Sleep(100)

Give me some ideas how to workaround this problem

Please see the video in attachment

Link to comment
Share on other sites

without seeing the rest of the script it is hard to tell what is happening after the text is set.

If @error Then
    MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!")
EndIf

"Yeah yeah yeah patience, how long will that take?"  -Ed Gruberman

REAL search results  |  SciTE4AutoIt3 Editor Full Version

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