dangr82 Posted January 31, 2012 Share Posted January 31, 2012 Hi, How can i insert a banner (from URL) into GUI... I've tried with GuiObjcreate, shell.explorer, etc... but i would like to view only the banner not a webpage. Link to comment Share on other sites More sharing options...
Mikeman27294 Posted January 31, 2012 Share Posted January 31, 2012 Is it an image? Link to comment Share on other sites More sharing options...
dangr82 Posted January 31, 2012 Author Share Posted January 31, 2012 Yes, tipical banner 300x250, .png or jpeg Link to comment Share on other sites More sharing options...
Mikeman27294 Posted February 1, 2012 Share Posted February 1, 2012 Ok, what you want to do is use InetGet to save it to the temp directory, like so: $URL = 'http://images4.wikia.nocookie.net/__cb20100218225530/unanything/images/9/99/Google-logo.jpg' InetGet($URL, @TempDir&'Banner.jpg');Make sure to save it with the same file extension as the file you are downloading. GUICreate('How to make a Banner', 300, 120) GUICtrlCreatePic(@TempDir&'Banner.jpg', 0, 0, 300, 120) GUISetState() While 1 If GUIGetMsg() = -3 Then Exit WEnd Link to comment Share on other sites More sharing options...
dangr82 Posted February 1, 2012 Author Share Posted February 1, 2012 thank you very much . Great idea. Link to comment Share on other sites More sharing options...
Mikeman27294 Posted February 2, 2012 Share Posted February 2, 2012 No probs 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