Sign in to follow this  
Followers 0
cambium

Insert pics by url into GUI ?

5 posts in this topic

hey , i am trying to insert pictures from browser ( IE ) in GUICtrlCreate()- Gui's

Tried using GUICtrlCreatePic() , this failed cause the picture has to be somewhere on your pc -> won't work with urls

Tried to create an _IECreateEmbedded() object in my GUI , and than navigate this object to the pics url . Works ,but i want the single pic in my GUI not a whole freaking IE page with only one pic

Summary : "I want to know how to insert pics in GUI by url."

any suggestions?

Thanks

Share this post


Link to post
Share on other sites



@cambium

Welcome to AutoIt forums :P

InetGet('yourpictureurl', @ScriptDir & '\pic.jpg')

GUICreate('|')
GUICtrlCreatePic(@ScriptDir & '\pic.jpg', 0, 0)
GUISetState()

While 1
    Sleep(200)
WEnd

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

hehe big thanks for quick answer

well i guess , depending on your reply , thats it is not possible without "downloading" that picture?

Share this post


Link to post
Share on other sites

I'm trying to get a grip on "why" you want to be able to do this...

Typically when you are designing a GUI you want to be fairly specific about the size and spacing of the assorted elements. In that scenario, grabbing the pic yourself and using it (FileInstall) while designing the GUI makes sense. If you are wanting the GUI to view assorted inet images.... then why wouldn't you make an embedded area on the GUI for viewing them?


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

The pic which should be shown in GUI is depending on which url your browser is , or showing a growing statusbar etc.

second : omg i'm stupid , simply fitting embedded object to picture size (i didn't used width and height , always had this HUGE embedded area with only one small pic :P ). thanks for help ^^

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