home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PSION CD 2
/
PsionCDVol2.iso
/
Programs
/
376
/
Appinfo-opxSIS.sis
(
.txt
)
< prev
next >
Wrap
EPOC Installation Package
|
2001-10-22
|
24KB
|
344 lines
E:\Psioncd2work\Psioncd2\Sistemp\AppInfoTest.opl!:\PsionCD\Appinfo-opx\AppInfoTest.oplE:\Psioncd2work\Psioncd2\Sistemp\AppInfo-Readme!:\PsionCD\Appinfo-opx\AppInfo-ReadmeE:\Psioncd2work\Psioncd2\Sistemp\Appinfo_wins.opx!:\PsionCD\Appinfo-opx\Appinfo_wins.opxE:\Psioncd2work\Psioncd2\Sistemp\AppInfo.txh!:\PsionCD\Appinfo-opx\AppInfo.txhE:\Psioncd2work\Psioncd2\Sistemp\AppInfo.oxh!:\PsionCD\Appinfo-opx\AppInfo.oxhE:\Psioncd2work\Psioncd2\Sistemp\AppInfo.oxh!:\PsionCD\Appinfo-opx\AppInfo.sisE:\Psioncd2work\Psioncd2\Sistemp\appinfo.SISE:\Psioncd2work\Psioncd2\Sistemp\Bis.txt!:\PsionCD\Appinfo-opxSIS\Bis.txtAppinfo-opxSIS 20.1 kB7
include "AppInfo.oxh"
PROC main:
local aifFile$(255)
local iconFile$(255)
local size&
local hidden&,newfile&,embed&
rem extract icons from an aif file
busy "Extracting icons"
aifFile$="z:\system\apps\Comms\Comms.aif"
size&=48
iconFile$="c:\System\Temp\icon"
AppExtractAifIcon:(aifFile$, 16, 0, iconFile$+"16")
AppExtractAifIcon:(aifFile$, 24, 0, iconFile$+"24")
AppExtractAifIcon:(aifFile$, 32, 0, iconFile$+"32")
AppExtractAifIcon:(aifFile$, 48, 0, iconFile$+"48")
busy off
rem display icons
showmbm:(iconFile$+"16",0)
showmbm:(iconFile$+"24",20)
showmbm:(iconFile$+"32",48)
showmbm:(iconFile$+"48",100)
rem scan for apps
busy "Scanning..."
AppUpdate:
busy off
AppStartScan:
while AppNext:
cls
gcls
print AppFileName$:
print AppCaption$:
AppCapability:(hidden&,newfile&,embed&)
if hidden&
print "App is hidden"
endif
if embed&=1
print "App supports embed"
elseif embed&=2
print "App supports embed only"
endif
AppExtractIcon:(2, 0, iconFile$)
showmbm:(iconFile$,300)
get
endwh
print "Done"
PROC showmbm:(name$,x%)
local id%,w%,h%
id%=gloadbit(name$)
w%=gwidth
h%=gheight
guse 1
gat x%,0
gcopy id%,0,0,w%,h%,0
gclose id%
*TextEd.app
Times New Roman
&Heading 1L
&Heading 2L
&Heading 3L
.Bullet listO
Swiss
EBAPPINFO.OPX Version 1.20
Copyright 1998-1999 Twiddlebit Software
All rights reserved
CONTACT
-------
Note that this OPX is provided on an "as is" basis with no guarantee
of support.
For the latest version see the following www page:
http://www.twiddlebit.com
NOTE: the WINS version (appinfo_wins.opx) is for use with the ER5 emulator
or the release variant of the ER3 emulator. It will not work on the debug
variant of the ER3 emulator.
INTRODUCTION
------------
AppInfo.OPX provides information about applications installed on an
EPOC32 machine. This information includes:
- filenames for the .app file
- caption names in the current language
- application capabilities (hidden, embedability, support for new file)
- icons
The OPX will scan all drives starting at y: down to a: and then z: for
apps. For performance reasons the data it gathers will be cached in memory.
There is a function which allows this cached data to be refreshed as needed.
EXTRACTING ICONS FROM AN AIF FILE
---------------------------------
Given an AIF file use the following function to extract an icon from
the file:
AppExtractAifIcon:(aifFile$, iconSize&, iconType&, iconFile$)
aifFile$ = full filename for aif file
iconSize& = 16, 24, 32, 48,...
iconType& = 0 for the normal icon, 1 for the mask icon
iconFile$ = full filename for icon mbm file to be created
NOTE: see also the function AppExtractIcon:() which uses cached data.
SCANNING FOR APPS
-----------------
The first thing that you need to do is to tell the OPX to scan for all
the apps. This is done using:
AppUpdate:
This only needs to be done once, the info will then be cached.
To rescan the disks for new/deleted apps use the AppUpdate: function again.
This will return 1 if any changes were detected.
To scan the list of cached apps use the following type of code:
AppStartScan:
WHILE AppNext:
REM add your code here
ENDWH
When using AppNext: the OPX maintains a pointer to the current app info.
Information about this app can be obtained using the following functions:
AppFileName$:
The full filename for the app
AppName$:
The name of the app file (without path or extension)
AppUID&:
The UID for the app
AppCaption$:
The name of the app in the current language
AppCapability:(BYREF hidden&, BYREF newFile&, BYREF embed&)
This sets the supplied parameters as follows:
hidden& = 1 if the app is marked as hidden
newFile& = 1 if the app supports the system->new file command
embed& = 0 if the app does not support embedding
= 1 if the app supports embedding
= 2 if the app supports embedding only
You can also obtain one of the 3 icons for the app using this
function:
AppExtractIcon:(iconIndex&, iconType&, iconFile$)
iconIndex$ = 0, 1 or 2 (0 for the smallest icon)
iconType& = 0 for the normal icon, 1 for the mask icon
iconFile$ = full filename for icon mbm file to be created
SIMULATING EVENTS
-----------------
AppInfo.OPX also allows the simulation of any type of event,
including keypress and pointer events using:
AppSimulateEvent&:(type&,param1&,param2&)
Constants for the value of type& are defined in the appinfo.oxh file
as follows. The type governs the meaning of param1 and param2 as
follows:
TYPE PARAM1 PARAM2
KAppEvNone& - -
KAppEvPointerSwitchOn& - -
KAppEvRedraw& - -
KAppEvSwitchOn& - -
KAppEvActive& - -
KAppEvInactive& - -
KAppEvUpdateModifiers& - -
KAppEvSwitchOff& - -
KAppEvKeyDown& key scan code -
KAppEvKeyUp& key scan code -
KAppEvPointerMove& x coord y coord
KAppEvButton1Down& x coord y coord
KAppEvButton1Up& x coord y coord
KAppEvButton2Down& x coord y coord
KAppEvButton2Up& x coord y coord
KAppEvButton3Down& x coord y coord
KAppEvButton4Up& x coord y coord
Note that the event will be sent to whatever app happens to be
in the foreground or has keyboard focus.
OPX FUNCTION SUMMARY
--------------------
AppExtractAifIcon:(aifFile$, iconSize&, iconType&, iconFile$)
AppUpdate:
AppStartScan:
AppNext:
AppName$:
AppUID&:
AppFileName$:
AppCaption$:
AppCapability:(BYREF hidden&, BYREF newFile&, BYREF embed&)
AppExtractIcon:(iconIndex&, iconType&, iconFile$)
AppSimulateEvent&:(type&,param1&,param2&)
Courier
Courier
"word.app
!This program cannot be run in DOS mode.
.text
`.rdata
@.data
.idata
.E32_UID
.reloc
tVHt%Ht
9s0t[Wj
APPINFO.OPX
EUSER.DLL
APFILE.DLL
APGRFX.DLL
EFSRV.DLL
FBSCLI.DLL
WS32.DLL
OPLR.DLL
0)0<0M0R0
7 7$7(7,7
8$8*80868<8B8H8N8T8Z8`8f8l8r8x8~8
REM ===========================================
REM APPINFO.OXH version 1.20
REM Header File for APPINFO.OPX
REM Copyright (C) 1998-1999 Twiddlebit Software
REM ===========================================
CONST KUidOpxAppInfo&=&10000546
CONST KOpxAppInfoVersion%=$120
CONST KAppEvNone& =0
CONST KAppEvPointerMove& =1
CONST KAppEvPointerSwitchOn& =2
CONST KAppEvKeyDown& =3
CONST KAppEvKeyUp& =4
CONST KAppEvRedraw& =5
CONST KAppEvSwitchOn& =6
CONST KAppEvActive& =7
CONST KAppEvInactive& =8
CONST KAppEvUpdateModifiers& =9
CONST KAppEvButton1Down& =10
CONST KAppEvButton1Up& =11
CONST KAppEvButton2Down& =12
CONST KAppEvButton2Up& =13
CONST KAppEvButton3Down& =14
CONST KAppEvButton4Up& =15
CONST KAppEvSwitchOff& =16
DECLARE OPX APPINFO,KUidOpxAppInfo&,KOpxAppInfoVersion%
AppExtractAifIcon:(aifFile$, iconSize&, iconType&, iconFile$) : 1
AppUpdate: : 2
AppStartScan: : 3
AppNext: : 4
AppFileName$: : 5
AppCaption$: : 6
AppCapability:(BYREF hidden&, BYREF newFile&, BYREF embed&) : 7
AppExtractIcon:(iconIndex&, iconType&, iconFile$) : 8
AppName$: : 9
AppUID&: : 10
AppSimulateEvent:(type&,param1&,param2&) : 11
END DECLARE
REM ===========================================
REM APPINFO.OXH version 1.20
REM Header File for APPINFO.OPX
REM Copyright (C) 1998-1999 Twiddlebit Software
REM ===========================================
CONST KUidOpxAppInfo&=&10000546
CONST KOpxAppInfoVersion%=$120
REM The following are the event types recognised
REM by AppSimulateEvent:()
CONST KAppEvNone& =0
CONST KAppEvPointerMove& =1
CONST KAppEvPointerSwitchOn&=2
CONST KAppEvKeyDown& =3
CONST KAppEvKeyUp& =4
CONST KAppEvRedraw& =5
CONST KAppEvSwitchOn& =6
CONST KAppEvActive& =7
CONST KAppEvInactive& =8
CONST KAppEvUpdateModifiers&=9
CONST KAppEvButton1Down& =10
CONST KAppEvButton1Up& =11
CONST KAppEvButton2Down& =12
CONST KAppEvButton2Up& =13
CONST KAppEvButton3Down& =14
CONST KAppEvButton4Up& =15
CONST KAppEvSwitchOff& =16
DECLARE OPX APPINFO,KUidOpxAppInfo&,KOpxAppInfoVersion%
AppExtractAifIcon:(aifFile$, iconSize&, iconType&, iconFile$) : 1
AppUpdate: : 2
AppStartScan: : 3
AppNext: : 4
AppFileName$: : 5
AppCaption$: : 6
AppCapability:(BYREF hidden&, BYREF newFile&, BYREF embed&) : 7
AppExtractIcon:(iconIndex&, iconType&, iconFile$) : 8
AppName$: : 9
AppUID&: : 10
AppSimulateEvent:(type&,param1&,param2&) : 11
END DECLARE
*texted.app
REM ===========================================
REM APPINFO.OXH version 1.20
REM Header File for APPINFO.OPX
REM Copyright (C) 1998-1999 Twiddlebit Software
REM ===========================================
CONST KUidOpxAppInfo&=&10000546
CONST KOpxAppInfoVersion%=$120
REM The following are the event types recognised
REM by AppSimulateEvent:()
CONST KAppEvNone& =0
CONST KAppEvPointerMove& =1
CONST KAppEvPointerSwitchOn&=2
CONST KAppEvKeyDown& =3
CONST KAppEvKeyUp& =4
CONST KAppEvRedraw& =5
CONST KAppEvSwitchOn& =6
CONST KAppEvActive& =7
CONST KAppEvInactive& =8
CONST KAppEvUpdateModifiers&=9
CONST KAppEvButton1Down& =10
CONST KAppEvButton1Up& =11
CONST KAppEvButton2Down& =12
CONST KAppEvButton2Up& =13
CONST KAppEvButton3Down& =14
CONST KAppEvButton4Up& =15
CONST KAppEvSwitchOff& =16
DECLARE OPX APPINFO,KUidOpxAppInfo&,KOpxAppInfoVersion%
AppExtractAifIcon:(aifFile$, iconSize&, iconType&, iconFile$) : 1
AppUpdate: : 2
AppStartScan: : 3
AppNext: : 4
AppFileName$: : 5
AppCaption$: : 6
AppCapability:(BYREF hidden&, BYREF newFile&, BYREF embed&) : 7
AppExtractIcon:(iconIndex&, iconType&, iconFile$) : 8
AppName$: : 9
AppUID&: : 10
AppSimulateEvent:(type&,param1&,param2&) : 11
END DECLARE
*texted.app
AppInfo.opx!:\System\Opx\AppInfo.opxAppInfo OPXy
euser[100000C1].dll
OPLR[10000077].dll
APFILE[1000013f].dll
APGRFX[1000011b].dll
EFSRV[100000BD].dll
FBSCLI[10000176].dll
ws32[1000017d].dll
0 040H0X0d0p0|0
7l8x8
9 9,989D9P9\9h9t9
:(:4:@:L:X:d:p:|:
;$;4<8<D<H<L<
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 Series 5.
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 Serie 5.
Viel Spa