function sikuli_handshake() { // techo('[connecting to sikuli process]');
var ds; if (flow_path.indexOf('/') !== -1) ds = '/'; else ds = '\\';
var fs = require('fs'); fs.write('tagui.sikuli'+ds+'tagui_sikuli.in','','w'); var sikuli_handshake = '';
if (!fs.exists('tagui.sikuli'+ds+'tagui_sikuli.out')) fs.write('tagui.sikuli'+ds+'tagui_sikuli.out','','w');
do {sleep(1000); sikuli_handshake = fs.read('tagui.sikuli'+ds+'tagui_sikuli.out').trim();}
while (sikuli_handshake !== '[0] START'); // techo('[connected to sikuli process]');
}
// for initialising integration with sikuli visual automation
for initialising integration with sikuli visual automation
for initialising integration with sikuli visual automation
function sikuli_handshake() { 
var ds; if (flow_path.indexOf('/') !== -1) ds = '/'; else ds = '\\';
var fs = require('fs'); fs.write('tagui.sikuli'+ds+'tagui_sikuli.in','','w'); var sikuli_handshake = '';
if (!fs.exists('tagui.sikuli'+ds+'tagui_sikuli.out')) fs.write('tagui.sikuli'+ds+'tagui_sikuli.out','','w');
do {sleep(1000); sikuli_handshake = fs.read('tagui.sikuli'+ds+'tagui_sikuli.out').trim();}
while (sikuli_handshake !== '[0] START'); 
}
function sikuli_handshake ( ) { var ds ; if ( flow_path . indexOf ( '/' ) !== - 1 ) ds = '/' ; else ds = '\\' ; var fs = require ( 'fs' ) ; fs . write ( 'tagui.sikuli' + ds + 'tagui_sikuli.in' , '' , 'w' ) ; var sikuli_handshake = '' ; if ( ! fs . exists ( 'tagui.sikuli' + ds + 'tagui_sikuli.out' ) ) fs . write ( 'tagui.sikuli' + ds + 'tagui_sikuli.out' , '' , 'w' ) ; do { sleep ( 1000 ) ; sikuli_handshake = fs . read ( 'tagui.sikuli' + ds + 'tagui_sikuli.out' ) . trim ( ) ; } while ( sikuli_handshake !== '[0] START' ) ; }
for initialising integration with sikuli visual automation
for initialising integration with sikuli visual automation
// techo('[connecting to sikuli process]'); // techo('[connected to sikuli process]');