Jump to content

Recommended Posts

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
Posted

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.

Posted

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
Posted (edited)

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

:)

>_< I dont understand :idiot:

Edited by let
Posted

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 :)

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
×
×
  • Create New...