cambium Posted March 2, 2009 Share Posted March 2, 2009 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 Link to comment Share on other sites More sharing options...
FireFox Posted March 2, 2009 Share Posted March 2, 2009 @cambium Welcome to AutoIt forums InetGet('yourpictureurl', @ScriptDir & '\pic.jpg') GUICreate('|') GUICtrlCreatePic(@ScriptDir & '\pic.jpg', 0, 0) GUISetState() While 1 Sleep(200) WEnd Cheers, FireFox. Link to comment Share on other sites More sharing options...
cambium Posted March 2, 2009 Author Share Posted March 2, 2009 hehe big thanks for quick answer well i guess , depending on your reply , thats it is not possible without "downloading" that picture? Link to comment Share on other sites More sharing options...
SpookMeister Posted March 2, 2009 Share Posted March 2, 2009 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] Link to comment Share on other sites More sharing options...
cambium Posted March 2, 2009 Author Share Posted March 2, 2009 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 ). thanks for help ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now