home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / CDTools / Players / HippoPlayer / ARexx / -ARexx-Play.HiP next >
Text File  |  1996-03-11  |  22KB  |  798 lines

  1. /* HiP-ARexx-Play
  2.    (c) by Marcel Döring in 1995-1996
  3. */
  4.  
  5. IF ~SHOW('LIBRARIES','rexxreqtools.library') THEN DO
  6.    IF ~ADDLIB('rexxreqtools.library',0,-30,0) THEN DO
  7.          SAY 'No tritonrexx.library found !'
  8.          SAY 'Available on Aminet !'
  9.    EXIT(10)
  10.    END
  11. END
  12.  
  13.  
  14. Say 'RexxReqTools.library found'
  15.  
  16. IF ~SHOW('LIBRARIES','tritonrexx.library') THEN DO
  17.    IF ~ADDLIB('tritonrexx.library',10,-30,0) THEN DO
  18.       SAY 'No tritonrexx.library found !'
  19.       SAY 'Available on Aminet !'
  20.       EXIT(10)
  21.    END
  22. END
  23.  
  24. rtv=TritonRexxVersion()
  25.  
  26. Say 'TritonRexx.library v. 'rtv' found'
  27.  
  28. IF ~SHOW('LIBRARIES','rexxtricks.library') THEN DO
  29.    IF ~ADDLIB('rexxtricks.library',2,-30,0) THEN DO
  30.       SAY 'No Rexxtricks.library found !'
  31.       Say 'Available on Aminet !'
  32.       EXIT(10)
  33.     END
  34. END
  35.  
  36. Say 'RexxTricks.library found'
  37.  
  38. IF ~SHOW('LIBRARIES','rexxsupport.library') THEN DO
  39.    IF ~ADDLIB('rexxsupport.library',0,-30,0) THEN DO
  40.       SAY 'No Rexxsupport.library available '
  41.       EXIT(10)
  42.     END
  43. END
  44.  
  45. Say 'RexxSupport.library found'
  46.  
  47. kick = GETENV('Kickstart')
  48.  
  49. vewb = GETENV('Workbench')
  50.  
  51. lang = GETENV('Language')
  52.  
  53. Hippo='Work:Hippoplayer/HiP'
  54.  
  55. nohip=0
  56.  
  57. disbld=0
  58.  
  59. IF ~SHOWLIST('P','HIPPOPLAYER') THEN
  60. NoHip=1
  61.  
  62.  
  63. tv=TritonVersion()
  64.  
  65. SIGNAL ON break_c
  66. SIGNAL ON failure
  67. SIGNAL ON halt
  68. SIGNAL ON ioerr
  69. SIGNAL ON syntax
  70.  
  71. minimum = 0
  72. maximum = 64
  73. wert    = 64
  74.  
  75. bold='1b'x'[1m'
  76.  
  77. app = TR_CREATEAPP('TRCA_Name     Emergency-Break',
  78.                    'TRCA_LongName "Emergency-Break in scripts with errors"',
  79.                    'TRCA_Info     "Tries to shut everything down.."',
  80.                    'TRCA_Version  1.2',
  81.                    'TRCA_Release  1',
  82.                    'TRCA_Date     8.11.95',
  83.                    'TAG_END')
  84.  
  85. IF app ~= '00000000'x THEN DO
  86.  
  87. appname      = 'HiP-ARexx-Play'
  88. applongname  = 'HiP-ARexx-Play - (c)1995 by Marcel Doering'
  89. appinfo      = 'ARexx-Player using Hippoplayer'
  90. appversion   = '2.0'
  91. apprelease   = '2'
  92. appdate      = '11.3.1996'
  93.  
  94. clipname      = ' HiP-ARexx-Play '
  95. clipinfo      = ' ARexx-Player using Hippoplayer '
  96.  
  97. app = TR_CREATEAPP('TRCA_Name'     '"'appname'"',
  98.                    'TRCA_LongName' '"'applongname'"',
  99.                    'TRCA_Info'     '"'appinfo'"',
  100.                    'TRCA_Version'  '"'appversion'"',
  101.                    'TRCA_Release'  '"'apprelease'"',
  102.                    'TRCA_Date'     '"'appdate'"',
  103.                    'TAG_END')
  104.  
  105. IF NoHip=1 THEN
  106. notrunning = rtezrequest('Attention !'||'0a'x||'You have to start HiP if you want to use H.A.P. !','Okay','Attention !','rtez_flags=ezreqf_centertext','rtez_defaultresponse = 0',)
  107. ELSE
  108. NOP
  109.  
  110. SayVol = FALSE
  111. HelpBool = 0
  112.  
  113. windowtags =   WindowID(1),
  114.                QuickHelpOn(HelpBool),
  115.                WindowFlags(TRWI_Backfill TRBF_SHINE),
  116.                WindowBackFillFB,
  117.                WindowTitle(appname appversion),
  118.                  BeginMenu("Project"),
  119.                   MenuItem("A_About",10),
  120.                   MenuItem("History",15) ItemBarlabel,
  121.                   MenuItem("I_HiP-Status",11) ItemBarlabel,
  122.                   MenuItem("Y_Iconify",14) ItemBarlabel,
  123.                   MenuItemC("U_QuickHelp",103),
  124.                   MenuItemC("V_Print Volume",110) ItemBarlabel,
  125.                   MenuItem("Q_Quit HiP & H.A.P.",12),
  126.                   BeginMenu('H.A.P. Control'),
  127.                   MenuItem('L_Load & Play',1),
  128.                   MenuItem('D_Add module',7),
  129.                   MenuItem('P_Pause',2),
  130.                   MenuItem('>_Pattern >>',3),
  131.                   MenuItem('<_Pattern <<',4),
  132.                   MenuItem('Z_Zip',5),
  133.                   MenuItem('H_Hide',9),
  134.                   MenuItem('W_Samples Window',8),
  135.                   MenuItem('T_Status...',11),
  136.                   MenuItem('E_Eject',6),
  137.                      NamedFrameBox('Volume'),
  138.                      'VertGroupA',
  139.                      SliderGadget(0,maximum-minimum,wert+minimum,1),
  140.                      'HorizGroupA',
  141.                      'Space',
  142.                      'VertGroupA',
  143.                         'SpaceS',
  144.                         Button("Start HiP !",13) QuickHelp('Start HiP, using defined path'),
  145.                         Button("Load & Play",1) QuickHelp('Load & Play a module'),
  146.                         Button("Add module",7) QuickHelp('Add an module to the Mod-List of HiP'),
  147.                         Button("Pause",2) QuickHelp('Pause the module HiP is playing'),
  148.                         Button("Pattern >>",3) QuickHelp('Jump pattern forward of module'),
  149.                         Button("Pattern <<",4) QuickHelp('Jump pattern reverse of module'),
  150.                         Button("Zip",5) QuickHelp('Zip HiP-window'),
  151.                        'EndGroup',
  152.                        'VertGroupA',
  153.                        'SpaceS',
  154.                         Button("Hide",9) QuickHelp('Hide HiP-window'),
  155.                         Button("Samples Window",8) QuickHelp('Open samples window of HiP'),
  156.                         Button("Status...",11) QuickHelp('Get some informations'),
  157.                         Button("Eject",6) QuickHelp('Eject playing module'),
  158.                         Button("Quit HiP & H.A.P.",12) QuickHelp('Quit Hippoplayer & HiP-ARexx-Play'),
  159.                         Button("Iconify H.A.P.",14) QuickHelp('Iconify HiP-ARexx-Play'),
  160.                         Button("About...",10) QuickHelp('Guess what...'),
  161.                        'EndGroup',
  162.                        'Space',
  163.                      'EndGroup',
  164.                     'Space',
  165.                    'EndGroup',
  166.                    'Space',
  167.                  'EndProject'
  168.  
  169. app = TR_CREATEAPP('TRCA_Name Button')
  170.  
  171. IF app ~= '00000000'x THEN DO
  172.  
  173.    window = TR_OPENPROJECT(app,windowtags)
  174.  
  175.    IF window ~= '00000000'x THEN DO
  176.       ende = 0
  177.  
  178.       if nohip=1 then
  179.         if disbld=0 then
  180.         call dagads
  181.  
  182.       DO WHILE ende ~= 1
  183.          CALL TR_WAIT(app,'')
  184.  
  185.          DO WHILE TR_HANDLEMSG(app,'event')
  186.            IF event.trm_class = 'TRMS_NEWVALUE' THEN DO
  187.              SELECT
  188.               WHEN event.trm_id = 1 THEN DO
  189.               IF SayVol = TRUE THEN
  190.               SAY 'Volume:' event.trm_data
  191.  
  192.               ADDRESS 'HIPPOPLAYER'
  193.               VOLUME event.trm_data
  194.  
  195.               CALL TR_SETATTRIBUTE(window,2,'TRAT_Text',event.trm_data)
  196.               END
  197.  
  198.               WHEN event.trm_id = 103 THEN DO
  199.               nummer = TR_GETATTRIBUTE(window,103,'TRAT_VALUE')
  200.               CALL TR_SETATTRIBUTE(window,0,'TRWI_QuickHelp',nummer)
  201.               END
  202.  
  203.               WHEN event.trm_id = 110 THEN DO
  204.               number = TR_GETATTRIBUTE(window,110,'TRAT_VALUE')
  205.               IF number = 1 THEN
  206.               call enablepvol
  207.  
  208.               IF number = 0 THEN
  209.               call disablepvol
  210.               END
  211.  
  212.              OTHERWISE
  213.              NOP
  214.             END
  215.            END
  216.  
  217.             IF event.trm_class = 'TRMS_ACTION' THEN DO
  218.                SELECT
  219.                   WHEN event.trm_id = 1 THEN
  220.                      call playfile
  221.  
  222.                   WHEN event.trm_id = 2 THEN
  223.                       call pause
  224.  
  225.                   WHEN event.trm_id = 3 THEN
  226.                       call fwd
  227.  
  228.                   WHEN event.trm_id = 4 THEN
  229.                       call rwd
  230.  
  231.                   WHEN event.trm_id = 5 THEN
  232.                       call zip
  233.  
  234.                   WHEN event.trm_id = 6 THEN
  235.                       call eject
  236.  
  237.                   WHEN event.trm_id = 7 THEN
  238.                       call add
  239.  
  240.                   WHEN event.trm_id = 8 THEN
  241.                       call sampwind
  242.  
  243.                   WHEN event.trm_id = 9 THEN
  244.                       call hide
  245.  
  246.                   WHEN event.trm_id = 10 THEN
  247.                       call about
  248.  
  249.                   WHEN event.trm_id = 11 THEN
  250.                       call getinfos
  251.  
  252.                   WHEN event.trm_id = 12 THEN
  253.                       call quit
  254.  
  255.                   WHEN event.trm_id = 13 THEN
  256.                       call starthip
  257.  
  258.                   WHEN event.trm_id = 14 THEN
  259.                       call iconify
  260.  
  261.                   WHEN event.trm_id = 15 THEN
  262.                       call historee
  263.  
  264.                   OTHERWISE
  265.                      NOP
  266.                END
  267.             END
  268.  
  269.           IF event.trm_class = 'TRMS_CLOSEWINDOW' THEN
  270.              IF Iconified~=YO THEN
  271.               ende = 1
  272.              ELSE
  273.               CALL UnIconify
  274.          END
  275.       END
  276.  
  277.      CALL TR_CLOSEPROJECT(window)
  278.    END
  279.    CALL TR_DELETEAPP(app)
  280.    call cleanup
  281.    EXIT
  282. END
  283.  
  284. playfile:
  285. mainwindow    = '00000000'x
  286. ModFile = rtfilerequest('SYS:',,'Please choose a Module...',,'')
  287. Say ModFile
  288.   IF ModFile='' THEN
  289.   RETURN
  290. ADDRESS 'HIPPOPLAYER'
  291. PLAY ModFile
  292. RETURN
  293.  
  294. FWD:
  295. ADDRESS 'HIPPOPLAYER'
  296. FFWD
  297. RETURN
  298.  
  299. RWD:
  300. ADDRESS 'HIPPOPLAYER'
  301. REW
  302. RETURN
  303.  
  304. PAUSE:
  305. Dummy=No
  306. IF Dummy=No THEN DO
  307.     If STAT=YO THEN DO
  308.          ADDRESS 'HIPPOPLAYER'
  309.          'CONT'
  310.        STAT=NO
  311.     RETURN
  312. END
  313.  
  314. ADDRESS 'HIPPOPLAYER'
  315. 'STOP'
  316. STAT=YO
  317. RETURN
  318. END
  319.  
  320. Zip:
  321. Dummy2=No
  322. IF Dummy2=No THEN DO
  323.     IF STAT2=YO THEN DO
  324.          ADDRESS 'HIPPOPLAYER'
  325.          'ZIP 1'
  326.        STAT2=NO
  327.     RETURN
  328. END
  329.  
  330. ADDRESS 'HIPPOPLAYER'
  331. 'ZIP 0'
  332. STAT2=YO
  333. RETURN
  334. END
  335.  
  336. Eject:
  337. ADDRESS 'HIPPOPLAYER'
  338. 'EJECT'
  339. RETURN
  340. END
  341.  
  342. Add:
  343. if ende ~= 1 THEN DO
  344. mainwindow    = '00000000'x
  345. AddFile = rtfilerequest('SYS:',,'Please choose a Module...',,'')
  346.   If AddFile='' THEN
  347.   RETURN
  348. ADDRESS 'HIPPOPLAYER'
  349. ADD AddFile
  350. RETURN
  351.  
  352. Quit:
  353. ADDRESS 'HIPPOPLAYER'
  354. 'QUIT'
  355. CALL TR_DELETEAPP(app)
  356. call cleanup
  357. EXIT
  358.  
  359. sampwind:
  360. ADDRESS 'HIPPOPLAYER'
  361. Samples
  362. RETURN
  363. END
  364.  
  365. hide:
  366. Dummy3=No
  367. IF Dummy3=No THEN DO
  368.     IF STAT3=YO THEN DO
  369.          ADDRESS 'HIPPOPLAYER'
  370.          'HIDE 1'
  371.        STAT3=NO
  372.     RETURN
  373. END
  374.  
  375. ADDRESS 'HIPPOPLAYER'
  376. 'HIDE 0'
  377. STAT3=YO
  378. RETURN
  379. END
  380. EXIT
  381.  
  382. about:
  383.    CALL TR_AUTOREQUEST(app,window,PubScreenName('workbench'),
  384.          BeginRequester('About HiP-ARexx-Play (c) by Marcel Doering','TRWP_CENTERDISPLAY'),
  385.             'VertGroupA',
  386.                'Space',
  387.                'HorizSeparator',
  388.                'Space',
  389.                NamedSeparator('HiP-ARexx-Play'),
  390.                'Space',
  391.                CenteredText('Public Domain'),
  392.                'Space',
  393.                CenteredText('Version:'appversion),
  394.                'Space',
  395.                CenteredText('Date of Release:'appdate),
  396.                'Space',
  397.                CenteredText('(c) by Marcel Doering `95'),
  398.                'Space',
  399.                CenteredText('Contact me:'),
  400.                'Space',
  401.                CenteredText('DonDoringo@GURU.rhein-main.de'),
  402.                'Space',
  403.                'HorizSeparator',
  404.                'Space',
  405.                NamedSeparator('Libraries:'),
  406.                'Space',
  407.                CenteredText('Using Tritonrexx.library v.' rtv '(c) by Juergen Kohrmeyer.'),
  408.                'Space',
  409.                CenteredText('Using Triton.library v.' tv '(c) by Stefan Zeiger.'),
  410.                'Space',
  411.                CenteredText('Using RexxTricks.library (c) by Juergen Kohrmeyer.'),
  412.                'Space',
  413.                CenteredText('Using RexxSysLib, RexxReqTools & Rexxsupport.library'),
  414.                'Space',
  415.                'HorizSeparator',
  416.                'Space',
  417.             'EndGroup',
  418.             'BeginRequesterGads',
  419.             CenteredButtonRE('Okay',10000),
  420.          'EndRequester')
  421.  
  422.    CALL TR_AUTOREQUEST(app,window,PubScreenName('workbench'),
  423.          BeginRequester('About TriTon','TRWP_CENTERDISPLAY'),
  424.             'VertGroupA',
  425.                'Space',
  426.                'HorizSeparator',
  427.                'Space',
  428.                NamedSeparator('About TriTon:'),
  429.                'Space',
  430.                CenteredText('This application uses the Triton GUI creation system (c) by Stefan Zeiger'),
  431.                'Space',
  432.                'HorizSeparator',
  433.                'Space',
  434.                CenteredText('**********************************************'),
  435.                'Space',
  436.                'Space',
  437.                CenteredText('Triton'),
  438.                'Space',
  439.                'Space',
  440.                CenteredText('An object oriented GUI creation system.'),
  441.                'Space',
  442.                'Space',
  443.                CenteredText('Release 1.3'),
  444.                'Space',
  445.                'Space',
  446.                CenteredText('(c) 1993-1995 Stefan Zeiger'),
  447.                'Space',
  448.                'Space',
  449.                CenteredText('**********************************************'),
  450.                'Space',
  451.                'HorizSeparator',
  452.                'Space',
  453.             'EndGroup',
  454.             'BeginRequesterGads',
  455.             CenteredButtonRE('Important',10000),
  456.          'EndRequester')
  457.  RETURN
  458.  
  459. NotInit:
  460. CALL TR_EASYREQUEST(app,'ATTENTION !'||'0a'x||'HippoPlayer is not running,'||'0a'x||'You can start it from HiP-ARexx-Play or directly, but'||'0a'x||'Don`t use HiP-ARexx-Play`s other functions without HiP running !','I`ll do that','TREZ_LockProject' C2D(window) 'TAG_END')
  461. RETURN
  462. END
  463.  
  464. GetInfos:
  465. options results
  466.  
  467. address 'HIPPOPLAYER'
  468. get play
  469. if result == 1 then do
  470. play = "  HiP is playing  "
  471. end
  472. else do
  473. play = " HiP is not playing  "
  474. end
  475.  
  476. get name
  477. NAME = "  Loaded module: " result "  "
  478.  
  479. get fnam
  480. FNAM = "  Full name of the loaded module: " result "  "
  481.  
  482. get type
  483. TYPE = "  Type of the loaded module: " result "  "
  484.  
  485. get size
  486. SIZE = "  Size of the loaded module: " result "  "
  487.  
  488. get comm
  489. COMM = "  Filecomment for the loaded module: " result "  "
  490.  
  491. get curr
  492. CURR = "  Number of the loaded module: " result "  "
  493.  
  494. get csng
  495. CSNG = "  Current song: "result "  "
  496.  
  497. get nsng
  498. NSNG = "  Number of songs: " result "  "
  499.  
  500. get cspo
  501. CSPO = "  Current songposition: " result "  "
  502.  
  503. get mspo
  504. MSPO = "  Maximum songposition: " result "  "
  505.  
  506. get cfil
  507. CFIL = "  Chosen file number: " result "  "
  508.  
  509. get cnam
  510. CNAM = "  Chosen file name: " result "  "
  511.  
  512. get nfil
  513. NFIL = "  Files in list: " result "  "
  514.  
  515. get dura
  516. IF result == 0 then do
  517. DURT = "  Duration not available  "  "  "
  518. END
  519. ELSE DO
  520. DURT = "  Duration: " result "  "
  521. END
  522.  
  523. KIKK = "  Kickstart-version: " KICK "  "
  524.  
  525. WBVE = "  Workbench-version: " VEWB "  "
  526.  
  527. CITY = "  System-language: " LANG "  "
  528.  
  529. Parse Version arexx version cpu mpu video freq
  530.  
  531. REXV = "  ARexx version: " arexx version "  "
  532.  
  533. CPUV = "  CPU: " cpu "  "
  534.  
  535. FPUV = "  FPU: " mpu "  "
  536.  
  537. VIDV = "  Videomode:>> " video "  "
  538.  
  539. FRQV = "  VBL frequency: " freq "  "
  540.  
  541.    CALL TR_AUTOREQUEST(app,window,PubScreenName('workbench'),
  542.          BeginRequester('HiP-Status','TRWP_CENTERDISPLAY'),
  543.             'VertGroupA',
  544.                'Space',
  545.                NamedSeparator('HiP-Status'),
  546.                'Space',
  547.                CenteredText(PLAY),
  548.                'SpaceS',
  549.                TextN(NAME),
  550.                'SpaceS',
  551.                TextN(FNAM),
  552.                'SpaceS',
  553.                TextN(TYPE),
  554.                'SpaceS',
  555.                TextN(DURT),
  556.                'SpaceS',
  557.                TextN(SIZE),
  558.                'SpaceS',
  559.                TextN(COMM),
  560.                'SpaceS',
  561.                TextN(CURR),
  562.                'SpaceS',
  563.                TextN(CSNG),
  564.                'SpaceS',
  565.                TextN(NSNG),
  566.                'SpaceS',
  567.                TextN(CSPO),
  568.                'SpaceS',
  569.                TextN(MSPO),
  570.                'SpaceS',
  571.                TextN(CFIL),
  572.                'SpaceS',
  573.                TextN(NFIL),
  574.                'SpaceS',
  575.                TextN(CNAM),
  576.                'Space',
  577.             'EndGroup',
  578.             'BeginRequesterGads',
  579.             CenteredButtonRE('Great!',10000),
  580.          'EndRequester')
  581.  
  582.    CALL TR_AUTOREQUEST(app,window,PubScreenName('workbench'),
  583.          BeginRequester('Status','TRWP_CENTERDISPLAY'),
  584.             'VertGroupA',
  585.                'Space',
  586.                NamedSeparator('Status'),
  587.                'Space',
  588.                'HorizSeparator',
  589.                'Space',
  590.                TextN(KIKK),
  591.                'SpaceS',
  592.                TextN(WBVE),
  593.                'SpaceS',
  594.                TextN(CITY),
  595.                'SpaceS',
  596.                TextN(REXV),
  597.                'SpaceS',
  598.                TextN(CPUV),
  599.                'SpaceS',
  600.                TextN(FPUV),
  601.                'SpaceS',
  602.                TextN(VIDV),
  603.                'SpaceS',
  604.                TextN(FRQV),
  605.                'Space',
  606.                'HorizSeparator',
  607.                'Space',
  608.                NamedSeparator('Status'),
  609.                'Space',
  610.             'EndGroup',
  611.             'BeginRequesterGads',
  612.             CenteredButtonRE('Okay',10000),
  613.          'EndRequester')
  614.  
  615. DROP PLAY NAME FNAM TYPE SIZE COMM PR0T CURR CSNG NSNG CSPO MSPO CFIL NFIL CNAM KIKK WBVE CITY DURA DURT
  616. RETURN
  617.  
  618. starthip:
  619. Say 'Hippopath is:' Hippo
  620. if ~exists(hippo) then do
  621. notthere=rtezrequest('Couldn`t find HippoPlayer as 'hippo','||'0a'x||' edit the script at line 53 to enter your path !','Ups..','Couldn`t start HiP !','rtez_flags=ezreqf_centertext','rtez_defaultresponse = 0',)
  622. return
  623. end
  624. Say 'Trying to start HiP...'
  625. ADDRESS COMMAND Hippo
  626. delay(50)
  627. note = rtezrequest('Due to some unfixable problems, '||'0a'x||'HiP should be started before H.A.P. !'||'0a'x||'Otherwise some functions, especially the status-req'||'0a'x||'might not work properly !'||'0a'x||'Though you can try it..:)','Hmm..','Please Note !','rtez_flags=ezreqf_centertext','rtez_defaultresponse = 0',)
  628. IF SHOWLIST('P','HIPPOPLAYER') THEN
  629. call engads
  630. else
  631. notthere=rtezrequest('Couldn`t find HippoPlayer`s ARexx-Port.,'||'0a'x||'I`ve no idea, why this happens.','?!?','Couldn`t find HiP-Port !','rtez_flags=ezreqf_centertext','rtez_defaultresponse = 0',)
  632. RETURN
  633. END
  634.  
  635. e-break:
  636. CALL TR_DELETEAPP(app)
  637. END
  638. EXIT(0)
  639.  
  640. iconify:
  641. dummywindow = TR_OPENPROJECT(app,WindowID(1000) WindowTitle('H.A.P. (c) by Marcel Doering `95-`96  iconified') PubScreenName('workbench') 'EndProject')
  642.  
  643. IF dummywindow ~= '00000000'x THEN DO
  644.    CALL TR_CLOSEPROJECT(window)
  645.    Iconified=YO
  646. END
  647. ELSE
  648. CALL TR_EASYREQUEST(app,'ATTENTION !'||'0a'x||'Couldn`t iconify H.A.P. !'||'0a'x||'Version:'appversion,'_Oops','TREZ_Title "Error !"' 'TREZ_LockProject' C2D(window) 'TAG_END')
  649. RETURN
  650.  
  651. uniconify:
  652. CALL TR_CLOSEPROJECT(dummywindow)
  653. dummywindow = '00000000'x
  654. window = TR_OPENPROJECT(app,windowtags)
  655.  
  656. IF window = '00000000'x THEN
  657. quit('Error! Couldn`t open window !!',10)
  658.  
  659.    Iconified=NO
  660. RETURN
  661.  
  662. historee:
  663.    CALL TR_AUTOREQUEST(app,window,PubScreenName('workbench'),
  664.          BeginRequester('HiP-ARexx-Play - History','TRWP_CENTERDISPLAY'),
  665.             'VertGroupA',
  666.                'Space',
  667.                'HorizSeparator',
  668.                'Space',
  669.                NamedSeparator('Version 2.0'),
  670.                'Space',
  671.                TextN(' · Splitted the buttons into two banks,'),
  672.                TextN('   looks better now and also works on  '),
  673.                TextN('   very small screenheights.'),
  674.                TextN(''),
  675.                TextN(' · If HiP is not started, all buttons and '),
  676.                TextN('   the menu will stay disabled till you start '),
  677.                TextN('   HiP. (from H.A.P. !)'),
  678.                TextN(''),
  679.                TextN(' · Added a funtion to check if HiP started '),
  680.                TextN('   correctly, if not, the buttons will stay '),
  681.                TextN('   disabled. '),
  682.                'Space',
  683.                'HorizSeparator',
  684.                'Space',
  685.             'EndGroup',
  686.             'BeginRequesterGads',
  687.             CenteredButtonRE('Gee..',10000),
  688.          'EndRequester')
  689. RETURN
  690.  
  691. /***************IS GOING TO BE IMPLEMENTED !*******************************
  692.  
  693. openlocale:
  694. uselocale = TRUE
  695.  
  696. IF ~SHOW('LIBRARIES','locale.library') THEN
  697.    IF ~ADDLIB('locale.library',-10,-30,0) THEN
  698.       uselocale = FALSE
  699.  
  700. IF ~loadrexx(progdir,'HiP-ARexx-Play.strings','') THEN
  701.    quit('Error reading file "HiP-ARexx-Play.strings"!'),10)
  702.  
  703. IF uselocale THEN DO
  704.    catalogfile = 'catalogs/deutsch/HAP.catalog'
  705.  
  706.    IF RIGHT(progdir,1) = ':' THEN
  707.       catalog = OPENCATALOG(progdir||'catalogs/deutsch/HAP.catalog','deutsch',0)
  708.    ELSE
  709.       catalog = OPENCATALOG(progdir||'/catalogs/deutsch/HAP.catalog','deutsch',0)
  710.  
  711.    IF catalog = 0 THEN
  712.       catalog = OPENCATALOG('HAP.catalog','deutsch',0)
  713. END
  714. RETURN
  715.  
  716. ***************************************************************************/
  717.  
  718. dagads:
  719. disbld=1
  720. CALL TR_SETATTRIBUTE(window,1,'TRAT_Disabled',1)
  721. CALL TR_SETATTRIBUTE(window,2,'TRAT_Disabled',1)
  722. CALL TR_SETATTRIBUTE(window,3,'TRAT_Disabled',1)
  723. CALL TR_SETATTRIBUTE(window,4,'TRAT_Disabled',1)
  724. CALL TR_SETATTRIBUTE(window,5,'TRAT_Disabled',1)
  725. CALL TR_SETATTRIBUTE(window,6,'TRAT_Disabled',1)
  726. CALL TR_SETATTRIBUTE(window,7,'TRAT_Disabled',1)
  727. CALL TR_SETATTRIBUTE(window,8,'TRAT_Disabled',1)
  728. CALL TR_SETATTRIBUTE(window,9,'TRAT_Disabled',1)
  729. CALL TR_SETATTRIBUTE(window,11,'TRAT_Disabled',1)
  730. CALL TR_SETATTRIBUTE(window,12,'TRAT_Disabled',1)
  731. CALL TR_SETATTRIBUTE(window,10,'TRAT_Disabled',1)
  732. CALL TR_SETATTRIBUTE(window,14,'TRAT_Disabled',1)
  733. RETURN
  734.  
  735. engads:
  736. disbld=0
  737. CALL TR_SETATTRIBUTE(window,1,'TRAT_Disabled',0)
  738. CALL TR_SETATTRIBUTE(window,2,'TRAT_Disabled',0)
  739. CALL TR_SETATTRIBUTE(window,3,'TRAT_Disabled',0)
  740. CALL TR_SETATTRIBUTE(window,4,'TRAT_Disabled',0)
  741. CALL TR_SETATTRIBUTE(window,5,'TRAT_Disabled',0)
  742. CALL TR_SETATTRIBUTE(window,6,'TRAT_Disabled',0)
  743. CALL TR_SETATTRIBUTE(window,7,'TRAT_Disabled',0)
  744. CALL TR_SETATTRIBUTE(window,8,'TRAT_Disabled',0)
  745. CALL TR_SETATTRIBUTE(window,9,'TRAT_Disabled',0)
  746. CALL TR_SETATTRIBUTE(window,11,'TRAT_Disabled',0)
  747. CALL TR_SETATTRIBUTE(window,12,'TRAT_Disabled',0)
  748. CALL TR_SETATTRIBUTE(window,10,'TRAT_Disabled',0)
  749. CALL TR_SETATTRIBUTE(window,14,'TRAT_Disabled',0)
  750. RETURN
  751.  
  752. CheckHipPorts:
  753. IF ~ShowList('P','HIPPOPLAYER') THEN
  754. CALL DAGADS
  755. RETURN
  756. END
  757.  
  758. enablepvol:
  759. SayVol = TRUE
  760. RETURN
  761.  
  762. disablepvol:
  763. SayVol = FALSE
  764. RETURN
  765.  
  766. break_c:
  767. failure:
  768. halt:
  769. ioerr:
  770. syntax:
  771. SAY '+++ Error!' rc 'in Line' sigl '-' ERRORTEXT(rc)
  772. Say 'Trying to close complete script...'
  773. SAY SOURCELINE(sigl)
  774. IF app ~= '00000000'x THEN
  775. CALL TR_DELETEAPP(app)
  776.  
  777. EXIT(10)
  778.  
  779. cleanup:
  780. /*remlib('rexxreqtools.library')
  781. remlib('tritonrexx.library')
  782. remlib('rexxtricks.library')
  783. remlib('rexxsupport.library')
  784. */
  785. return
  786.  
  787. /* Following lines are just storage for me */
  788. Store:
  789. /*                        'SpaceS',
  790.                         NamedFrameBox('ShortInfo'),
  791.                         'TROB_FrameBox TRFB_Text',
  792.                         'VertGroupA',
  793.                         'SpaceS',
  794.                          ClippedTextID(clipname appversion,2),
  795.                          ClippedTextID(clipinfo,22),
  796.                         'Space EndGroup',
  797. */
  798.