home *** CD-ROM | disk | FTP | other *** search
EPOC OPL Source | 2000-10-17 | 1.9 KB | 81 lines |
-
-
- REM Macro RunExtras version 1.05
- REM Run programs in the Extras bar without the pen
- REM By Pascal NICOLAS, to be used with Macro5
- REM Last edited on 21 September 1999
-
- Const KMaxApps%=100
- Const KMaxName%=30
-
- PROC Macro:
- Local Extras$(KMaxApps%,KMaxName%),Name$(KMaxName%),File$(255),c%,d%,m%
-
- dInit "Extras"
-
- REM Extras in Z:
- If RomVersion%: < 105
- dChoice m%,"","Bombs,Comms,Progam,Record,..."
- Extras$(1)="Bombs"
- Extras$(2)="Comms"
- Extras$(3)="TextEd"
- Extras$(4)="Record"
- Extras$(5)="Spell"
- m%=5
- Else
- dChoice m%,"","Bombs,Comms,Data,Progam,Record,Sketch,Spell,..."
- Extras$(1)="Bombs"
- Extras$(2)="Comms"
- Extras$(3)="Data"
- Extras$(4)="TextEd"
- Extras$(5)="Record"
- Extras$(6)="Sketch"
- Extras$(7)="Spell"
- Extras$(8)="Time"
- m%=8
- Endif
-
- REM Extras in C:
- c%=m%
- File$=Dir$("c:\System\Apps\")
- While File$ <> "" and m% < KMaxApps%
- Name$=Mid$(File$,16,255)
- If Exist(File$+"\"+Name$+".app")
- dChoice m%,"",Extras$(m%)+",..."
- m%=m%+1
- Extras$(m%)=Name$
- Endif
- File$=Dir$("")
- EndWh
-
- REM Extras in D:
- d%=m%
- If Exist("d:\System\Apps\")
- File$=Dir$("d:\System\Apps\")
- While File$ <> "" and m% < KMaxApps%
- Name$=Mid$(File$,16,255)
- If Exist(File$+"\"+Name$+".app")
- dChoice m%,"",Extras$(m%)+",..."
- m%=m%+1
- Extras$(m%)=Name$
- Endif
- File$=Dir$("")
- EndWh
- Endif
-
- dChoice m%,"",Extras$(m%)
-
- REM Display the list and run the selected app
- If Dialog
- If m% > d%
- FgApp%:("d:\System\Apps\"+Extras$(m%)+"\"+Extras$(m%)+".app")
- Elseif m% > c%
- FgApp%:("c:\System\Apps\"+Extras$(m%)+"\"+Extras$(m%)+".app")
- Else
- FgApp%:("z:\System\Apps\"+Extras$(m%)+"\"+Extras$(m%)+".app")
- Endif
- Endif
- ENDP
-
-
-