| View previous topic :: View next topic |
| Author |
Message |
h4xx0r n00bl37
Joined: 14 Mar 2008 Posts: 58
|
Posted: Fri May 02, 2008 3:11 am Post subject: Internet image on a GUI? |
|
|
| 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 |
|
 |
SomeGuy
Joined: 21 Apr 2008 Posts: 96 Location: somewhere
|
Posted: Fri May 02, 2008 4:26 am Post subject: |
|
|
| use urldownloadtofile first |
|
| Back to top |
|
 |
h4xx0r n00bl37
Joined: 14 Mar 2008 Posts: 58
|
Posted: Fri May 02, 2008 4:45 am Post subject: |
|
|
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 |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1078 Location: switzerland
|
Posted: Fri May 02, 2008 6:54 am Post subject: |
|
|
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 |
|
 |
h4xx0r n00bl37
Joined: 14 Mar 2008 Posts: 58
|
Posted: Sat May 03, 2008 3:02 am Post subject: |
|
|
| Thanks garry |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 1078 Location: switzerland
|
Posted: Sat May 03, 2008 8:42 am Post subject: |
|
|
I forget, only download when not exist:
|
|
| Back to top |
|
 |
|