Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Convert image to Ahk Code


  • Please log in to reply
24 replies to this topic
HCProfessionals
  • Members
  • 179 posts
  • Last active: Jul 31 2013 12:49 AM
  • Joined: 18 Jun 2007
I have been searching for about 45 minutes for a program or script that will convert my images to ahk so I can embedd them in my compiled .exe

Can I get some help? :?:

VxE
  • Moderators
  • 3622 posts
  • Last active: Dec 24 2015 02:21 AM
  • Joined: 07 Oct 2006
Does FileInstall not work for you?

HCProfessionals
  • Members
  • 179 posts
  • Last active: Jul 31 2013 12:49 AM
  • Joined: 18 Jun 2007
I want the images embedded into the exe so that everything is built in. Don't want multiple files.

ManaUser
  • Members
  • 1121 posts
  • Last active: Dec 07 2016 04:24 PM
  • Joined: 24 May 2007
I know it's a compromise, but I would just FileInstall to A_Temp. Then you can delete the files when the application closes. There just isn't a very good way to do what you want with AutoHotkey.

HCProfessionals
  • Members
  • 179 posts
  • Last active: Jul 31 2013 12:49 AM
  • Joined: 18 Jun 2007
it is possible, because if you go here: <!-- m -->http://www.autohotke... ... larm clock<!-- m -->

you can see that he/she embedded the picture in the script, which is the same thing that I would like to do.

VxE
  • Moderators
  • 3622 posts
  • Last active: Dec 24 2015 02:21 AM
  • Joined: 07 Oct 2006
Oh, in that case, a look at PhiLho's Include bitmaps in your scripts function might help you.

HCProfessionals
  • Members
  • 179 posts
  • Last active: Jul 31 2013 12:49 AM
  • Joined: 18 Jun 2007
Way too confusing for me, can i post the image and have someone convert it to code for me?

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

someone convert it to code for me?


Sure, If the image is small and is BMP, I can do it for you. :)

HCProfessionals
  • Members
  • 179 posts
  • Last active: Jul 31 2013 12:49 AM
  • Joined: 18 Jun 2007
<!-- m -->http://www.filehive....080301/keys.bmp<!-- m -->

Thank You!

Leon
  • Members
  • 179 posts
  • Last active: May 22 2008 02:41 PM
  • Joined: 27 Aug 2007
<!-- m -->http://www.autohotke...topic10957.html<!-- m -->

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
I had condensed PhiLho's code ( Include bitmaps in your scripts ) for Demonstration of AxM_Load()

The slight difference is I use a Text control instead of a Picture control.
I presume you know the image width and the height before hand, else it will cost you a couple of more lines.

Gui 1:+LastFound
[color=red]GUI1[/color]:=WinExist() , hDC:=DllCall("GetDC",UInt,[color=red]Gui1[/color])
Gui, Add, Text, w50 h50 [color=red]0xE[/color] hwnd[color=red]hPic[/color] ; SS_BITMAP = 0xE
[color=red]GoSub, LoadBitmap1[/color]
[color=red]hBMP[/color] := DllCall( "CreateDIBitmap", UInt,[color=red]hDC[/color], UInt,(bmiHAddr:=&BMP+14)
       ,UInt,(CBM_INIT:=4), UInt,&BMP+NumGet(BMP,10), UInt,&BMP+14, UInt,(DIB_PAL_COLORS:=1) )       
SendMessage, (STM_SETIMAGE:=0x172), (IMAGE_BITMAP:=0x0), [color=red]hBMP[/color],, ahk_id %[color=red]hPic[/color]%
Gui, Show, w160 h120, Keys.bmp
Return

GuiClose:
GuiEscape:
ExitApp
Return

