Seems things have changed, the 1st bit of code doesn't run... errors on line 3, if I change $= to $ then line 4 errors.

C:\temp\syslog\misc\script\kix>type test.kix
Dim $objDynaWrap, $lhWnd
$objDynaWrap = CreateObject("DynamicWrapper")
$objDynaWrap.Register("USER32.DLL", "FindWindow", "i=ss", "f=s", "r=l")
$lhWnd = $objDynaWrap.FindWindow("Shell_TrayWnd", "")
? $lhWnd
C:\temp\syslog\misc\script\kix>kix32.exe test.kix

ERROR : expected ')'!
Script: C:\temp\syslog\misc\script\kix\test.kix
Line : 4