FrymasterVB/Cmdproc-1.frm.md

1.6 KiB

Command Processor Form (Cmdproc-1.frm)

Overview

This is the main form for a command processing application that handles print queues and inter-task communications.

Key Components

Form Controls

  • Multiple list boxes for managing print groups and queues
  • SSTab control with 8 tabs for different print groups (Gen, Svc, Engr, SP, IE, FAB, Empty1, Empty2)
  • Status indicators and counters for queue monitoring
  • Timer controls for processing commands and messages

Major Features

  • Print queue management and spooling
  • Inter-task communications (ITC) between applications
  • Command processing and routing
  • Reply handling and monitoring
  • File watching and processing
  • Error logging and display

Key Functions

  • Command queue processing
  • Message passing between applications
  • Print job routing and management
  • Status monitoring and display
  • File system operations

Technical Details

Timers

  • Timer1: Main processing timer for system operations
  • Timer2: Status update timer (1 second interval)
  • processTimer: Message processing
  • sendTimer: Message sending
  • EndTimer: Shutdown handling

Communication

  • Uses Windows API for inter-process messaging
  • File-based queuing system
  • Reply tracking and management

Print Groups

  • General (Gen)
  • Service (Svc)
  • Engineering (Engr)
  • Special Processing (SP)
  • Industrial Engineering (IE)
  • Fabrication (FAB)
  • Two configurable groups (Empty1, Empty2)

Status Monitoring

  • Queue counts
  • Reply status
  • File system status
  • Communication status
  • Error conditions

Dependencies

  • TabDlg control (Tabctl32.ocx)
  • Windows API for IPC
  • File system access