There is a message, you are not using it right.
Notice that there is a test code inside the library itself.
As a general rule, I would suggest that when there is such a code, use it before you go on with deeper implementations - take it one step at a time.
Another general rule, includes are usually to be used after your Return statement unless specified otherwise.
That said, please do the following:
1. Make sure that both SW files are in the same folder
2. Create a new script and copy the below code into it
3. Make sure that folder does not contain any INI or any other file for that matter (just to make sure we have a clean testing environment)
The code for the test script:
Code:
#SingleInstance Force
SWP_Initialize( 0x81645732, 0x19573549 ) ; Up to 8 secret keys,
SWP_CheckRegistration( "My Application", "software@developer.com" )
Gosub RunMyApp
Return
#Include SWProtect-GUI.ahk
RunMyApp:
msgbox Registration is good, moving on
Return
If you have done this correctly you should see a window popping, telling you that the application is not registered.
_________________
Sector-Seven - Freeware tools built with AutoHotkey