|
-
Mar 29th, 2022, 04:07 AM
#1
Thread Starter
Lively Member
-
Mar 29th, 2022, 05:20 AM
#2
Re: How to show the Print Queue dialog and some other printer stuff
Looking in Task-Manager, i see that window is running in a "rundll32"-context....
going by this: https://docs.microsoft.com/en-us/win...ndll32-printui
i'd try a "shell("rundll32 printui.dll PrintUIEntry /o /n\\MyHostName\MyPrintername")"
Last edited by Zvoni; Mar 29th, 2022 at 05:28 AM.
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
Mar 29th, 2022, 05:25 AM
#3
Thread Starter
Lively Member
Re: How to show the Print Queue dialog and some other printer stuff
Thanks man.. I will check it
-
Mar 29th, 2022, 05:59 AM
#4
Thread Starter
Lively Member
Re: How to show the Print Queue dialog and some other printer stuff
Well this was the solution thanks Zvoni
Code:
Shell ("rundll32 printui.dll PrintUIEntry /o /n ""name of printer")
I will wait a bit if someone resolves also the turning on/off
-
Mar 29th, 2022, 07:41 AM
#5
Re: How to show the Print Queue dialog and some other printer stuff
 Originally Posted by masteripper
Well this was the solution thanks Zvoni
Code:
Shell ("rundll32 printui.dll PrintUIEntry /o /n ""name of printer")
I will wait a bit if someone resolves also the turning on/off
from WIN+R i'd try a
rundll32 printui.dll, PrintUIEntry /Xg /n"Printer Name"
and then look for "Status"... play around with it (toggle on/off) with running the command every time
with the "/Xs"-Switch you can set settings
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
Mar 29th, 2022, 07:57 AM
#6
Thread Starter
Lively Member
Re: How to show the Print Queue dialog and some other printer stuff
 Originally Posted by Zvoni
from WIN+R i'd try a
rundll32 printui.dll, PrintUIEntry /Xg /n"Printer Name"
and then look for "Status"... play around with it (toggle on/off) with running the command every time
with the "/Xs"-Switch you can set settings
Cool .. I was expecting a rather hard API solution but this should do...
Thanks man
-
Mar 29th, 2022, 08:16 AM
#7
Re: How to show the Print Queue dialog and some other printer stuff
 Originally Posted by masteripper
Cool .. I was expecting a rather hard API solution but this should do...
Thanks man
There might be an API-Solution, but at a guess the "printui.dll" was written with "cdecl"-convention, so you might have to jump through some hoops.
Found this: https://www.pinvoke.net/default.aspx...UIEntryW.html#
Last edited by Zvoni; Tomorrow at 31:69 PM.
----------------------------------------------------------------------------------------
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------------------
People call me crazy because i'm jumping out of perfectly fine airplanes.
---------------------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad
-
Mar 30th, 2022, 11:34 AM
#8
Thread Starter
Lively Member
Re: How to show the Print Queue dialog and some other printer stuff
 Originally Posted by Zvoni
Thanks again my friend.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|