LoadBitmap1:
BMPH =
( Join
424DE61D000000000000360000002800000032000000320000000100180000000000B01D000000000000000000
000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFE4E4E4D1D1D1F5F5F5FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF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FFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFCBCBCCFCF1F1E8DCDA80706AA5A3A3BCBDBE9C9996838383DC
FFFF69B2F52B4C725242336D5A528D8885CBCBCCE9E9E9FCFCFCF9F9F98C9397B4ECF9C8F7FEC8ECFD6BDBFF5F
D8FF6BDBFF6BE2FF6DC1F8278AE76E7D8BF9F9F9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFE4E4E4F2EAE8FCF1
F19D8C846C65627B6D637B6D6359524DDCF7F69AD5FE2E578459524D81767075716E9C9996D7D7D7F0F1F2D1CE
CC937E7AAFB6BAA9E2F7B4ECF9A9E2F75ECEFC5ECEFC63D4FE63BBFC278AE7898C92FCFCFCFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFCBCBCCFFFFFFC2B7B27B6D6359524D59524D7B7875C8E5EBC8ECFD2875CA838383
E9E9E99D9F9D9D9F9DB2B2B2EBECEC8A8684C4B0ABCFBAB78C939788DBFA93E5FF7AD3FD4BC6FC5ECEFC4FB3FF
2E8CD7B2B2B2FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0C2C3FFFAF9F9F9F9A28E8859524D9A
948FFFFFFFB3CBD5F5FFFF4AA8FD4E5B6DBCBDBEC8C8C7ADA0949C99969C99969A897FE0CECFC4B0AB978F8EA2
ADB47AD3FD5ECEFC45BDF35BC3F637A7FB477BB4DFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFF9F9
F9B9B8B7DED9D7FFFFFFEAE5E398837E6C6562B9B8B7A2ADB4DCFFFFB3DBF91D6DBD6B6D71908D8C9D9F9D7B78
7587766FDBD3D2DFCCCB8A8684E4E4E4FFFFFFAFB6BA4EBDF34EBDF355ABF5298EF77F8D9DFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FF0000FFFFFFFFFFFFFFFFFFFFFFFFEBECECDED9D7BCB5AEDEDBD8FFFFFFF2EAE8BFA8A480706A75716E89B3D0
C8ECFD6B9CCC2E578491867F8C8174877B72D7D0CCDFCCCBA3928EBCBDBEFFFFFFFFFFFFCBCBCC44A2DA63B4F4
3993FA477BB4DFDFDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFD1D1D1C4BEB89A948FC8C8C7DD
DEDEFFFFFFFCF1F1E0CECFB7A19D898C9268A4CC89B3D09299A4A28E887B6D63837F7EA3928E877B72AEACACEB
ECECD1D1D18A9EAE4994D763B4F44A97EA3788D4AFB6BAFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFF
FFFFFFFFC4BEB88C8174A49A99DFDFDFCBCBCCBCBDBEDBD3D2DCCAC9D5C1C0DC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FFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD1CECC91867FACA6A2E7E4E1
EEEEEDCAC2BDC4BEB8CDC7C5F9F9F9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000FFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFF9F9F9E4E4E4DEDCDAE2E2E1F2F0F0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FFFF0000
)
; Laszlo's MCode() ; http://www.autohotkey.com/forum/viewtopic.php?p=135302#135302 
nSize := StrLen(BMPH)//2 
VarSetCapacity( BMP,nSize ) 
Loop % nSize 
  NumPut( "0x" . SubStr(BMPH,2*A_Index-1,2), BMP, A_Index-1, "Char" )
BMPH= ; empty it

Return

:)

ManaUser
  • Members
  • 1121 posts
  • Last active: Dec 07 2016 04:24 PM
  • Joined: 24 May 2007
I guess I spoke too soon. That's actually not bad. It seems to be an improvement on the last script I saw like that.

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
On the other hand if you know how to add resources ( images, sound etc ) to AutoHotkeySC.bin ( with ResHacker ), then you may try the examples in the following post:
Embed images in compiled AutoHotkey scripts? posted by SKAN
:)

tic
  • Members
  • 1934 posts
  • Last active: May 30 2018 08:13 PM
  • Joined: 22 Apr 2007
very nice example skan. i find that it is too slow and resource wasteful to perform such loops however, and use fileinstall with a rar, and then use unrar.dll to extract my images when needed (this means that instead of having to do:

fileinstall, 1.jpg, 1.jpg
fileinstall, 2.jpg, 2.jpg
....

i can simply do:

fileinstall, unrar.dll, unrar.dll
fileinstall, picsrar.rar, picsrar.rar
UnRar("picsrar.rar")
filedelete, unrar.dll
filedelete, picsrar.rar

obviously this is for when i have more than just a couple of resources....

Conquer
  • Members
  • 385 posts
  • Last active: Jan 10 2013 02:14 AM
  • Joined: 27 Jun 2006
If it's a picture for a GUI.., Can't you just FileInstall it, add it to the GUI then delete the picture right after??

Ex
PicFile = %A_Temp%\Example.bmp
FileInstall,Example.bmp,%PicFile%
Gui,Add,Picture,w100 h100 vPicWp,%PicFile%
FileDelete,%PicFile%