home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d770
/
uedit.lha
/
Uedit
/
Rich-Martin.LZH
/
Config!H
< prev
next >
Wrap
Text File
|
1988-11-15
|
2KB
|
47 lines
======= Config!H Occasional commands ==========
/* send word at cursor as argument to DOS command "utter"*/
<lAmiga-space:
equateLoc(curFile, locA, atCursor) ..store current cursor loc
moveCursor(curFile,sWord) ..move to start of word
moveCursor(curFile, sChar) ..back up one more char,
if ( not is (curFile, "/")) ..if word starts with '/',
..it's a phoneme else
moveCursor(curFile, eChar) ..move forward one char
clearRgn(buf54, all) ..delete any old material
insertRgn(buf54,sFile, "utter ", all) ..put command name in buffer
insertRgn(buf54, eFile, curFile, word) ..add current word as argument
execute(" ", buf54) ..do the deed
..move cursor back to orig
moveCursor(curFile,locA) > ..location
Bring up file-requester
<lAmiga-f1:
..this modification added 12 Nov 88. Now we provide the current click-
..load directory as an argument to FileReq
freeBuf(buf53)
insertRgn(buf53,sFile,"FileReq ",all)
insertRgn(buf53,eFile,buf38,hilite) ..put current dir as arg
..here ends modification -Rich Martin
freeBuf(buf54)
execute(buf54,buf53) .. file requester program: puts dir on line 1
moveCursor(buf54,sfile) .. puts filename on line 2. outputs "*" if no
copyChar(buf54,n53) .. selection or one line error msg if error.
moveCursor(buf54,eLine)
moveCursor(buf54,eChar)
if (is(buf54,eFile)) { .. was 1 line only
label(0)
putMsg("No selection or no FileReq program or no Arp Library")
returnFalse
}
freeBuf(buf53) .. directoryname line
insertRgn(buf53,sFile,buf54,line) .. copy in directory name
runKey(virtual-7) .. store dirname in buf38, if not already there
if (not eqNum(n53,"*")) { .. 1st line wasn't empty
clearRgn(buf54,line) .. erase dirname line in buf54
insertRgn(buf54,sFile,buf38,hilite) .. insert dirname
loadFile(buf54) .. now load the file
}
>