⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cenvi.doc

📁 C 语言开发HNT格式数据库系统
💻 DOC
📖 第 1 页 / 共 4 页
字号:
              specifications
            *NumLock.bat: Set the NumLock key on
            *OneADay.bat: Perform any command(s) no more than once per day
            *PathAdd.bat: Add a directory to your PATH environment
              variable.
            *PathDel.bat: Remove a directory from your PATH environment
              variable
            *PathStak.bat: Multi-level save or restore of current drive and
              directory so that you can change drives and directories and
              still return to this one
            *PathSubs.bat: Use DOS's SUBST command to shorten your PATH
              environment variable so that more paths can be fit with DOS'
              127-byte limit
            *Primes.bat: Demonstrate automatic array allocation for
              calculating prime numbers
            *PrmptDay.bat: Change command-line-prompt to display today's
              date
            *Quote.bat: Choose a "profound" quote at random
            *REBOOT_1.BAT: One method to reboot your computer
            *REBOOT_2.BAT: Another method to reboot your computer
            *Restrict.cmm: Allow a limited subset of DOS commands
            *RunTime.bat: Rudimentary scheme for executing a command at a
              certain time of day.
            *SortLen.bat: Sort any file based on line length
            *Sound.bat: Play a frequency for a given time period
            *Tee.cmm: Save screen output to a file while it is being
              displayed on the screen
            *ValidDir.bat: Verify if a directory is valid
            *Wait.bat: Pause and do not return for specified number of
              seconds
            *WinShell.bat: Start windows with a specific shell.  Run
              Windows for a single program.

