Jump to content

Help ControlGetText


let
 Share

Recommended Posts

Func _GetTextReply($YahooWin)
        Local $GetTextReply
        WinWaitNotActive($YahooWin,"")
        $GetTextReply = ControlGetText($YahooWin,"","YHTMLContainer1")
        If $GetTextReply = "" Or $GetTextReply = 0 Then
            Return 0
        Else
            Return $GetTextReply
        EndIf   
    EndFunc

NO result ! Why ?

Edited by let
Link to comment
Share on other sites

Func _GetTextReply($YahooWin)
        Local $GetTextReply
        WinWaitNotActive($YahooWin,"")
        $GetTextReply = ControlGetText($YahooWin,"","YHTMLContainer1")
        If $GetTextReply = "" Or $GetTextReply = 0 Then
            Return 0
        Else
            Return $GetTextReply
        EndIf   
    EndFunc

NO result ! Why ?

What are the chances that a "YHTMLContainer1" control responds to standard Win32 API calls to get text? It's some kind of custom control, evidently HTML and perhaps browser based. AutoIt uses standard Win32 APIs. If the control doesn't, then AutoIt has no interface to it.

Perhaps ControlFocus() and the ControlSend() with "^c"?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Hi let,

You've been warned about using one word to create a topic, and how it effects the usage of this forum.

Please help us keep this forum a great place to come and find answers by using proper forum etiquette.

Next time you will be reported to the moderators for abuse.

Sorry :)

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