Jump to content

Read character string


Go to solution Solved by Muzaiyan,

Recommended Posts

sorry if i will ask a noob question again, is it possible to read the character that i typed in the input box which is not created by autoit???

I tried this one and its not working

$1 = GUICtrlCreateButton("A", 32, 88, 75, 25)

While 1
 $x3 = GUICtrlRead("[CLASS:TEdit;INSTANCE:1]")
  Switch
   Case $1
    ControlSend("Open", "", "[CLASS:Edit;INSTANCE:1]", $x3)
   endswitch
wend
Edited by 232showtime

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Link to comment
Share on other sites

hello muzaiyan i tried your code but it sends nothing even if there is a text in the inputbox...

i dont know why, maybe because the window is not active?
 

$1 = GUICtrlCreateButton("A", 32, 88, 75, 25)

while 1
$x3 = ControlGetText("Documentation management system", "", "[CLASS:TEdit; INSTANCE:1]"); title to send
  $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $1
                       ControlSend("Open", "", "[CLASS:Edit;INSTANCE:1]", $x3) ; send the title from $x3
         endswitch
Wend

gotta run thank you for replying....

Edited by 232showtime

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Link to comment
Share on other sites

You misspelled your variable name for the ControlGetText function call. "$x3" instead of "x3" 232showtime.

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

use AutoIt info tool to get the info about control

check if window exists

check value of @error after ControlGetText()

check the value of $x3 after function call ControlGetText()

 

its working now just got some typo error in controlid

You misspelled your variable name for the ControlGetText function call. "$x3" instead of "x3" 232showtime.

 

yes i misspelled the variable here, but in scite editor its correct. thanks..

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

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