so, i have this code:
var keyObj:Object = new Object();
keyObj.onKeyDown = function() {
if (Key.getCode() == 80) {
/////////////////
var pj = new PrintJob();
var success = pj.start();
if(success)
{ pj.addPage (0, {xMin : 0, xMax: 1, yMin: 0, yMax: 1});
pj.send(); }
delete pj;
//////////////////
}
//trace(Key.getCode());
}
Key.addListener(keyObj);
which essentialy prints a blank page for a user.
my trouble is that, if I press “P” -defined by ascii=80, all is good, but if i press CTRL+P (as most will do by default), the routine doesn’t work anymore.
Been trying to replace 80 with 16, as i found in some ascii charts but to no avail…
any suggestions?