Icarus wrote:
Weird.
When you are not sending keys to SWP_Initialize, it still uses them, only defaults.
See the declaration for SWP_Initialize
Try calling it with these keys:
SWP_Initialize( 0x11111111, 0x22222222 )
What is the result? working or not?
Sorry for the mess here...
My issue was with the #NoEnv.
It is important to not have #NoEnv in either the code_gen.ahk or the program.ahk otherwise the fingerprints won't match and the code generated won't unlock. I spent a while trying to figure that one out.
I have cleaned it up, deleting my posts, since they were irrelevant.
All seems to be working well.
My current script needs #NoEnv - so I looked at your code and the reference to A_OStype in the pcdata line in the swp-internal.ahk file.
Then I looked at the GetEnv in the ahk manual, it took me to the built in variables. While looking at that page, I decided to to use one of the built in vars from Operating System and User Info section, like A_OSType or A_ComputerName. This was mentioned somewhere else in this thread I think...
This gets around EnvGet - which I don't yet have a handle on yet... as well as being able to use #NoEnv in my scripts.
If you get a chance, an example of how to do envget with that long string of PCData vars might be nice.
Thanks again.
_________________
KeyMce/GenMce - mackie emulator for pc keyboard/Convert your controller to mackie.
Midi I/O - Want to play with midi/ahk?