Amibroker screen autoexport to c-drive-CORRECT CODE PLEASE

#1
outputdrive = "C:\\";

saveimage = outputdrive;

var oAB = WScript.CreateObject("Broker.Application");

Ticker = oAB.ActiveDocument.Name;

AB = new ActiveXObject("Broker.Application");

Win = AB.ActiveWindow;

output=saveimage + Ticker + ".jpg ";

Win.ExportImage( output, 800, 600 );
----------------------------------------
The above code collected from library but there is error
please correct this
 
Last edited:
#3
plus AFL

Code:
Capture = ParamTrigger("Capture", "Click");
if ( Capture )
ShellExecute("C:\\Program Files\\Amibroker\\Scripts\\ScreenShot.js","","");
 

Similar threads