Display images from websites in your own Gui

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Display images from websites in your own Gui

Re: Display images from websites in your own Gui

Post by garry » 15 Feb 2018, 15:26

I tried with ActiveX , plays GIF with mozilla .
Dont' know how to change the variables in ActiveX if once GUI is created , example below change with reload between vlc or mozilla
A drag&drop example with ActiveX ( with vlc / mozilla )
https://autohotkey.com/boards/viewtopic.php?f=6&t=44007

;- variables for ActiveX =
xxa=VideoLAN.VLCPlugin.2 ;- video / music / foto
xxb=Mozilla.Browser ;- for txt / GIF / ahk
;xxb=Shell.Explorer ;- only for PDF

Re: Display images from websites in your own Gui

Post by Delta Pythagorean » 15 Feb 2018, 14:52

garry wrote:@Delta Pythagorean, thank you
here also an example to show a picture in a GUI , but it downloads

Code: [Select all]GeSHi © Codebox Plus

F0=http://i.imgur.com/pgCT683.jpg
F1=%a_desktop%\China_Canada_Joke.jpg
SplitPath,f1,,,,nne,
ifnotexist,%f1%
urldownloadtofile,%f0%,%f1%
Gui, Add, Picture, w1100 h-1 ,%f1%
Gui, Show,x1 y1 ,%nne%
return
Guiclose:
exitapp


You are correct. But the goal of the topic is to display the image without downloading it at all.
While it is true that you can show a normal image in a GUI, you cannot display gifs (Animated images) in the GUI without it being all hacky and having a bunch of spaghetti code.

Re: Display images from websites in your own Gui

Post by garry » 15 Feb 2018, 13:39

@Delta Pythagorean, thank you
here also an example to show a picture in a GUI , but it downloads

Code: [Select all]GeSHi © Codebox Plus

F0=http://i.imgur.com/pgCT683.jpg
F1=%a_desktop%\China_Canada_Joke.jpg
SplitPath,f1,,,,nne,
ifnotexist,%f1%
urldownloadtofile,%f0%,%f1%
Gui, Add, Picture, w1100 h-1 ,%f1%
Gui, Show,x1 y1 ,%nne%
return
Guiclose:
exitapp

Re: Display images from websites in your own Gui

Post by JasonDavisFL » 09 Feb 2018, 10:04

Awesome just what I need for a Bookmark manager app I am building where I am going to have a Tab that shows all images I have attached to the bookmark record and this is a great way to show them images in the GUI

Display images from websites in your own Gui

Post by Delta Pythagorean » 29 Jul 2017, 17:09

Ever wanted to show an image from some website that you don't want to have to set up a download and then add the image to the Gui and then when the program is done delete the images?
Well now it's possible!
All it takes is to know the image's Url and size and you're ready to go!

Here's a working example for showing an image in a Gui with the function and how to use it:

Code: [Select all] [Expand]GeSHi © Codebox Plus



Hope you enjoy showing people your pictures with ease!
And thanks to the wonderful person: joedf for showing his usefulness in making this possible. I used part of his Display() function to get it working! Link here

Any questions can be asked here and any comments or addons can be said here, thank you! :D

Top