Page 1 of 1

Sending print to active window

Posted: Sat Jun 29, 2019 7:12 pm
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.

Re: Sending print to active window

Posted: Sat Jun 29, 2019 9:17 pm
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.

Re: Sending print to active window

Posted: Sun Jun 30, 2019 2:42 pm
by forbizuser
So did it work with {LEFTCTRL} ?

Re: Sending print to active window

Posted: Sun Jun 30, 2019 7:51 pm
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}