It is currently September 29th, 2024, 7:26 am

See What's Printing - New Concept

General topics related to Rainmeter.
Ibex810
Posts: 2
Joined: March 17th, 2016, 5:51 pm

See What's Printing - New Concept

Post by Ibex810 »

Hey Everyone!
I am looking for a way to view "See What's Printing" with Win8.1 in Rainmeter for about 4 Printers. Does anyone have an idea as to where to start?
User avatar
exper1mental
Posts: 269
Joined: January 9th, 2013, 7:52 pm
Location: Clemson University

Re: See What's Printing - New Concept

Post by exper1mental »

What exactly do you want to see? The names of the files being printed on a given printer?

As far as I know no one had done this with Rainmeter before, so you are traveling in uncharted waters.

My humble suggestion would be to look at AutoHotKey or AutoIt and write a script returning the information you are looking for in Rainmeter. (you could also see if someone else has done something similar on the respective forum and adapt that to your needs)

Entering shell:PrintersFolder in windows explorer, if I remember right, shows the default printer and all online/connected printers. From there you can see what is printing on any of the printers and also pause/cancel printing. While this isn't in Rainmeter, you could send [Explorer.exe shell:PrintersFolder] from a Rainmeter skin to quickly access this interface.

Hope you find this helpful! :)
Image
User avatar
~Faradey~
Posts: 366
Joined: November 12th, 2009, 4:47 pm
Location: Ukraine

Re: See What's Printing - New Concept

Post by ~Faradey~ »

Ibex810 wrote:Hey Everyone!
I am looking for a way to view "See What's Printing" with Win8.1 in Rainmeter for about 4 Printers. Does anyone have an idea as to where to start?
try this, i don't have printer and i'm on win 7
anyway this may work

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
OnRefreshAction=!CommandMeasure MeasurePrintJobs "Run"

[Variables]


[MeasurePrintJobs]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic path Win32_PrintJob get Document,Color,HostPrintQueue,Owner,JobId,TotalPages
State=Hide
OutputType=ANSI
FinishAction=!Updatemeter MeterPrintJob

[MeterPrintJob]
Meter=String
MeasureName=MeasurePrintJobs
X=0
Y=0
FontSize=8
FontColor=3A3A3A
SolidColor=255,255,255,255
Padding=5,5,5,5
AntiAlias=1
Text="%1"
or even this:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
OnRefreshAction=!CommandMeasure MeasurePrintName "Run"

[Variables]


[MeasurePrintName]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic path Win32_Printer get Name
State=Hide
OutputType=ANSI
RegExpSubstitute=1
Substitute="(?siU)Name\s+\n":"","\s{3,}\n":""
FinishAction=!CommandMeasure MeasurePrintJobs "Run"

[MeasurePrintJobs]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic path Win32_PrintJob where Name="[MeasurePrintName]" get Document,Color,HostPrintQueue,Owner,JobId,TotalPages
State=Hide
OutputType=ANSI
DynamicVariables=1
FinishAction=!Updatemeter MeterPrintJob

[MeterPrintJob]
Meter=String
MeasureName=MeasurePrintJobs
X=0
Y=0
FontSize=8
FontColor=3A3A3A
SolidColor=255,255,255,255
Padding=5,5,5,5
AntiAlias=1
Text="%1"