Runaway Ruby
Posted: Fri Nov 14, 2014 5:22 am
I for some reason don't understand hot to use a trigger or boolean as input in ruby only when the trigger is fired or the boolean value changes & without them loading/firing when the schematic loads.
A gentle kick pls
Code: Select all
require 'Win32API'
def system(cmd)
sys = Win32API.new("crtdll", "system", ["P"], "L")
sys.Call(cmd)
end
def system2(command)
Win32API.new("crtdll","system",['P'],'L').Call(command)
end
#system("dir > c:\somefile.txt")
#system ('copy <c:\somefile.txt> <Brother DCP-165C Printer>')A gentle kick pls