HI TracerBullet,
Now I am pretty sure that __ExternalHeaderLib.ahk is not working properly in my PC.
These are the things I did:
1) When I run OrderMan.ahk by double clicking it, it says 'Order Type' not found. So, clearly it is not able to read Column Headers.
2) If I open OrderMan.ahk in SciTe and then run from there, it again says 'Order Type' is not found.
3) But then, there is another great ahk script editor called 'AHK Studio' built very similar to Visual Studio. If you have not used it, use it. Its great for AHK.
Anyway, when I open OrderMan.ahk with AHK Studio and run from there, it runs perfectly. So, it is
able to read Column Headers from AHK Studio.
----------------------------------
Just to confirm whether the problem is with reading Column Headers or not, I created a very small script myself for testing purpose. Here's the script:
PHP:
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 2
HeaderText := GetExternalHeaderText("Order Book", "SysHeader321")
MsgBox, % HeaderText[1] " , " HeaderText[2]
#Include __ExternalHeaderLib.ahk
This little program also shows same behavior.
It is not able to read Column Headers if I run it by double clicking.
But if I run by first opening with AHK Studio, it runs perfectly and detects Column Headers.
By the way, it is not able to run even if I compile it and create an .exe file.
I am really confused