1.5.4   OS/2 example files:

          For many of these functions, you must ensure that CEnvi2PM.exe is
          accessible (in the current directory or in a directory in the
          search PATH).  CEnvi2PM.exe is a small program used transparently
          by CEnvi.exe when the PMxxxxx() calls are used to PM-specific
          functions.
            *AllDirs.cmd: Perform a command in this directory and all
              sub-directories
            *AllFiles.cmd: Perform a command on all files matching a given
              file specification
            *Ascii.cmd: Display the ascii character table
            *BatLoops.cmd: Examples of various methods CEnvi can use to
              allow looping within batch files
            *BckGrnd.cmd: Specify a new file as your desktop background
              image
            *BigFont.cmd: Chooses the largest font for a Windowed OS/2
              session.  Uses KeyPush.lib.
            *Border.cmm: Draw a simple border on the screen
            *Bouncy.cmd: Start a bouncy OS/2 Command Window. This
              demonstrates moving windows, embedding multiple Cmm
              executables within one file, passing keystrokes, clipboard
              use, and silliness.
            *BoxFont.cmd: Show and alter default font for DOS and OS/2
              command-line windows
            *BoxPos.cmd: Show and alter default position for DOS and OS/2
              command-line windows
            *BugHunt.cmd: Example for using the ClipBrd.lib routines.
              Constantly scan clipboard for "bug" in clipboard text
            *CBPrint.cmd: Send contents of the clipboard to the printer
            *CEnviSet.cmd: This file can be used instead of CEnvi.exe if
              you are using environment variables as Cmm variables and need
              them to be changed in the current OS/2 environment.
            *ClipBrd.lib: Library of routines for reading from or writing
              to the Windows clipboard
            *CmmEdit.cmm: VERY simple text editor; developed step-by-step
              in the tutorial chapter of the Registered CEnvi Manual.
            *Comm.lib: Serial communications routines
            *DelTree.cmd: Delete a directory tree
            *Devices.cmd: Show status of system devices.
            *DevIOCtl.lib: Function library for OS/2's DosDevIOCTL
              functions
            *DirStat.cmd: Extract specific fields from an OS/2 "DIR"
              listing
            *DiskFree.cmd: Display free space on a disk drive
            *DoFiles.cmd: Perform any command on a list of files selected
              from a file dialog box
            *DosCalls.lib: Example library of "wrapper" function calls to
              OS/2 API calls in the DosCalls library.  This file is
              "#include"ed in many of the other example files.
            *DosObj.cmd: Demonstrate how to initialize any session type,
              program, settings, and window positions.  In this case a DOS
              Window, but this is easily changed.
            *DumpIni.cmd: Display profile settings from a .INI file; uses
              Profile.lib
            *EditCmd.cmd: Use PM's file dialog (via FileDlg.lib) to select
              a *.cmd file to edit.
            *EPM.cmd: Wrapper for EPM.EXE for C programmers which will
              bring in related *.c, *.H and *.asm files
            *ErrLev.cmd: Execute a command and set the ERRLEV value as the
              return code, which makes ERRORLEVEL a variable
            *Fibonacc.cmm: Two methods for generating the Fibonacci
              sequence
            *FileDlg.lib: A simple interface to the WinFileDlg() PM
              function.  This library file is #include'd in some of the
              other CEnvi sample files.
            *FileFind.cmd: Wildcard search for files on current drive or on
              all drives
            *FileIO.lib: Function to interface directly with OS/2's File IO
            *Find#.cmm: Extract a number from wordy output; used by
              DirStat.bat
            *FranTick.cmm: Animated tick who drank too much coffee
            *GetUKey.cmd: Display a choice prompt and then set an
              environment variable based on user's selection 
            *Hello.cmm: My first Cmm program. Used to begin the Cmm
              tutorial.
            *HexDump.cmd: Display hexadecimal dump of a file
            *IDLE.cmd: Change process priority to run a CEnvi program only
              during system idle time.
            *IdleProg.cmd: Execute a program in the background; i.e., run
              only during system idle time.
            *Install.cmm: Install this registered version of CEnvi.
            *IsDay_1.cmd: One method to check if it is a specific day of
              the week
            *IsDay_2.cmd: Another method to check if it's a specific day of
              the week
            *IsItFri.cmd: Is it Friday?
            *KbdRate.cmd: Alter the typematic rate of the keyboard
            *KeyCode.cmd: Display keycode of any key pressed
            *KeyGhost.cmd: Sample for using KeyPush.lib to determine if
              CEnvi is worth the price of registration.
            *KeyPush.cmd: Send keystroke commands directly to a window by
              window title; a quick interface into KeyPush.lib
            *KeyPush.lib: Library of routines for sending keystrokes to PM
              or Windowed applications.
            *KeyState.cmd: Get or set the state of the NumLock, CapsLock,
              or Insert keys for current session or for the whole WPS
            *Kill.cmd: Terminate a running process by Process ID, Window
              title, full name, or partial name
            *MsgBox.lib: A wrapper library for the PM WinMessageBox()
              function.  This file is #include'd in other CEnvi sample
              files.
            *MsgBoxes.cmd: Show various message box types using the
              function in MsgBox.lib.
            *MultiDir.cmd: OS/2's "DIR" command allowing multiple file
              specifications
            *NekoSavr.cmd: This basic screen saver program runs NEKO.EXE,
              OS/2's cat & mouse game, when the mouse keys and keyboard
              have been idle.
            *NumLock.cmd: Turn on NUMLOCK key once, or maintain NUMLOCK ON.
              A shadow of NumLock.cmd can be put in startup folder to
              default computer to NumLock ON. "NumLock 1000" will check
              every second to make sure that NUMLOCK is still set.
            *OneADay.cmd: Perform any command(s) no more than once per day
            *OS2Time.cmd: Show time according to computer's internal clock
            *Parents.cmd: Show hierarchical list of ancestor's process ID's
              and names
            *PathAdd.cmd: Add a directory to your PATH environment
              variable.
            *PathDel.cmd: Remove a directory from your PATH environment
              variable
            *PathStak.cmd: Multi-level save or restore of current drive and
              directory so that you can change drives and directories and
              still return to this one
            *PMdll.lib: Example library of "wrapper" routines to function
              in the PM DLL (Presentatiom Manager Dynamic Link Library).
              This file is "#include"ed in many of the other example files.
            *Primes.cmd: Demonstrate automatic array allocation for
              calculating prime numbers
            *PrmptDay.cmd: Change command-line-prompt to display today's
              date
            *ProcList.cmd: Show list of all running processes; their names
              and ID's
            *Profile.lib: Function library for accessing Profiles; i.e.
              .INI files
            *Quote.cmd: Choose a text-mode "profound" quote at random
            *QuotePM.cmd: Choose a PM-mode "profound" quote at random
            *RndBckgr.cmd: Randomly select desktop background, at specified
              interval, from a list of graphic file specifications
            *RunTime.cmd: Rudimentary scheme for executing a command at a
              certain time of day.
            *Setup.cmd: Open the OS/2 Setup folder on the desktop
            *ShutDown.cmd: Automated shutdown of OS/2 system
            *SortLen.cmd: Sort any file based on line length
            *Sound.cmd: Play a frequency for a given time period
            *Switch.cmd: Switch foreground application to another process
              base on process ID, full name, or partial name
            *Terminal.cmd: A VERY basic terminal program; demonstrates
              COMM.LIB
            *Threads.cmd: Display list of all threads in all running
              processes
            *ValidDir.cmd: Verify if a directory is valid
            *Wait.cmd: Pause and do not return for specified number of
              seconds
            *Windows.cmd: Start up full-screen windows session with
              specified Windows program.  This file contains specific DOS
              notebook settings that should be altered to meet your
              computer's configuration.
            *WinList.cmd: Display list of all PM windows
            *WinSet.cmd: Set the position, size, state, etc... of a PM
              Window
            *WinTools.cmd: Demonstrate many of the capabilities of
              WinTools.lib
            *WinTools.lib: Library of routines for manipulating PM windows
              by name or by handle
            *WPFolder.cmd: Open a desktop folder for any specified
              directory and optionally switch to that window

