Re: !xStatsGraphShowPerformancePicker and setting evar
Paul <[email protected]>
| Newsgroups | gmane.comp.windows.shells.litestep |
|---|---|
| Message-ID | <[email protected]> |
Brian Wolven wrote:
> Paul wrote:
> >>
>>> Alternatively maybe literunner could be used to detect when the
>>> performance picker closed and then run the bang. There'd be no way
>>> for it to know which theme setting was updated though.
>>
>> I had thought about that as well. Or maybe one.dll ( I think that is
>> the right module). But I came up with the same shortcoming as you.
>>
>> How about this...and this is just thinking out loud. What if
>> Literunner would tell if the PerfMon was closed, then an option !alert
>> gave you the choice of where to write the evar? Sort of like this:
>>
>> *Script bang !SetPerfMonString
>> *Script exec !xStatsGraphShowPerformancePicker
>> *Script exec !Confirm "Apply to CpuString?" "Apply Changes?"
>> [!varset accept yes] [!varset accept no]
>> *Script gotoif ["%{accept}" = "no"] no
>> *Script exec !Execute [wscript "$ConfigDir$\UpdateThemeVar.vbs"
>> "$ConfigDir$\themevars.rc" CpuString]
>> *Script exit
>> *Script label no
>> *Script exec !Confirm "Apply to MemString?" "Apply Changes?"
>> [!varset accept yes] [!varset accept no]
>> *Script gotoif ["%{accept}" = "no"] no
>> *Script exec !Execute [wscript "$ConfigDir$\UpdateThemeVar.vbs"
>> "$ConfigDir$\themevars.rc" MemString]
>> *Script exit
>> *Script label no
>> *Script exec !Confirm "Apply to NetString?" "Apply Changes?"
>> [!varset accept yes] [!varset accept no]
>> *Script gotoif ["%{accept}" = "no"] no
>> *Script exec !Execute [wscript "$ConfigDir$\UpdateThemeVar.vbs"
>> "$ConfigDir$\themevars.rc" NetString]
>> *Script exit
>> *Script label no
>> *Script ~bang
>>
>> That is just a quick paste job, I know it isn't correct. I don't know
>> how to make more than a yes or no, be nice if I could just have an
>> alert with the three options on it.
>
> Maybe just have it bring up a popup with each of the possible "Apply
> to..." settings choices, and a "cancel" option at the end? That'd be the
> easiest thing to configure. It still allows people to assign a value to
> the wrong performance counter, but they could have screwed it up with a
> text editor, too. ;)
Aha, very clever...
*OnClose #32770 [] [!none][!Popup_yet_to_be_named]
Is #32770 what you have for the Window Class on the "Browse Performance
Counters"?
Oddly enough, I can't find the damned Network Interface in the Browse
Performance Counters applet. I can find it in Add Counters from with
perfmon.msc though. WTF?
>
> ---------------------------------------------------------------------
> Can't Unsubscribe? Check http://desktopian.org/listunsub.html
> LS List Homepage: http://wuzzle.org/list/litestep.php
> Get the LS FAQ: http://lsfaq.shellfront.org
>
>
---------------------------------------------------------------------
Can't Unsubscribe? Check http://desktopian.org/listunsub.html
LS List Homepage: http://wuzzle.org/list/litestep.php
Get the LS FAQ: http://lsfaq.shellfront.org