Jump to content

Grabbing URL from window control link


lopolop
 Share

Recommended Posts

I did some searching and couldn't find anything on this issue. Basically I am looking to grab the URL from a link in a window. I can see the window, its text and buttons. From the AU3Info tool I get:

>>>> Window <<<<
Title: childWindow
Class: #32770
Position: 827, 333
Size: 326, 355
Style: 0x96CC0084
ExStyle: 0x00010101
Handle: 0x000B0484
>>>> Control <<<<
Class: wxWindow
Instance: 1
ClassnameNN: wxWindow1
Name:
Advanced (Class): [CLASS:wxWindow; INSTANCE:1]
ID: 10701
Text: Download
Position: 127, 245
Size: 56, 16
ControlClick Coords: 10, 8
Style: 0x52010000
ExStyle: 0x00000000
Handle: 0x00050570

When I click on it, it opens the default browser and downloads the file. However if I right click on it I can select the only option of 'Copy URL'. Since I couldn't figure out a way using the control directly, I tried this:

ControlClick( "[TITLE:" & $title & "; CLASS:#32770]", "", "[CLASS:wxWindow; INSTANCE:1]", "Secondary" )
ControlSend( "", "", "[CLASS:#32768]", "{Down}{Enter}" )
msgbox( 1, "", ClipGet() )

The ControlSend() was the issue, besides I feel like this is a sloppy way of doing things, unless unavoidable.

The AU3Info for the context menu is:

>>>> Window <<<<
Title:
Class: #32768
Position: 1002, 615
Size: 142, 28
Style: 0x94800000
ExStyle: 0x00000189
Handle: 0x003203D8
>>>> Control <<<<
Class:
Instance:
ClassnameNN:
Name:
Advanced (Class):
ID:
Text:
Position:
Size:
ControlClick Coords:
Style:
ExStyle:
Handle:

Thanks for reading! Any help would be great.

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