viewpoint-particle

Author Topic: Windows 8 SysTray No longer accessible  (Read 3978 times)

deming

  • Newbie
  • *
  • Posts: 5
Windows 8 SysTray No longer accessible
« on: July 07, 2013, 01:25:27 pm »
I have this very simple example to access the systray systemtray which used to work fine with both Win7 and Win8. Now it no longer works with Win8. It gives the following error msg: "WIL Extender Error: 271: System error. Unable to determine module names. Offending line is "window1=cWndByWndSpec("Shell_TrayWnd","explorer",2,303,40965)"

 Please help.  :D

 Here is the code:

Code: [Select]
AddExtender("wwctl64i.dll")

 ;Title: User Promoted Notification Area
 ;ID: 1504
 ;Class: ToolbarWindow32
 ;Level: 4
 ; Default cWndByWndSpec seems OK here
 window1=cWndByWndSpec("Shell_TrayWnd","explorer",2,303,40965)
 window2=cWndbyid(window1,303)
 window3=cWndbyid(window2,0)
 ControlHandle=cWndbyid(window3,1504)
 tblist=cGetTbText(ControlHandle)

 tbitem = AskItemlist('Choose Items to Left Click', tblist, @TAB, @UNSORTED, @SINGLE)

 buttonnum=ItemLocate(tbitem,tblist,@TAB)

 csetfocus(controlhandle)
 cClickToolbar(ControlHandle,buttonnum,1) ; Left Click

td

  • Tech Support
  • *****
  • Posts: 3467
    • WinBatch
Re: Windows 8 SysTray No longer accessible
« Reply #1 on: July 08, 2013, 06:54:31 am »
Sounds like corrupt performance counters.   You can find information on how to repair the counters here

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Functions+!!~Performance~Monitoring~and~WinBatch~!!.txt

The 'lodctr' utility with the '/R' command line switch is available on Windows 8 and should fix the problem.  Note that you will need to run the 'lodctr' tool from an elevated command prompt.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

deming

  • Newbie
  • *
  • Posts: 5
Re: Windows 8 SysTray No longer accessible
« Reply #2 on: July 08, 2013, 03:31:53 pm »
Thank you!   :D

It worked great and fixed the problem. I did what you suggested at the elevated Windows 8 Command prompt I entered "lodctr /R" and it is all fixed.


kdmoyers

  • Sr. Member
  • ****
  • Posts: 343
Re: Windows 8 SysTray No longer accessible
« Reply #3 on: July 09, 2013, 11:13:41 am »
Sounds like corrupt performance counters. 
Tony, How did you get from the systray malfunctioning to performance counters?
(I feel like Detective Lestrade, stunned again by Sherlock's leaps of logic.)
The mind is everything; What you think, you become.

td

  • Tech Support
  • *****
  • Posts: 3467
    • WinBatch
Re: Windows 8 SysTray No longer accessible
« Reply #4 on: July 09, 2013, 01:30:17 pm »
Not much deductive reasoning or powers of observation need.  The error number made it easy to put the cuffs on the culprit in this whodunit.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade