PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Signatures
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SysStandby (Function)
In French: SysMiseEnVeille
Used to:
  • Windows Mobile find out and modify the amount of idle time before standby.
  • AndroidiPhone/iPadWindows Mobile enable and disable the standby mode.
    AndroidiPhone/iPad Note: The configuration of the standby mode is specific to the application:
    • when the application is ended, the initial setting is restored.
    • when the application moves into background, the initial setting is restored. When the application moves into foreground, the setting of the standby mode is restored.
  • Universal Windows 10 App displaying the system screen used to configure the standby mode.
Versions 18 and later
Android This function is now available for the Android applications.
New in version 18
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Windows Mobile
// Find out the amount of idle time
Info("The amount of idle time is " + SysStandby(sysBattery)/60 + ...
" minutes when the Mobile Device is powered by battery")
Info("The amount of idle time is " + SysStandby(sysMainsPower)/60 + ...
" minutes when the Mobile Device is powered by the mains")
WINDEV MobileWindows Mobile
// Enables the standby mode
SysStandby(sysBattery, SysStandby(sysBattery))
Versions 18 and later
WINDEV MobileAndroidiPhone/iPad
// Enables the standby mode
SysStandby(sysBattery, sysStandbyActive)
New in version 18
WINDEV MobileAndroidiPhone/iPad
// Enables the standby mode
SysStandby(sysBattery, sysStandbyActive)
WINDEV MobileAndroidiPhone/iPad
// Enables the standby mode
SysStandby(sysBattery, sysStandbyActive)
Syntax
Windows Mobile

Finding out the amount of idle time before the Mobile Device (Pocket PC) switches to standby mode Hide the details

<Result> = SysStandby(<Power Mode>)
<Result>: Integer
Amount of idle time before the Mobile device (Pocket PC) switches to standby mode.
<Power Mode>: Integer constant
Power mode of the Mobile device (Pocket PC):
sysBatteryMobile device (Pocket PC) powered by battery.
sysMainsPowerMobile device (Pocket PC) powered by the mains.
Windows Mobile

Modifying the amount of idle time before the Mobile device (Pocket PC) switches to standby mode and/or enabling the standby mode Hide the details

<Result> = SysStandby(<Power Mode> , <Amount of Idle Time>)
<Result>: Integer
Former amount of idle time before the Mobile device (Pocket PC) switches to standby mode.
<Power Mode>: Integer constant
Power mode of the Mobile device (Pocket PC):
sysBatteryMobile device (Pocket PC) powered by battery.
sysMainsPowerMobile device (Pocket PC) powered by the mains.
<Amount of Idle Time>: Integer
New amount of idle time before the Mobile device (Pocket PC) switches to standby mode.
The standby mode is automatically enabled when the amount of idle time is modified.
Windows Mobile

Disabling the standby mode Hide the details

<Result> = SysStandby(<Power Mode> , <sysStandbyInactive>)
<Result>: Integer
Former amount of idle time before the Mobile device (Pocket PC) switches to standby mode.
<Power Mode>: Integer constant
Power mode of the Mobile device (Pocket PC):
sysBatteryMobile device (Pocket PC) powered by battery.
sysMainsPowerMobile device (Pocket PC) powered by the mains.
<sysStandbyInactive>: Constant
sysStandbyInactive: Constant used to disable the standby mode for the Mobile device (Pocket PC).
Versions 18 and later
WINDEV MobileAndroidiPhone/iPad

Enabling/Disabling the standby mode Hide the details

SysStandby(<Power Mode> , <Standby>)
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be modified:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
iPhone/iPad This parameter is ignored. The standby mode is applied both to the battery and to the mains.
<Standby>: Integer constant
Enable or disable the standby mode:
sysStandbyActiveEnable the standby mode. The amount of idle time before switching to standby mode depends on the system settings.
sysStandbyInactiveDisable the standby mode when the application moves into foreground.
New in version 18
WINDEV MobileAndroidiPhone/iPad

Enabling/Disabling the standby mode Hide the details

SysStandby(<Power Mode> , <Standby>)
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be modified:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
iPhone/iPad This parameter is ignored. The standby mode is applied both to the battery and to the mains.
<Standby>: Integer constant
Enable or disable the standby mode:
sysStandbyActiveEnable the standby mode. The amount of idle time before switching to standby mode depends on the system settings.
sysStandbyInactiveDisable the standby mode when the application moves into foreground.
WINDEV MobileAndroidiPhone/iPad

Enabling/Disabling the standby mode Hide the details

SysStandby(<Power Mode> , <Standby>)
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be modified:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
iPhone/iPad This parameter is ignored. The standby mode is applied both to the battery and to the mains.
<Standby>: Integer constant
Enable or disable the standby mode:
sysStandbyActiveEnable the standby mode. The amount of idle time before switching to standby mode depends on the system settings.
sysStandbyInactiveDisable the standby mode when the application moves into foreground.
Versions 20 and later
iPhone/iPad

Finding out the standby mode Hide the details

<Result> = SysStandby(<Power Mode>)
<Result>: Boolean
  • True if the standby mode is enabled,
  • False otherwise.
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be known:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
This parameter is ignored. The standby mode is applied both to the battery and to the mains.
New in version 20
iPhone/iPad

Finding out the standby mode Hide the details

<Result> = SysStandby(<Power Mode>)
<Result>: Boolean
  • True if the standby mode is enabled,
  • False otherwise.
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be known:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
This parameter is ignored. The standby mode is applied both to the battery and to the mains.
iPhone/iPad

Finding out the standby mode Hide the details

<Result> = SysStandby(<Power Mode>)
<Result>: Boolean
  • True if the standby mode is enabled,
  • False otherwise.
<Power Mode>: Integer constant
Power mode for which the management of the standby mode must be known:
sysBatteryManage the standby mode when the device is powered by the battery.
sysMainsPowerManage the standby mode when the device is powered via the mains.
This parameter is ignored. The standby mode is applied both to the battery and to the mains.
Versions 22 and later
Universal Windows 10 App

Displaying the system screen used to configure the standby mode Hide the details

<Result> = SysStandby()
<Result>: Boolean
  • True if the screen for configuring the standby mode is displayed,
  • False otherwise.
New in version 22
Universal Windows 10 App

Displaying the system screen used to configure the standby mode Hide the details

<Result> = SysStandby()
<Result>: Boolean
  • True if the screen for configuring the standby mode is displayed,
  • False otherwise.
Universal Windows 10 App

Displaying the system screen used to configure the standby mode Hide the details

<Result> = SysStandby()
<Result>: Boolean
  • True if the screen for configuring the standby mode is displayed,
  • False otherwise.
Remarks
Windows Mobile

Signatures

Caution: To use this function, the executable as well as the framework DLLs must be signed.
Related Examples:
The System functions Unit examples (WINDEV Mobile): The System functions
[ + ] Using the WLanguage "System" functions available in WINDEV Mobile:
- SysShutdown associated with the sysReboot, sysPoweroff, sysPoweronScreen and sysPoweroffScreen constants.
- SysDirStorageCard that is used to retrieve the path of the storage card
- SysSpace that is used to retrieve the sizes of spaces (storage and program, total and free)
- SysSerialNum that is used to retrieve the serial number of the device
Components
Windows Mobile wp230std.dll
Android wd230android.jar
See also
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment