Sending print to active window

Here you are welcome to discuss items of general interest related to Push2Run
Post Reply
Gees86
Posts: 1
Joined: Sat Jun 29, 2019 6:51 pm

Sending print to active window

Post by Gees86 »

I was wondering if there is a way to send the print command (I assume keys to send {LEFTCTRL}p) to the current active window and have it print said window. I cannot get this to work for some reason.
To take it a step further i was wondering if i could get it to print to PDF and to print to my default printer.

Any help is appreciated.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Sending print to active window

Post by RobLatour »

Interesting, I would have thought it would work but it didn't. I suspect it is because when you select the active window the program may be wanting to stick with that one, but the problem is the ctrl p command opens up a new window. I'll have to play with this a bit and perhaps may even need to make a code change.
forbizuser
Posts: 1
Joined: Sat Jun 22, 2019 3:44 pm

Re: Sending print to active window

Post by forbizuser »

So did it work with {LEFTCTRL} ?
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Sending print to active window

Post by RobLatour »

Actually, the code was fine, and I got it to work (with the active program running on the desktop being chrome as a test).

On the Push2Run card the Open filed was set to:
active window

and the Keys to send were set to:
{LEFTCTRL}P{WAIT999}{ENTER}
Post Reply