Difference between revisions of "AMOSi:Call Editor"
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
Spellcoder (talk | contribs) (added template with Call Editor commands) |
||
Line 13: | Line 13: | ||
param$ holds an optional string of characters.<br /> | param$ holds an optional string of characters.<br /> | ||
+ | |||
+ | |||
+ | ==Call Editor commands== | ||
+ | {{AMOS:Call Editor commands}} |
Latest revision as of 23:26, 14 June 2008
Used by an Editor accessory to SEND information directly to the AMOS Professional Editor.
Call Editor function[,param][,param$]
function is the NUMBER of an internal Editor command you wish to access.
param holds some optional numeric information.
param$ holds an optional string of characters.
Call Editor commands
code | equate | result | return values |
---|---|---|---|
1 | AEd_Up | Moves the cursor up one line | - |
2 | AEd_Down | Moves the cursor down one line. | - |
3 | AEd_Left | Moves the cursor left one character. | - |
4 | AEd_Right | Moves the cursor right one character. | - |
5 | AEd_TopPage | Moves the cursor to the top of the current window. | - |
6 | AEd_BottomPage | Move the cursor to the bottom of the current window. | - |
7 | AEd_WordLeft | Move the cursor to the beginning of the previous word. | - |
8 | AEd_WordRight | Move the cursor to the beginning of the next word. | - |
9 | AEd_PageUp | Move the cursor up one page in the text. | - |
10 | AEd_PageDown | Move the cursor down one page in the text. | - |
11 | AEd_StartLine | Move the cursor to the start of the current line. | - |
12 | AEd_EndLine | Move the cursor to the end of the current line. | - |
13 | AEd_WindowUp | Moves the current window up. | - |
14 | AEd_WindowDown | Moves the current window down. | - |
15 | AEd_WindowSmaller | Reduce the size of the current window. | - |
16 | AEd_WindowBigger | Increase the size of the current window. | - |
17 | AEd_TopOfText | Move the cursor to the top of the text. | - |
18 | AEd_BottomOfText | Move the cursor to the end of the text. | - |
19 | AEd_Return | Performs a <RETURN> | - |
20 | AEd_BackSpace | Performs a <BACKSPACE>: delete one character to the left of the cursor. | - |
21 | AEd_Delete | Performs a <DELETE>: delete one character to the right of the cursor. | - |
22 | AEd_ClrLine | Clears the entire current line. | - |
23 | AEd_DelLine | Delete the current line, and scroll up the rest of the text <CONTROL-Y> | - |
24 | AEd_Tab | Insert one tab <TAB> | - |
25 | AEd_SetTab | Set the current tab value. | PAR= new tab value. |
29 | AEd_InsertLine | Insert one empty line at the current cursor position <F10> | - |
30 | AEd_DelToEndOfLine | Delete to the end of the current line <CONTROL-DEL> | - |
31 | AEd_PreviousLabel | Go to previous label. | - |
32 | AEd_NextLabel | Go to next label. | - |
33 | AEd_Load | Load a new program in the current window. | PAR$= filename of the program to load. PAR= answer to the requester "Program not saved, save it?" 0= CANCEL / 1=YES / 2=NO |
34 | AEd_SaveAs | Save the current program with a new name. | PAR$= new filename. |
35 | AEd_Save | Save the current program. | PAR$= optional name if program is not named. |
36 | AEd_DelWordRight | Delete the word to the right of the cursor. | - |
37 | AEd_DelWordLeft | Delete the word to the left of the cursor. | - |
38 | AEd_Hide | Hide the current program. | - |
39 | AEd_SetSystemMark1 | Set system mark number 1 | - |
40 | AEd_SetSystemMark2 | Set system mark number 2. | - |
41 | AEd_SetSystemMark3 | Set system mark number 3. | - |
42 | AEd_SetMark1 | Set mark number 1. | - |
43 | AEd_SetMark2 | Set mark number 2. | - |
44 | AEd_SetMark3 | Set mark number 3. | - |
45 | AEd_SetMark4 | Set mark number 4. | - |
46 | AEd_SetMark5 | Set mark number 5. | - |
47 | AEd_SetMark6 | Set mark number 6. | - |
49 | AEd_GotoSystemMark1 | Move the cursor to the system mark number 1. | - |
50 | AEd_GotoSystemMark2 | Move the cursor to the system mark number 2. | - |
51 | AEd_GotoSystemMark3 | Move the cursor to the system mark number 3. | - |
52 | AEd_GotoMark1 | Move the cursor to the mark number 1. | - |
53 | AEd_GotoMark2 | Move the cursor to the mark number 2. | - |
54 | AEd_GotoMark3 | Move the cursor to the mark number 3. | - |
55 | AEd_GotoMark4 | Move the cursor to the mark number 4. | - |
56 | AEd_GotoMark5 | Move the cursor to the mark number 5. | - |
57 | AEd_GotoMark6 | Move the cursor to the mark number 6. | - |
59 | AEd_BlocOnOff | Toggle the block mode on/off. | - |
60 | AEd_Forget | Forget the currently stored block. | - |
61 | AEd_OpenLoad | Opens a new window, and loads the specified program into it. | PAR$= file name to load PAR= answer to "Buffer to small" requester. 0=NO / 1=YES |
62 | AEd_BlocCut | Cut the currently highlighted block. | - |
63 | AEd_BlocPaste | Paste the currently stored block. | - |
64 | AEd_DelToStartOfLine | Delete to the start of the current line. | - |
65 | AEd_Undo | Performs one step of UNDO. | - |
66 | AEd_Search | Initialise the search process. Search does NOT begin after this instruction, you should call AEd_SearchNext ou AEd_SearchPrevious. | PAR$= string to look for (31 char maximum). PAR=0: lower<>upper, PAR=1 lower=upper. |
67 | AEd_SearchNext | Search for the next occurence of the string. | - |
68 | AEd_SearchPrevious | Search for the previous occurence of the string. | - |
69 | AEd_ChangeLine | Replace the current line with the specified one. Does NOT tokenise the line or store it into the text buffer. This line will be tonkenised automatically if the cursor is moved. | PAR$= new string to force into the screen. |
71 | AEd_NewLine | Replace the current line on the screen and tokenise it. Then redisplays the tokenised line (which may differ). | PAR$= new string to force into the text. |
72 | AEd_BlocStore | Stores the highlighted block into memory. | - |
80 | AEd_Clear | New the current program. | PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO |
81 | AEd_Close | Close the current window. | PAR= answer to "Program not saved, save?" requester. 0=CANCEL / 1=YES / 2=NO |
84 | AEd_Merge | Merge a program from disc with the current one, at the cursor's position. | PAR$= name of the program to merge. |
85 | AEd_MergeAscii | Merge an ascii text at the cursor's position. | PAR$= name of the file to merge. |
86 | AEd_BlocPrint | Print the currently stored block. | - |
89 | AEd_UnfoldAll | Open all closed procedures. | - |
91 | AEd_WindowPrev | Activate previous window. | - |
92 | AEd_WindowNext | Activate next window. | - |
93 | AEd_WindowToggle | Toggle the size of the window (large or small). | - |
94 | AEd_Redo | Performs one REDO step. | - |
97 | AEd_BlocSaveAscii | Save the currently stored block as an ascii file | PAR$= name of the file to create |
98 | AEd_BlocSave | Saves the currently stored block. | PAR$= name of the file to create. |
99 | AEd_Replace | Initialise the replace string and replace modes. You should first call AEd_Search to set the searched string, and the search mode. Replace process only begins if TURBO mode is selected, otherwise you must call AEd_ReplaceNext or AEd_ReplacePrevious. | PAR$= string to replace with, 31 characters maximum. PAR=0: normal replace, PAR=%0100: turbo within the block, PAR=%1000: turbo for whole text. |
100 | AEd_ReplaceNext | Replace next occurence of searched string. | - |
101 | AEd_ReplacePrevious | Replace previous occurence of searched string. | - |
103 | AEd_Open | Opens a new AMOS window. | - |
146 | AEd_PrintProgram | Send the current program to the printer. | - |
181 | AEd_HighlightAll | Highlight all the current text. | - |
182 | AEd_ChangeConfig | Changes one of the editor's internal configuration strings. Used in AMOSPro_Editor_Config.AMOS | PAR$= new string PAR= number of the string to change |