
! script name: amo.d/mancodes

!A
!A NAME:
!A 	MANUAL CODES
!A
!A DESCRIPTION:
!A 	This script allows the user to input manual
!A	codes desired for his CNC output.
!A
!B INSTRUCTIONS:
!B 	MANUAL CODE, Proceed: Enter the manual code
!B		EXACTLY how it is to appear in the
!B		CNC output.
!B		P - This exits the manual code input
!B		    mode.
!B
!# see also - points.d/xyzinput.hlp

stat=ChangeLabelStr("ScriptNameStatus","Function: manual codes")

DIM Destination$[256]
DIM Answer$[256]
DIM Command$[256]
DIM A$[256]

DeActivateUndo
First= 1
Pick_loop:!

Stat=SetInputFormat("a99"," ")
Stat=GetValue("MANUAL CODE, Proceed ",Answer$)
IF (ExitScript(Destination$)) THEN Leave

IF Answer$="P" OR Answer$="p" OR Answer$="Proceed" THEN New_command

Stat=OutputCmdBuff("OUTPUT: "&Answer$,First)
First= 0

GOTO Pick_loop

New_command:!
UpdateCmdFile
LOAD "amo.d/amoexecute"

Leave:!
IF (NOT LEN(Destination$)) THEN
	LOAD "amo.d/amoexecute"
ELSE
	LOAD Destination$
END IF
END
