home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PSION CD 2
/
PsionCDVol2.iso
/
Programs
/
304
/
Batterie.sis
(
.txt
)
next >
Wrap
EPOC Installation Package
|
2000-10-06
|
21KB
|
359 lines
C:\Sistemp\SystInfo.oxh!:\System\Apps\Opl\SystInfo.oxhC:\Sistemp\Systinfo.opx!:\System\Opx\Systinfo.opxC:\Sistemp\Batterie.opo!:\Psion5CD1\Batterie\Batterie.opoC:\Sistemp\Batterie!:\Psion5CD1\Batterie\BatterieC:\Sistemp\Bis.txt!:\Psion5CD1\Batterie\Bis.txtBatterie 19.5 kB7
E"rem SYSTINFO.OXH version 3.00
rem Header File for SYSTINFO.OPX
rem Copyright
Otfried Cheong 1998
rem See Readme.txt for conditions of use
CONST KOpxSystinfoUid&=&10000B90
CONST KOpxSystinfoVersion%=$300
DECLARE OPX SYSTINFO,KOpxSystinfoUid&,KOpxSystinfoVersion%
SISystemVisible&: : 1
SIHiddenVisible&: : 2
SICurrencyFormat$:(BYREF ndig&, BYREF neg&, BYREF space&, BYREF pos&, BYREF triad&) : 3
SIDateFormat:(BYREF format&, BYREF sep0%, BYREF sep1%, BYREF sep2%, BYREF sep3%) : 4
SITimeFormat:(BYREF format&, BYREF sep0%, BYREF sep1%, BYREF sep2%, BYREF sep3%, BYREF ampmSpace&, BYREF ampmPos&) : 5
SIUTCOffset&: : 6
SIWorkday%:(dayNo&) : 7
SIDaylightSaving%:(where&) : 8
SIHomeCountry$: : 9
SIUnits:(BYREF general&, BYREF shortDistances&, BYREF longDistances&) : 10
SIIsDirectory&:(filename$) : 11
SIVolumeName$:(driveNo&) : 12
SIUniqueFilename$:(filename$) : 13
SIBookmark$: : 14
SIStandardFolder$: : 15
SIDisplayContrast&: : 16
SIOwner$: : 17
SIBatteryVolts:(BYREF mainVolt&, BYREF mainMax&, BYREF backVolt&, BYREF backMax&) : 18
SIBatteryCurrent:(BYREF curCons&, BYREF totalCons&, BYREF inUseTime&, BYREF extPwrTime&, BYREF extPwr&, battInserted&) : 19
SIMemory:(BYREF ram&, BYREF rom&, BYREF maxFreeRam&, BYREF freeRam&, BYREF ramDisk&) : 20
SIKeyClickEnabled%: : 21
SIKeyClickLoud%: : 22
SIKeyClickOverridden%: : 23
SIPointerClickEnabled%: : 24
SIPointerClickLoud%: : 25
SIBeepEnabled%: : 26
SIBeepLoud%: : 27
SISoundDriverEnabled%: : 28
SISoundDriverLoud%: : 29
SISoundEnabled%: : 30
SIAutoSwitchOffBehaviour&: : 31
SIAutoSwitchOffTime&: : 32
SIBacklightBehaviour&: : 33
SIBacklightOnTime&: : 34
SIDisplaySize:(BYREF x&, BYREF y&, BYREF inX&, BYREF inY&, BYREF physX&, BYREF physY&) : 35
SIKeyboardIndex&: : 36
SILanguageIndex&: : 37
SIXYInputPresent%: : 38
SIKeyboardPresent%: : 39
SIMaximumColors&: : 40
SIProcessorClock&: : 41
SISpeedFactor&: : 42
SIMachine$: : 43
SIRemoteLinkStatus&: : 44
SIRemoteLinkDisable: : 45
SIIsPathVisible&:(path$): 46
SIRemoteLinkEnable: : 47
SIPWIsEnabled%: : 48
SIPWSetEnabled:(password$, enable%) : 49
SIPWIsValid%:(password$) : 50
SIPWSet:(oldPw$, newPw$) : 51
SILedSet:(onOff%) : 52
END DECLARE
*TextEd.app
c:\system\apps\shell\shell.ini
%-16S%-16S%-16S%-16S%-16S%-16S
euser[100000C1].dll
OPLR[10000077].dll
ESTOR[100000cf].dll
EFSRV[100000BD].dll
EALWL[10000173].dll
PLPSVR[1000011a].dll
APPARC[100000de].dll
0 040H0X0d0p0|0
6$787<7@7D7H7L7P7T7X7\7`7d7h7l7p7t7x7|7
9$909<9H9T9`9l9x9
: :,:8:D:P:\:h:t:
;(;4;@;L;X;d;p;|;
<$<0<<<H<T<`<l<x<
c:\OPL\Batterie
MAINVOLT&
MAINMAXVOLT&
BACKVOLT&
BACKMAXVOLT&
TOTAL&
INUSE&
EXTTIME&
EXTPOWER&
DTIME&
DRAWINIT
GETDATA
PRINTHEADER
CALCZ
CALCV
MARKER
RAUTE
VCHECK
SLEEP
O<{UW
C:\SYSTEM\Data\Batterie.MBMW
C:\SYSTEM\Data\Batterie.MBM
C:\SYSTEM\Data\Batterie.MBM
CALCZ
CALCV
C:\SYSTEM\Data\Batterie.MBMW
C:\SYSTEM\Data\Batterie.MBMW(
Batterie V1.22
O<|VO
DTIME&
MAINVOLT&
MAINMAXVOLT&
BACKVOLT&
BACKMAXVOLT&
TOTAL&
INUSE&
EXTTIME&
EXTPOWER&
|NRWBMx
|NRWBIx
MAINVOLT&
TOTAL&
EXTPOWER&
BACKVOLT&
MAINVOLT&
+#Batterie austauschen! EPOC-Warnung
Batterie austauschen! +
EPOC-Warnung
+'Batterie austauschen! BATTERIE-Warnung
Batterie austauschen! +
BATTERIE-Warnung
MAIN$
DRAWINIT
GETDATAc
CALCV8
CALCZ
PRINTHEADER
SLEEP
VCHECKJ
MARKER
RAUTE
SYSTEM\
DATEZ
SYSTINFO
!RREM Batteriespannungskontrolle
REM 28.03.98, R.Kr
ger, Troisdorf
REM home.t-online.de/home/ralf_krueger
REM RK@bigfoot.de
INCLUDE "z:\system\opl\Const.oph"
INCLUDE "z:\system\opl\System.oxh"
INCLUDE "z:\system\opl\Date.oxh"
INCLUDE "c:\system\opl\SystInfo.oxh"
CONST PName$ = "Batterie V1.22"
CONST MBMSave$ = "C:\SYSTEM\Data\Batterie.MBM"
CONST LowBatt& = 2300 :REM Warnpegel 2,3V
CONST Increment% = 6 :REM Alle 6 *10 Sekunden messen
CONST RandOben% = 30 :REM Rand oben
CONST RandUnten% = 20 :REM Rand unten
CONST RandLinks% = 30 :REM Rand links
CONST RandRechts% = 10 :REM Rand rechts
CONST VMin% = 2100 :REM Untere Skala 2,1V
CONST VMax% = 2700 :REM Obere Skala 2,7V
CONST ZMin% = 0 :REM Zeitskala links = 0 min
CONST ZMax% = 600 :REM Zeitskala rechts = 600 min = 10 Std
CONST ZIncr% = 30 :REM Zeitincrement 30 Minuten
CONST ZNk% = 1 :REM Nackommastellen f
r Zeit
PROC MAIN:
LOCAL x%, y%, yV%, xV%, tV%, key%
GLOBAL G_m%, G_t%
GLOBAL mainVolt&, mainMaxVolt&, backVolt&, backMaxVolt&
GLOBAL cur&, total&, inuse&, exttime&, extpower&, dtime&
Start::
rem gCLS
DrawInit:
xV% = 999
WHILE KTrue%
GetData:
PrintHeader:
x% = CalcZ:(FLT(inuse&/60))
y% = CalcV:(FLT(mainVolt&))
IF x% < xV%
xV% = x%
yV% = y%
tV% = G_t%
ENDIF
gAT xV%,yV%
gSETPENWIDTH 2
gCOLOR 0,0,0
gLINETO x%,y%
IF tV% <> G_t%
Marker:(FLT(x%),CalcV:(VMax%),Fix$(G_t%,0,2))
ENDIF
IF extpower& > 0
Raute:(FLT(x%), CalcV:(VMin%))
ENDIF
xV% = x%
yV% = y%
tV% = G_t%
VCheck:
Key% = Sleep:(Increment%)
IF Key% = 3
IF EXIST (MBMSave$)
DELETE MBMSave$
ENDIF
GOTO Start::
ELSEIF Key% = 5
gSAVEBIT MBMSave$
BREAK
ELSEIF Key% = 1
Marker:(FLT(x%),CalcV:(VMax%),Fix$(G_t%,0,2))
ENDIF
ENDWH
REM ==================================================
PROC DrawInit:
LOCAL x%, y%, id%
gCLS
IF EXIST (MBMSave$)
id% = gLOADBIT (MBMSave$)
gUSE 1
gCOPY id%,0,0,640,240,3
gCLOSE id%
ENDIF
gFONT KFontArialNormal18&
gSTYLE KgStyleNormal%
gAT 0,0 : gBOX 640,240
gAT 5,22 : gPRINT pname$
gFONT KFontArialNormal11&
gSTYLE KgStyleBold%
x% = ZMin%
gCOLOR 0,0,0
gSETPENWIDTH 1
gAT CalcZ:(FLT(x%)) - 10 , 235
gPRINT FIX$(FLT(x%)/60,ZNk%,4)
gCOLOR 128,128,128
gAT CalcZ:(FLT(x%)), 240 - RandUnten%
gLINEBY 0, -240 + RandUnten% + RandOben%
x% = x% + ZIncr%
UNTIL x% > ZMax%
gCOLOR 200,200,200
gSETPENWIDTH 5
gAT RandLinks%, CalcV:(FLT(LowBatt&))
gLINEBY 640 - RandLinks% - RandRechts%,0
gSETPENWIDTH 1
y% = VMin%
gCOLOR 0,0,0
gAT 5, CalcV:(FLT(y%)) + 5
gPRINT FIX$(FLT(y%)/1000,1,-3)
gCOLOR 128,128,128
gAT RandLinks%, CalcV:(FLT(y%))
gLINEBY 640 - RandLinks% - RandRechts%,0
y% = y% + 100
UNTIL y% > VMax%
REM ==================================================
PROC GetData:
dtime& = DTNow&:
SIBatteryVolts:(mainVolt&, mainMaxVolt&, backVolt&, backMaxVolt&)
SIBatteryCurrent:(cur&, total&, inuse&, exttime&, extpower&, dtime&)
G_t% = DTDAYSDIFF&:(dtime&,DTNow&:)
REM ==================================================
PROC CalcV:(v)
LOCAL VFaktor, Erg%
VFaktor = (240 - FLT(RandUnten%) - FLT(RandOben%)) / FLT((VMax%) - FLT(VMin%))
Erg% = 240 - RandUnten% - int(VFaktor * (v - VMin%))
RETURN Erg%
REM ==================================================
PROC CalcZ:(s)
LOCAL ZFaktor, Erg%
ZFaktor = (640 - FLT(RandLinks%) - FLT(RandRechts%)) / FLT((ZMax%) - FLT(ZMin%))
Erg% = RandLinks% + int(ZFaktor * (s - ZMin%))
RETURN Erg%
REM ==================================================
PROC PrintHeader:
LOCAL t$(20)
gFONT KFontArialNormal15&
gSTYLE KgStyleInverse%
gCOLOR 0,0,0
t$ = FIX$(FLT(mainVolt&)/1000,3,-5) + "V"
gAT 140, 20 : gPRINTB t$, 80, 3,2,2
t$ = FIX$(FLT(total&/3588),0,-5) + "mAh"
gAT 230, 20 : gPRINTB t$, 80, 3,2,2
IF extpower& = 0
t$ = "Batt"
ELSE
t$ = "Ext"
ENDIF
gAT 320, 20 : gPRINTB t$, 80, 3,2,2
t$ = FIX$(FLT(backVolt&)/1000,3,-5) + "V"
gAT 410, 20 : gPRINTB t$, 80, 3,2,2
gAT 500, 20 : gPRINTB mid$(DATIM$,16,8), 130, 3,2,2
REM ==================================================
PROC Sleep:(s%)
LOCAL c%, key%
c% = 0
PAUSE 20 * 10
Key% = KEY
IF Key% > 0
BREAK
ENDIF
c% = c% + 1
UNTIL c% = s%
RETURN Key%
REM ==================================================
PROC VCheck:
IF MAINBATTERYSTATUS&: < 3
G_m% = G_m% + 1
SETFOREGROUND:
BEEP 3,500
BUSY "Batterie austauschen! EPOC-Warnung "+FIX$(G_m%,0,3),1
ALERT("Batterie austauschen! ","EPOC-Warnung "+FIX$(G_m%,0,3))
SETBACKGROUND:
ELSEIF FLT(mainVolt&) < LowBatt&
G_m% = G_m% + 1
SETFOREGROUND:
BEEP 3,500
BUSY "Batterie austauschen! BATTERIE-Warnung "+FIX$(G_m%,0,3),1
ALERT("Batterie austauschen! ","BATTERIE-Warnung "+FIX$(G_m%,0,3))
SETBACKGROUND:
ELSE
BUSY OFF
G_m% = 0
ENDIF
REM ==================================================
PROC Marker:(x,y,t$)
gSETPENWIDTH 1
gCOLOR 0,0,0
gFONT KFontArialNormal11&
gSTYLE KgStyleBold% + KgStyleInverse%
gAT x, y
gLINEBY 0,25
gAT x-10, y+17
gPRINTB t$,20,3,1
REM ==================================================
PROC Raute:(x,y)
gAT x-4,y
gSETPENWIDTH 1
gLINEBY 4,-4
gLINEBY 4,4
gLINEBY -4,4
gLINEBY -4,-4
*TextEd.app
This SIS-file is designed by BISON Software.
Bison Software doesn't accept any liability
for the function of the programme to be installed.
Please pay attention to the comment in the
README file of the author.
Before installing this software please make
a B A C K U P of your Psion.
Have a lot of fun!
Diese SIS-Datei wurde von Bison Software erstellt.
Bison Software
bernimmt keinerlei Garantie f
r die
Funktion des zu installierenden Programmes.
Bitte beachten Sie die Hinweise in der
README Datei des Autors.
Bevor Sie das Programm installieren machen Sie
ein B A C K U P Ihres Psion.
Viel Spa