Ahh, nice to find the correct source!
Doesn't make it work, though...
The contents of my registry here at home is pretty much the same as what I posted above.
I inserted a msgbox inside the loop in the GETPROGRAMS routine, right before the IfInString,A_LoopRegName,%path% -line, to get a readout of the important variables.
My line goes like this:
msgbox, %path%`n %program%`n %pid%`n %A_LoopRegName%
The first box says:
C:\WINNT\Explorer.EXE
explorer.exe
1040
@C:\Program files\MultiMedia\iTunes\iTunes.Resources\iTunesRegistry.dll,-16
The next box goes the same, except the last line is:
@C:\Program files\Shared files\Ahead\lib\MediaLibraryNSE.dll,-11111
And so on... (The A_LoopRegName isn't exactly taken from my previous post, since I appearently have different 'whatever-it-is' here than in my office computer.) There are a lot of entries in this key, more than three full screens. The loop never finds a match, and therefore the 'programs' variable never gets any contents.
What does your regstry hold in this particular key? And howcome there is a difference???
Hang on, I just checked the registry of an XP machine. And
there they are, lots of 'path-like' entries right after all the @-entries. These just don't exist in my Win 2000 machines...
Ok, so it's an XP feature that is not present in Win 2000. But what does this check actually do? And could it be found elsewhere in the registry, if necessary?
Sorry for asking supposedly silly questions, but the hour is too late to try and figure out the purpose of the code...
Thanks for taking the time to look at this!
/IrmaIsfot