Autoit looks for include files in ScriptDir and in the normal pathes. You can add a path in Scite by pressing CTRL+1.
So, it is your job to say OI where it should look for include files. OI is not looking into files in @scriptdir automatically.
Standard is looking here:
; NormalVersion Global $InstallPath = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir') Global $InstallVersion = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'Version') ; BetaVersion Global $betaInstallPath = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'betaInstallDir') Global $betaInstallVersion = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', 'betaVersion') ; Variables Dim $includesPath[1] If $InstallPath <> '' Then _ArrayAdd($includesPath, $InstallPath & '\Include\') If $betaInstallPath <> '' Then _ArrayAdd($includesPath, $betaInstallPath & '\Include\')
and I normally add this ( this is where I save all the nice udfs)
_ArrayAdd($includesPath, $betaInstallPath & '\include\UDF\')
The second point you mentioned
GUIRegisterMsg($WM_HSCROLL, "MY_WM_HSCROLL") OI is missing is right. Never thought of that before.
Thanks, I'll have a look whether I can catch funcs which are only called this way.
So long,
Mega





