| View previous topic :: View next topic |
| Author |
Message |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Mon Oct 09, 2006 4:53 pm Post subject: Picture as variable |
|
|
| Quote: | Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable, where the bitmap content is stored.
Example: Gui, Add, Picture, w300 h-1, %PictureFromMemory% |
_________________ My AHK project: http://landvermesser.tripod.com/ |
|
| Back to top |
|
 |
slomz
Joined: 03 Sep 2006 Posts: 608 Location: Iowa, U.S.
|
Posted: Tue Oct 10, 2006 12:44 am Post subject: |
|
|
| What is ur point? Are you asking if a picture can have a variable or what? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5376 Location: /b/
|
Posted: Tue Oct 10, 2006 12:57 am Post subject: |
|
|
I think Landvermesser wants to be able to load an image directly from memory, like Clipboard bitmaps. Search for GDI in Scripts & Functions, there are various ways of doing this already. _________________
 |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Tue Oct 10, 2006 6:50 am Post subject: Re: Picture as variable |
|
|
| Quote: | Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable, where the bitmap content is stored. |
That sounds ambiguous!
| Quote: | Picture (or Pic)
An area containing an image (see last two paragraphs for supported file types). The last parameter is the filename of the image or a variable pointing the bitmap file. |
should be better, I guess!
... _________________
 |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Oct 10, 2006 9:11 am Post subject: |
|
|
No, Goyyah, we can already do that, he really means some bitmap buffer loaded with WinAPI.
It can be done with STM_SETIMAGE.
http://www.autohotkey.com/forum/viewtopic.php?t=10091
But it can cost a memory leak, I am not too sure here. I still plan to experiment on this field. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6223
|
Posted: Tue Oct 10, 2006 9:14 am Post subject: |
|
|
| PhiLho wrote: | | It can be done with STM_SETIMAGE. |
Thanks for the Info. Regards,  _________________
 |
|
| Back to top |
|
 |
|