AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internet image on a GUI?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 58

PostPosted: Fri May 02, 2008 3:11 am    Post subject: Internet image on a GUI? Reply with quote

Is there any way to get a picture from the internet on a GUI box? I am trying to make a program with pictures on it that would display properly on another computer.
Back to top
View user's profile Send private message
SomeGuy



Joined: 21 Apr 2008
Posts: 96
Location: somewhere

PostPosted: Fri May 02, 2008 4:26 am    Post subject: Reply with quote

use urldownloadtofile first
Back to top
View user's profile Send private message
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 58

PostPosted: Fri May 02, 2008 4:45 am    Post subject: Reply with quote

Like this?:

Code:

UrlDownloadToFile, http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif,C:\program files
Gui, Add, Picture, x26 y17 w140 h120 , C:\program files\http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif
Gui, Show, x325 y217 h377 w477, New GUI
Return
Esc::ExitApp
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 1078
Location: switzerland

PostPosted: Fri May 02, 2008 6:54 am    Post subject: Reply with quote

yes, look for the correct path
or you can also create a folder witch contains picture and your compiled xy.ahk to xy.exe
Code:
UrlDownloadToFile, http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif , C:\logo.gif
Gui, Add, Picture, x26 y17 w140 h120 ,C:\logo.gif
Gui, Show, x325 y217 h377 w477, New GUI
Return
Esc::ExitApp
Back to top
View user's profile Send private message
h4xx0r n00bl37



Joined: 14 Mar 2008
Posts: 58

PostPosted: Sat May 03, 2008 3:02 am    Post subject: Reply with quote

Thanks garry
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 1078
Location: switzerland

PostPosted: Sat May 03, 2008 8:42 am    Post subject: Reply with quote

I forget, only download when not exist:
Quote:

ifnotexist,c:\logo.gif
urldownloadtofile, http://www.autohotkey.com/docs/images/AutoHotkey_logo.gif , C:\logo.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group