March 29, 2024, 04:57:57 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Feedback required, please, if you have the time

Started by Brian, March 28, 2021, 11:45:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brian

Hello,

I have been messing trying to see if I can get a response on whether my printer is switched on or off

On my Epson, when it is ON, Attributes returns 2624; when it is OFF, Attributes returns 3648

After a bit of digging, I realised that other makes of printers return similar values

ON:
Canon and Epson = 2624
Brother and Konica = 576

OFF:
Canon and Epson = 3648
Brother and Konica = 1600

Could you run this console program with your printer turned off, note the name of the printer and attribute, and then run it again with the printer on, and do the same

I obviously can't test it with anything else here, as I have only the one printer. Oh, and if anyone as an HP printer, that would be helpful, as well

Many thanks,

Brian

billhsln

I am not sure if it is due to my printer being a Network printer, but this is what I got for both on and off:

PrinterName        : HP Officejet Pro 8600 (Network)
PortName           : CN26CBT3KP05KC
DriverName         : HP Officejet Pro 8600
Attributes         : 2624

Status             : (null)

Bill
When all else fails, get a bigger hammer.

Andy

Brian,

Same as Canon and Epson for my HP Deskjet 2560C

Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Egil

Brian,

My Brother HL-1210W connected to an USB port reports same values as for your Brother printer.

Egil
Support Amateur Radio  -  Have a ham  for dinner!

Brian

Thanks, chaps - gives me something to work on. Any more?

Brian

Brian

Here's a little test for you. The code should report if you have a default printer installed, or whether your default printer is switched on or off

Brian

ckoehn

I am just catching up here today.  I haven't been on this forum for awhile it seems.

Here is something to think about.

2624 = 0000 1010 0100 0000
3648 = 0000 1110 0100 0000

 576 = 0000 0010 0100 0000
1600 = 0000 0110 0100 0000

It looks like the 10th bit (bits start with 0) is set when the printer is unavailable.  I don't know if this is for all printers or not but it is interesting.

Later,
Clint