This statement only finds WM_Notify.au3 when your script is located in C:\Program Files (x86)\AutoIt3\Examples\Helpfile. I assume you stored your test script in another directory (as the AutoIt directories are read-only). So you have to specify the full path in your #include statement. Check the helpfile for #include to get more detailed information how AutoIt finds include files