Jump to content

get image from internet explorer page


Recommended Posts

hi there, sorry for my bad english. (i can't explain as well what i need)

i have a question, is possible to get a loaded image from internet explorer? i'm not intrested in Inet because it download an image!

i have to get and show in GUI an image that contain some characters, but this image evrytime changes!

the link to image is: https://www.tim.it/smsdaweb/imagecode.jpg

CHECK THE LINK BEFORE POST A REPLY TO UNDERSTAND WHY INET IS NOT USEFUL.

when the image is loaded, is possible to get it (to show in a GUI form).

Thanks..

[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

CHECK THE LINK BEFORE POST A REPLY TO UNDERSTAND WHY INET IS NOT USEFUL.

I will be the judge of that. :shocked:

$url = "https://www.tim.it/smsdaweb/imagecode.jpg"


GUICreate("GUI Test", 220, 80)

InetGet($url,"temp.jpg",1)

GUICtrlCreatePic("temp.jpg",10,10,200,60)
FileDelete("temp.jpg")

GUISetState()


While 1
    If GUIGetMsg() = -3 Then ExitLoop
WEnd

EDIT: RUN THE SCRIPT BEFORE YOU SAY THIS NOT WORK DOES.

Edited by Manadar
Link to comment
Share on other sites

I will be the judge of that. :shocked:

$url = "https://www.tim.it/smsdaweb/imagecode.jpg"
GUICreate("GUI Test", 220, 80)

InetGet($url,"temp.jpg",1)

GUICtrlCreatePic("temp.jpg",10,10,200,60)
FileDelete("temp.jpg")

GUISetState()
While 1
    If GUIGetMsg() = -3 Then ExitLoop
WEnd

EDIT: RUN THE SCRIPT BEFORE YOU SAY THIS NOT WORK DOES.

this not work because the char image is evrytime different, and inet shows you a different image! the image is yet loaded in the page using ie.au3 library.

this is the problem! i'm looking for the internet explorer temporany internet files to get the loaded image but i'm not sure i can do it, someone has an ideas?

This is an image for a sites security. Before we continue, what exactly do you want to do with it?

nothing illegal, i need to make a program that send sms automatically from the site www.tim.it but for send it need you read that characters, i'm not able to make a program that read that characters but i can make a GUI thath show character images and the user can write the chars in the image, same thing as using internet, but automatized from an application! Edited by Giordy
[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

nothing illegal, i need to make a program that send sms automatically from the site www.tim.it but for send it need you read that characters

didn't say it was illegal, but you answered the question why i asked what does he want do to with it

i'm not able to make a program that read that characters

that would be hard to do...

Link to comment
Share on other sites

this not work because the char image is evrytime different, and inet shows you a different image! the image is yet loaded in the page using ie.au3 library.

this is the problem! i'm looking for the internet explorer temporany internet files to get the loaded image but i'm not sure i can do it, someone has an ideas?

If you want that done, then say so! You just said you wanted to get this image...

What's the url where the image is displayed?

Link to comment
Share on other sites

didn't say it was illegal, but you answered the question why i asked what does he want do to with it

no problem, is right to ask it before continue helping :shocked:

that would be hard to do...

is not easy to do an OCR when the image is not clean as the security image!

i need only to retrieve this loaded image! from temporany files, directly from the web, is not important how to! if someone has ideas plz post it. thanks

[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

If you want that done, then say so! You just said you wanted to get this image...

What's the url where the image is displayed?

https://www.tim.it/smsdaweb/imagecode.jpg

this is the url, try to check it and refresh the page...

[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

Just give me the goddamn url of the webpage. Lmao.

it need to be registered, and to be registered you need an italian TIM number..

https://www.tim.it/smsdaweb/smsdaweb.do

i think you can't enter if you're not logged in

sorry for communication problem but my english sux! :shocked:

i need only a thing:

1- go to https://www.tim.it/smsdaweb/imagecode.jpg

2- store THAT image (loaded) from IE or from temporany internet files or what else...

Edited by Giordy
[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

it need to be registered, and to be registered you need an italian TIM number..

https://www.tim.it/smsdaweb/smsdaweb.do

i think you can't enter if you're not logged in

sorry for communication problem but my english sux! :P

It's ok, I'm laughing here.. :(

I can't help you any further, because this requires you to log in, and I can't... :shocked:

Link to comment
Share on other sites

It's ok, I'm laughing here.. :P

I can't help you any further, because this requires you to log in, and I can't... :shocked:

if you can

1- go to https://www.tim.it/smsdaweb/imagecode.jpg

2- store THAT image (loaded) from IE or from temporany internet files or what else...

you helped me :(

[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

It's ok, I'm laughing here.. :P

I can't help you any further, because this requires you to log in, and I can't... :shocked:

Well that link (https://www.tim.it/smsdaweb/imagecode.jpg) works without any login trouble for me, and I'm Dutch :( Hell, I don't even know what a TIM number is... But the following script seems to work just fine for me. Is this what you mean?

HotKeySet("{ESC}","Exiting")

InetGet("https://www.tim.it/smsdaweb/imagecode.jpg",@ScriptDir&"\temp.jpg")

$maingui = GUICreate("test",400,200)

$picCtrl = GUICtrlCreatePic(@ScriptDir&"\temp.jpg",10,10,300,100)

$inputCtrl = GUICtrlCreateInput("Please put of letters from image in here this box",10,150,300,20)

GUISetState()

While 1
    Sleep(50)
WEnd

Func Exiting()
    Exit
EndFunc

/edit: seems you need to get interested in INetGet after all... To answer your initial post ;)

Edited by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Well that link (https://www.tim.it/smsdaweb/imagecode.jpg) works without any login trouble for me, and I'm Dutch :shocked: Hell, I don't even know what a TIM number is... But the following script seems to work just fine for me. Is this what you mean?

HotKeySet("{ESC}","Exiting")

InetGet("https://www.tim.it/smsdaweb/imagecode.jpg",@ScriptDir&"\temp.jpg")

$maingui = GUICreate("test",400,200)

$picCtrl = GUICtrlCreatePic(@ScriptDir&"\temp.jpg",10,10,300,100)

$inputCtrl = GUICtrlCreateInput("Please put of letters from image in here this box",10,150,300,20)

GUISetState()

While 1
    Sleep(50)
WEnd

Func Exiting()
    Exit
EndFunc
this not work because the char image is evrytime different, and inet shows you a different image! the image is yet loaded in the page using ie.au3 library.

this is the problem!

CODE
#include<IEComp.au3>

#include<IET2.au3>

#include <GUIConstants.au3>

$oIE = _IECreate("https://www.tim.it/smsdaweb/imagecode.jpg")

InetGet("https://www.tim.it/smsdaweb/imagecode.jpg","temp.jpg")

;~ This retrieve a different image as the shown!

;~ I need a function that retrieve the loaded image

Func GetImage($oIE,$index)

;~ .....

;~ .....

;~ .....

;~ .....

;~ .....

EndFunc

[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
Link to comment
Share on other sites

this not work because the char image is evrytime different, and inet shows you a different image! the image is yet loaded in the page using ie.au3 library.

this is the problem!

CODE
#include<IEComp.au3>

#include<IET2.au3>

#include <GUIConstants.au3>

$oIE = _IECreate("https://www.tim.it/smsdaweb/imagecode.jpg")

InetGet("https://www.tim.it/smsdaweb/imagecode.jpg","temp.jpg")

;~ This retrieve a different image as the shown!

;~ I need a function that retrieve the loaded image

Func GetImage($oIE,$index)

;~ .....

;~ .....

;~ .....

;~ .....

;~ .....

EndFunc

Sorry, you're right, I understand now. Didn't read thoroughly enough. I understand your problem. Then maybe spawn an Internet Explorer page to view the JPG file, then search through the temp internet files to search for the newest .jpg file and view that? (Not tested... :shocked:)

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Link to comment
Share on other sites

Giordy, you could try to set the 3rd parameter ('reload') to 0.. It may just get it from the temp files... It's a long shot though.

this not work.. have a look:

#include<IEComp.au3>
#include<IET2.au3>

$oIE = _IECreate("https://www.tim.it/smsdaweb/imagecode.jpg")
INetGet("https://www.tim.it/smsdaweb/imagecode.jpg","temp.jpg",0)

thank for trying to help me!

EDIT: wow you are from NETHERLANDS :shocked: i like amsterdam!!

Edited by Giordy
[font=courier new, courier, monospace]Una piccola riflessione: [/font] [font=courier new, courier, monospace]Se guardassi la Terra da un pianeta distante 1 anno luce, vedresti la terra 1 anno prima di quell'istante! Quindi se tu potessi arrivare a quella distanza impiegando solo 6 mesi (quindi viaggiando a 2 volte la velocita della luce) vedresti il mondo com'era 6 mesi prima della partenza.. il passato![/font]
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...