Overview
TheNTQQSystemApi class provides system-level utilities and helper functions for QQ process management, OCR, translation, and other system operations.
Process Management
hasOtherRunningQQProcess
Check if another QQ process is running.boolean
true if another QQ process is detected, false otherwise
OCR (Optical Character Recognition)
ocrImage
Perform OCR on an image to extract text.string
required
Path to image file to perform OCR on
OCRResult
OCR result containing extracted text and position information
Translation
translateEnWordToZn
Translate English words to Chinese.string[]
required
Array of English words to translate
TranslationResult
Translation results for the provided words
Online Devices
getOnlineDev
Get information about online devices.OnlineDeviceInfo
Information about currently online devices
Collections
getArkJsonCollection
Get Ark JSON collection data.any
Ark JSON collection data
Mini Apps
bootMiniApp
Boot/launch a mini application.string
required
Path to mini app file
string
required
Parameters to pass to the mini app
Complete Example
Here’s a comprehensive example using various system utilities:OCR Use Case Example
Here’s a practical example of using OCR to extract text from images in messages:Notes
- OCR functionality requires Windows platform and may not be available on all systems
- OCR accuracy depends on image quality and text clarity
- Translation services may have rate limits or require network connectivity
- Some system utilities may require specific permissions or system configurations
- Process detection is useful for preventing multiple bot instances
