Sign in to follow this  
Followers 0
dangr82

Banner in Autoit GUI

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



Is it an image?

Share this post


Link to post
Share on other sites

Yes, tipical banner 300x250, .png or jpeg

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

thank you very much :) . Great idea.

Share this post


Link to post
Share on other sites

No probs :)

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