Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Battery Power

  
  1. #1
    Sqez is offline -Hacks Newbie
    Join Date
    Aug 2005
    Location
    In the kitchen, boiling societ
    Posts
    3
    Rep Power
    0

    Default

    Whats a script that shows the current battery status?


  2. #2
    Joe88's Avatar
    Joe88 is offline -Hacks Titan
    Join Date
    Jun 2005
    Location
    NYC
    Posts
    12,704
    Rep Power
    29

    Default

    ???:?
    You can go ito the system settings and look at how much battery % you have left.

    ________________________________


    PSP Guide to Everything !!!
    http://www.psp-hacks.com/forums/view...light=complete

  3. #3
    Sqez is offline -Hacks Newbie
    Join Date
    Aug 2005
    Location
    In the kitchen, boiling societ
    Posts
    3
    Rep Power
    0

    Default

    Like, when you're using PSPWindowsv2 you see the battery power status in the taskbar.

    I mean during a LUA Game.

  4. #4
    MaHan05 is offline Senior Member -Hacks Guru
    Join Date
    Jul 2005
    Location
    MiChIgAn
    Posts
    1,734
    Rep Power
    16

    Default

    he means for when making a game in lus you can display the battery power that is left on the screen.....i think PSPLots has it in a lua game...you might be able to steal it out of his...lol

  5. #5
    Sqez is offline -Hacks Newbie
    Join Date
    Aug 2005
    Location
    In the kitchen, boiling societ
    Posts
    3
    Rep Power
    0

    Default

    Ok thanks.

  6. #6
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Battery functions:

    Bool System.powerIsPowerOnline()
    Bool System.powerIsBatteryExist()
    Bool System.powerIsBatteryCharging()
    Number System.powerGetBatteryChargingStatus()
    Bool System.powerIsLowBattery()
    Number System.powerGetBatteryLifePercent()
    Number System.powerGetBatteryLifeTime()
    Number System.powerGetBatteryTemp()
    Number System.powerGetBatteryVolt()
    Oldest psp-hacks member ever.

  7. #7
    Master Inuyasha is offline -Hacks Neophyte
    Join Date
    Jul 2005
    Posts
    82
    Rep Power
    15

    Default

    does that work? And can the percent be put in a certain place?
    Actually, just tested it, doesnt work, sorry to say!

  8. #8
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    I just copied that from the luaplayer documentation.
    I've never actually used the functions, so you'll have to experiment :P
    Or wait for someone else to post. (but the first is more fun! :) )
    Oldest psp-hacks member ever.

  9. #9
    Master Inuyasha is offline -Hacks Neophyte
    Join Date
    Jul 2005
    Posts
    82
    Rep Power
    15

    Default

    i experimented, fun, but not very, i not much of a lua coder, im a beginner, but i cant wait until i learn it all (heh)

  10. #10
    modsyn is offline -Hacks Guru
    Join Date
    Aug 2005
    Location
    Shinigami Kurosaki Ichigo!
    Posts
    2,475
    Rep Power
    17

    Default

    if you don't know how to code very well, trying to code a game is going to
    be a very, very troubling ordeal. but i guess you'll soon find that out for
    certain.

    and experimenting on your own is the most fun of programming. if you never
    do anything on your own then you're just reproducing code. and that gets
    pretty old.

    oh, and good luck with learning to program.
    jMEnc Guide, jMEnc2 page - by the way, you smell nice

Page 1 of 2 1 2 LastLast

Posting Permissions

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