Results 1 to 6 of 6

Thread: Power.BatteryLifePercent

  1. #1
    Join Date
    Apr 2004
    Posts
    292

    Default Power.BatteryLifePercent

    What plugin generates the Power.BatteryLifePercent variable? I can't seem to register for callbacks on it anymore and thought maybe I had to link it to a plugin using RegisterVariableWatch( "Power.BatteryLifePercent", NetRemote.GetPlugin( "???" ) )

  2. #2
    Join Date
    May 2002
    Location
    CT
    Posts
    6,559

    Default

    This is part of the NetRemote "core", but only on PPC, not Windows.

    Does it have a value when you display it?

  3. #3
    Join Date
    Apr 2004
    Posts
    292

    Default

    If I create a button that just shows the value, it shows up fine. But I don't seem to get the callbacks anymore that it has changed. So I can update the image.

  4. #4
    Join Date
    May 2002
    Location
    CT
    Posts
    6,559

    Default

    If the value changes in the displayed value, then it should call your watcher. Can you show the full code you're using here to register for the callback?

  5. #5
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    By the way you should be using NetRemote.RegisterVariableWatch, not just RegisterVariableWatch
    --Rob

  6. #6
    Join Date
    Apr 2004
    Posts
    292

    Default

    Thanks Rob, that's what the problem was. It seem RegisterVariableWatch works for XP, but not PPC. NetRemote.RegisterVariableWatch works for both.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •