Re: Upcoming Ahk2Exe changes
Posted: 04 Jun 2015, 13:13
Theoretically, any type can be included. Those are just the officially supported ones.
Still waiting on the release with ahk
Still waiting on the release with ahk
Let's help each other out
https://www.autohotkey.com/boards/
I'm confused...why are you trying to compile ahk2exe....isn't it already an executable ?haichen wrote:Cant compile ahk2exe edge with v1.1.22.03 on win7 x64.
Worked before.
Ahk2Exe Error
---------------------------
Error changing icon: Unable to read icon or icon was of the wrong format.
Are you compiling the source code for the ahk2exe so that it'll have the latest updates/improvements and fixes that 1.1.22.03 provide?haichen wrote:Sorry, I mean compiling the source ahk2exe.ahk to ahk2exe.exe
Works without problems at home with my old win8.1 x32 pc. Doesn't compile at my work pc. I've done this with all prior ahk versions. So I thought to inform finc.
So to be clear, you're saying that as long as I have the latest Unicode 64-bit.bin, ANSI 32-bit.bin, AutoHotkeySC.bin, Unicode 32-bit.bin that i can use THIS ahk2exe (which is from the beginning of 2015) and my compiled exe's will have the latest updates/fixes from 1.1.22.03?haichen wrote:I don't really believe it makes a difference, because the autohotkey.bin carrys all the news and fixes. So an exe compiled with an "old" ahk2exe.exe will have all fixes and updates from the included bin (i think).
But i hope the compiler directives will someday come into the release version. So please! .. finc have a look at your compiler
Awesome!! What about my "PS" btw?joedf wrote:@Skrell yup
did you read the first post in the thread?Skrell wrote: What about my "PS" btw?
Yes, but had 2 questions:guest3456 wrote:did you read the first post in the thread?Skrell wrote: What about my "PS" btw?
try this:Skrell wrote:No one can tell me if *.wav files should work ?
Code: Select all
; http://www.autohotkey.com/board/topic/96484-read-wave-resource-from-exe-using-skans-dllread-possible/
#NoEnv
ResRead( Sound, "test.wav" )
PlaySound( Sound )
Return ; // end of auto-execute section //
FileInstall, test.wav, -
;never executed, so never extracted, this should be replaced with ahk2exe directives when applicable!
; ResRead() By SKAN, from http://www.autohotkey.com/board/topic/57631-crazy-scripting-resource-only-dll-for-dummies-36l-v07/?p=609282
ResRead( ByRef Var, Key ) {
VarSetCapacity( Var, 128 ), VarSetCapacity( Var, 0 )
If ! ( A_IsCompiled ) {
FileGetSize, nSize, %Key%
FileRead, Var, *c %Key%
Return nSize
}
If hMod := DllCall( "GetModuleHandle", UInt,0 )
If hRes := DllCall( "FindResource", UInt,hMod, Str,Key, UInt,10 )
If hData := DllCall( "LoadResource", UInt,hMod, UInt,hRes )
If pData := DllCall( "LockResource", UInt,hData )
Return VarSetCapacity( Var, nSize := DllCall( "SizeofResource", UInt,hMod, UInt,hRes ) )
, DllCall( "RtlMoveMemory", Str,Var, UInt,pData, UInt,nSize )
Return 0
}
PlaySound( ByRef Sound ) {
Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0
, UInt, 0x6 ) ; SND_MEMORY := 0x4 | SND_NODEFAULT := 0x2
}
PlaySoundAsync( ByRef Sound ) {
Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0, UInt, 0x7 )
}
1. Thank you for helping! But a few questions:tmplinshi wrote: try this:Code: Select all
; http://www.autohotkey.com/board/topic/96484-read-wave-resource-from-exe-using-skans-dllread-possible/ #NoEnv ResRead( Sound, "test.wav" ) PlaySound( Sound ) Return ; // end of auto-execute section // FileInstall, test.wav, - ;never executed, so never extracted, this should be replaced with ahk2exe directives when applicable! ; ResRead() By SKAN, from http://www.autohotkey.com/board/topic/57631-crazy-scripting-resource-only-dll-for-dummies-36l-v07/?p=609282 ResRead( ByRef Var, Key ) { VarSetCapacity( Var, 128 ), VarSetCapacity( Var, 0 ) If ! ( A_IsCompiled ) { FileGetSize, nSize, %Key% FileRead, Var, *c %Key% Return nSize } If hMod := DllCall( "GetModuleHandle", UInt,0 ) If hRes := DllCall( "FindResource", UInt,hMod, Str,Key, UInt,10 ) If hData := DllCall( "LoadResource", UInt,hMod, UInt,hRes ) If pData := DllCall( "LockResource", UInt,hData ) Return VarSetCapacity( Var, nSize := DllCall( "SizeofResource", UInt,hMod, UInt,hRes ) ) , DllCall( "RtlMoveMemory", Str,Var, UInt,pData, UInt,nSize ) Return 0 } PlaySound( ByRef Sound ) { Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0 , UInt, 0x6 ) ; SND_MEMORY := 0x4 | SND_NODEFAULT := 0x2 } PlaySoundAsync( ByRef Sound ) { Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0, UInt, 0x7 ) }