1.5.5   Windows example files:

          The following CEnvi source programs can be run by associating the
          .cmm file extension with CEnvi.exe.  This can be done by using
          the File Manager: select one of these .cmm files then choose
          File/Association and select the full path to CEnvi.exe.  After
          this, you can run any of these exmple files simply by
          double-clicking on it.
            *Ascii.cmm: Display the ascii character table
            *BattMem.cmm: Show values stored in a PC's battery-protected
              memory
            *BootEd1.cmm: Start NotePad to edit c:\AutoExec.bat and
              C:\Config.sys using Windows DLL's.
            *BootEd2.cmm: Start NotePad to edit c:\AutoExec.bat and
              C:\Config.sys using CEnvi's spawn() function.
            *Border.cmm: Draw a simple border on the screen
            *BugHunt.cmm: Example for using the ClipBrd.lib routines.
              Constantly scan clipboard for "bug" in clipboard text
            *ClipBrd.lib: Library of routines for reading from or writing
              to the Windows clipboard
            *CmmEdit.cmm: VERY simple text editor; developed step-by-step
              in the tutorial chapter of the Registered CEnvi Manual.
            *Comm.lib: Simplified function interface into Windows' serial
              communication routines
            *DosTime.cmm: Show time according to computer's internal clock
            *Fibonacc.cmm: Two methods for generating the Fibonacci
              sequence
            *FranTick.cmm: Animated tick who drank too much coffee
            *GDI.cmm: Demonstrate some of Windows' graphics functions from
              GDI.lib
            *GDI.lib: Library of a few of Windows' graphics routines
            *Hello.cmm: My first Cmm program. Used to begin the Cmm
              tutorial.
            *HexDump.cmm: Display hexadecimal dump of a file
            *Icons.cmm: Minimize all windows.  Demonstrate PostMessage()
              from Message.lib.
            *IdleTime.cmm: "ScreenSaver" - Show clock if computer is idle

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -