How to get some information of device?

Discussion in 'Questions (Windows Mobile)' started by cmailj, Apr 2, 2009.

  1. cmailj

    cmailj Member

    hello sir:

    I want to get some information of device:the battery level,,,etc.
    but I don't find any sub.
    the mrotscript have "current battery","free memory","total memory","systemversion"....
    basic4ppc haven't..?

    help me...:sign0085:
     
    Last edited: Apr 2, 2009
  2. ExcludeReality

    ExcludeReality Active Member Licensed User

    You can get all that information using the hardware library.
    Read the help file if you don't know how to use it.
    The Mortscript language has all the functions that Basic4PPC has, And for a while I've even suspected that Mortscript was written in Basic4PPC. It would be possible.
     
  3. cmailj

    cmailj Member

    thanks a lot for your reply.I don't find any more.the hardware.dll have:
    Reading the device id.
    - Preventing the back light from suspending.
    - Preventing the device from suspending.
    - Run an application at a certain time or after a certain event.
    - Send keystrokes to the focused control.
    - Catch the hardware buttons using HardKey object.
    - Finding all mounted storage cards.
    - Clipboard operations.
    - Finding the .Net version.
    - Managed memory operations.
    - Finding the path of special folders (like windows folder).
    - SIP (Soft Input Panel) hide / show event and SIP height.
    - ShowTodayScreen method which can help in creating background running applications.
    - ChangeInputMode - (Smartphones only) Changes the input mode.
    - Change Bluetooth mode.
    - Send windows messages to controls (device and desktop).

    but I don't find the "battery level"....
     
    Last edited: Apr 3, 2009
  4. pinoy_ako

    pinoy_ako Member Licensed User

    search for shared app "bateria"
     
  5. Firefox®

    Firefox® Member Licensed User

    How to get some information of device? Reply

    Even I need help to how to obtain certain information from the device.

    For the Battery status I solve with dzHW Library developed by Dimitris Zacharakis (thank he a lot for this).

    I need to obtain information about total memory and used for: Program, Storage and SD Memory, and also on the version of Windows.

    I know that a lot of information about the device harware status is stored in the registry, but I believe that in order to obtain updated information on the state of memory is required external library.

    I have not found informations about this in the forum.
    Any suggestions is appreciated.
    Thank
     
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. Firefox®

    Firefox® Member Licensed User

  8. Erel

    Erel Administrator Staff Member Licensed User

    It returns the amount of managed memory taken by your application. GC is .Net Garbage Collector. This number usually goes up until it reaches a certain level and then the GC frees unused memory and it jumps down.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice