Jump to content

How to get the URL from an image on the web?


RoyZ
 Share

Recommended Posts

Hi friends,

I would like to click an image on the web to call a function

that will use some regex to isolate a specific parameter from the Image's URL.

I have 2 questions:

1. is it possible to set any hot-key in a way that when i place the mouse cursor on the image and press it,

it will call the function? OR (better) if I could set a hot-key + mouse click?? and if so, how can i do that?

2. let's say I've triggered the function, how can i extract the URL from the image?

I wouldn't want to use mouse clicks and go to it's properties and get it from there by copying..

i would want a "lower level" (deeper) solution..

I would appreciate any help!

Thanks!

Roy.

Link to comment
Share on other sites

RoyZ,

First, Welcome to the AutoIt Forums

We ask that you do not bump your posts within 24 hours. This is not a 24/7 support forum. You will have have to wait until someone that knows how to help you comes online. Those of us that do answer, do so out of the kindness of our heart, and that we have a little time to spare. Be patient and someone will answer eventually.

Unfortunately for you, you also bumped with large letters in bold, which could be taken as shouting. Something that is not tolerated here at all. With that, I will wait another 24 hours to help you on top of the original 24 hours, better hope that someone has a kinder heart then mine.

Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

  • 2 weeks later...

ok, ok, I'm sorry..

I didn't know these rules..

Realm , believe me, I appreciate any help i get on forums

and I try to help as much as i can in some of them too..

I will still appreciate any help..

Thanks a lot.

Roy.

Link to comment
Share on other sites

Heres a cheap and nasty code, you can get started with, for use with Internet Explorer.

#include <Misc.au3>
Opt("WinTitleMatchMode",2)
Local $sLink
Local $hwnd = WinActivate("Internet Explorer")
While 1
    Sleep(10)
    If _IsPressed("01") Then
        $sLink = StatusbarGetText($hwnd)
        MsgBox(0,"",$sLink)
    EndIf
WEnd

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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