Skip to content

Fiji code to read-write registry and run macro on new files of directory

Notifications You must be signed in to change notification settings

manerotoni/CommMicroscope

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Microscope Communicator

##Authors:

Christian Tischer (ALMF, EMBL Heidelberg)

Kota Miura (CMCI, EMBL Heidelberg)

Antonio Politi (CBB, EMBL Heidelberg)

##Installation

Please compile the source file using maven or download the jar file.

You need a library "Apache Commons IO" (http://commons.apache.org/proper/commons-io/) as well so please also download the jar file from the above mnentioned site and place the file also in the ImageJ or Fiji plugin folder.

Commands will be located under Plugins > ALMF >

##Descriptions

###Microscope Communicator (Outdated)

Select Microscope type, choose an action and a command to send.

###ReadWriteWindowsRegistry

Allows to write and read from registry a specific key

###Run a Macro on New Image

Select a folder to monitor appearance of new images (where captured images are saved). Upon appearance, A macro of your choice will be executed on that new file. Maximum interation could be set in the dialog as well.

The file path should be retrieved in the macro by

filepath = getArgument()

During monitoring, a small window will be staying on your desktop. To force quit the monitoring, click stop or close button. Restart will stop and restart the monitoring and reload the macro.

###Run a Jython on New Image

Similar to above, but runs Jython scripts.

The file path to the new image will be stored in a variable called

newImagePath

and can be used directly in the script.

##Versions ###1.1.4/1.1.5 (20130701)

  • macro is applied only to files with specific endings
  • macro also monitors changed files

###1.1.3 (20130415) Antonio's contibutions:

  • button restart reloads the macro in monitor

###1.1.2 (20130311) Antonio's bugfix:

  • fixed restart button. Now it first deletes old monitor than startnewmonitor

###1.1.1 (20130311) Antonio's contributions:

  • pom.xml updated.
  • For Macro setup dialog, JFrame is now used instead of genericDialog. (not recordable) -- In the dioalog Browsing directory and macro file is now possible.
  • Macro does not close when wrong directory/macro is typed but gives a log message out

###1.1.0 (20130215) Added with Windows Registry reader/writer plugin.

###1.0.0 The first version

About

Fiji code to read-write registry and run macro on new files of directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.0%
  • Python 1.0%