Sign in to follow this  
Followers 0
let

Help ControlGetText

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

:)

>_< I dont understand :idiot:

Edited by let

Share this post


Link to post
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 :)

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  
Followers 0