-
May 25th, 2007, 11:28 AM
#1
Thread Starter
New Member
print screen to printer
Dear all,
I would like to print screen to my pinter, could anyone help me to solve this in my marco....
[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectByName(ThisSessionName)
REM This line calls the macro subroutine
subSub1_
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLPS.SendKeys "[pf7]"
autECLSession.autECLOIS.WaitForAttrib 7,1,"00", "3c",3,10000
autECLSession.autECLOIS.WaitForCursor 7,2,10000
autECLSession.autECLOIA.WaitForAppAvailable
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLOIS.SendKeys "s"
autECLSession.autECLOIA.WaitForInputReady
autECLSession.autECLOIS.SendKeys "[enter]"
..........how to print screen here ?????
end sub
-
May 25th, 2007, 11:30 AM
#2
Re: print screen to printer
Welcome to the forums.
What is this macro written in? I do not recognize the syntax.
-
May 25th, 2007, 01:00 PM
#3
Re: print screen to printer
"LANGUAGE=VBSCRIPT"
The simplest way to print the screen is an Int 5, but since VBScript can't execute assembly code, you'd need an .exe or .com file to shell to that has that instruction.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
May 25th, 2007, 08:13 PM
#4
Thread Starter
New Member
Re: print screen to printer
Originally Posted by Hack
Welcome to the forums.
What is this macro written in? I do not recognize the syntax.
That is recorded from AS400. I need to press f7...type "s"...then..enter
after that i want a screen print to my printer.
-
May 25th, 2007, 08:16 PM
#5
Thread Starter
New Member
Re: print screen to printer
Originally Posted by Al42
"LANGUAGE=VBSCRIPT"
The simplest way to print the screen is an Int 5, but since VBScript can't execute assembly code, you'd need an .exe or .com file to shell to that has that instruction.
thks! AL42.
how to do the .exe or .com file??? Please help...
-
Dec 20th, 2017, 12:27 AM
#6
New Member
Re: print screen to printer
autECLSession.autECLOIS.SendKeys "[printps]"
-
Dec 20th, 2017, 10:25 AM
#7
Re: print screen to printer
The thread is ten years old, and the OP hasn't posted anything other than this thread. It's pretty unlikely that they will ever see any such answer.
Aside from that, it looks like it should be printsc, not printps.
My usual boring signature: Nothing
-
Jan 27th, 2018, 06:21 AM
#8
New Member
Re: print screen to printer
Originally Posted by Shaggy Hiker
The thread is ten years old, and the OP hasn't posted anything other than this thread. It's pretty unlikely that they will ever see any such answer.
Aside from that, it looks like it should be printsc, not printps.
hi
i dont have seen the date, haha
in my scrypt i have ; pcLPS.SendKeys "[printps]"
pcOIA.WaitForAppAvailable
pcOIA.WaitForInputReady
it seem to work what the difference between both!?!
-
Jan 27th, 2018, 08:16 PM
#9
Re: print screen to printer
I don't think there is a [printsc] Mnemonic for the SendKeys method on the AS400.
[printps] = Print Presentation Space, which is defined for the AS400, but not in other versions of VBSCRIPT SendKey methods such as for Oracle or Sun (Oracle and Sun may be based on the same implementation of VBSCRIPT).
I'm thinking that Shaggy Hiker was thinking of {PRTSC} which emulates pressing the Print Screen key on a PC.
Of course, there are probably even fewer AS400 users now than there was 10 years ago.
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
|