Imacros 897 Full ((link)) Link

//This function loads content from a file at the specified location function LoadFile(path) { try { Components.utils.import("resource://gre/modules/FileUtils.jsm"); var file = new FileUtils.File(path); file.initWithPath(path); var charset = 'UTF8'; var fileStream = Components.classes['@mozilla.org/network/file-input-stream;1'] .createInstance(Components.interfaces.nsIFileInputStream); fileStream.init(file, 1, 0, false); var converterStream = Components.classes['@mozilla.org/intl/converter-input-stream;1'] .createInstance(Components.interfaces.nsIConverterInputStream); converterStream.init(fileStream, charset, fileStream.available(), converterStream.DEFAULT_REPLACEMENT_CHARACTER); var out = {}; converterStream.readString(fileStream.available(), out); var fileContents = out.value; converterStream.close(); fileStream.close(); return fileContents; } catch (e) alert("Error " + e + "\nPath " + path);

The Enterprise Edition includes a powerful scripting interface that allows you to control iMacros with any Windows programming language that supports COM objects, including Visual Basic, C#, Java, Perl, Python, PHP, and ASP.NET. imacros 897 full

The PROMPT command is also excellent for debugging—use it to show the values of variables during script execution. //This function loads content from a file at

Once you have operational, you can tackle advanced automation projects that modern browsers block outright. var file = new FileUtils.File(path)