In my practice many people used Cutting Plotters and of course most Plotters work with there own communication software (drivers and or communication translators) and all Plotters used PLT files (text file with .plt extension). Actually the communication software in most cases running like
CutAndPlot used the same technics but automatically. (In next, if, versions I will catch the serial (COMxx) closer).
Code: Select all
copy filename.plt com1
What CutAndPlot do:
There 3 known methods to activate some action with the data (passive) files:
1. Double click (file is associated to program).
2. Drag-and-Drop (file is dropped over program window).
3. Pooling (if file appear at given folder - program do it action).
CutAndPlot worked with all THREE methods together.
How CutAndPlot worked:
1. CutAndPlot - associated .plt to itself (using regystry).
2. Read/Create - CutAndPlot.ini (options and FileNameList FIFO usage http://ahkscript.org/boards/viewtopic.p ... 858#p29858).
3. Start to pooling given folder for .plt files
4. Void small semytransparent window (drop-box).
User can double click selected files to append FileNameList.
User can drag-and-drop selected files over CutAndPlot drop-box to append FileNameList.
User can copy/move/export .plt files at the pooling folder to append FileNameList.
CutAndPlot check any 5 seconds it there .plt files at pooling folder and is there any files at FileNameList and if there start copying to communication port (COMxx).
Before any file CutAndPlot void MsgBox for user confirmation to start cutting/plotting edited >>> and repeat until user select No.
Pooling - if file is set to FileNameList from pooling after ending cut/plot file can be DELETED or MOVED to Archive folder (MOVE BY DEFAULT).
CutAndPlot in work:
1. Waiting state - green UP arrow at system tray.
2. Working state - red DOWN arrow at system tray.
3. Pausing state - yellow UP arrow at system tray.
Drop-box: can only be moved over the screen and hide/show (Win+Alt+Space). There no double clicks or right mouse button clicks.
Tray-icon: here is main CutAndPlot menu:
Open (Win+Alt+O) DEFAULT - open FileSelect interface (multy sellection possible).
Reject All (Win+Alt+R) - clear FileNameList and Reload.
Pause (Win+Alt+P) - pause.
Options (no short key) - open CutAndPlot.ini for editing in Notepad (depend of .ini association).
Exit (Win+Alt+F4) - terminate application.
UnZip CutAndPlot.zip - will be created folder .\CutAndPlot and all needed files will be inside.
script source / libraries / AHKv2.0 / Gdip.dll / icons
will be created CutAndPlot.lnk for further use (copy this link in Startup folder for example).
run the link to start CutAndPlot.
CutAndPlot will associate only itself for working with AHKv2.0 and only wilt .plt extensions (of course user can select/drag-and-drop files with any extention). Other .ahk files will KEEP association to other AHK or to nothing.
This version of CutAndPlot is very first version - coming from laboratory tests and never was in action at the free world.
Interrupting CutAndPlot DO NOT INTERRUPT cut/plot action (due to plotter buffer) but possible partial transmission of current file.
AVG antivirus prevent AHKv2.0 to work (suppress hotkey action).