Jump to content

Recommended Posts

Posted

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.

Posted

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

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
×
×
  • Create New...