Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Dijkstra probably hates me. -- Linus Torvalds, in kernel/sched.c


computers / comp.sys.ibm.as400.misc / Using the Print Screen Function from a program

SubjectAuthor
* Using the Print Screen Function from a programThomas Welsch
+* Re: Using the Print Screen Function from a programDr.UgoGagliardelli
|`- Re: Using the Print Screen Function from a programThomas Welsch
`* Re: Using the Print Screen Function from a programangelo__
 `* Re: Using the Print Screen Function from a programJon Paris
  `* Re: Using the Print Screen Function from a programThomas Welsch
   `- Re: Using the Print Screen Function from a programJon Paris

1
Using the Print Screen Function from a program

<1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=29&group=comp.sys.ibm.as400.misc#29

  copy link   Newsgroups: comp.sys.ibm.as400.misc
X-Received: by 2002:a05:6214:2622:: with SMTP id gv2mr9631349qvb.128.1639925465264;
Sun, 19 Dec 2021 06:51:05 -0800 (PST)
X-Received: by 2002:a37:a1c1:: with SMTP id k184mr7137865qke.383.1639925465118;
Sun, 19 Dec 2021 06:51:05 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.ibm.as400.misc
Date: Sun, 19 Dec 2021 06:51:04 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=95.91.218.234; posting-account=h1apWAoAAAAm4XU3fzohn_0ptRcxvQTP
NNTP-Posting-Host: 95.91.218.234
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>
Subject: Using the Print Screen Function from a program
From: jdc...@arcor.de (Thomas Welsch)
Injection-Date: Sun, 19 Dec 2021 14:51:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 7
 by: Thomas Welsch - Sun, 19 Dec 2021 14:51 UTC

I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.

Thanks a lot in advance.

Re: Using the Print Screen Function from a program

<sppd4d$94c$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=30&group=comp.sys.ibm.as400.misc#30

  copy link   Newsgroups: comp.sys.ibm.as400.misc
Path: i2pn2.org!i2pn.org!aioe.org!SuigAWY3sEMqo23J8xWIfA.user.46.165.242.75.POSTED!not-for-mail
From: do.not.s...@me.please (Dr.UgoGagliardelli)
Newsgroups: comp.sys.ibm.as400.misc
Subject: Re: Using the Print Screen Function from a program
Date: Mon, 20 Dec 2021 09:00:40 +0100
Organization: Aioe.org NNTP Server
Message-ID: <sppd4d$94c$1@gioia.aioe.org>
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="9356"; posting-host="SuigAWY3sEMqo23J8xWIfA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
X-Antivirus: Avast (VPS 211220-0, 20/12/2021), Outbound message
Content-Language: it
 by: Dr.UgoGagliardelli - Mon, 20 Dec 2021 08:00 UTC

Il 19.12.2021 15.51, Thomas Welsch ha scritto:
> I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.
>
> Thanks a lot in advance.
Maybe you should use the PRINT Keyword in a Display file to specify a
particular printer-file for the print-screen or have the program get the
control.

Re: Using the Print Screen Function from a program

<50377ac0-a214-469d-86dd-2b35a7db8d75n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=31&group=comp.sys.ibm.as400.misc#31

  copy link   Newsgroups: comp.sys.ibm.as400.misc
X-Received: by 2002:a05:6214:d05:: with SMTP id 5mr14215789qvh.46.1640025467276;
Mon, 20 Dec 2021 10:37:47 -0800 (PST)
X-Received: by 2002:a05:622a:1310:: with SMTP id v16mr13664296qtk.431.1640025466348;
Mon, 20 Dec 2021 10:37:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.ibm.as400.misc
Date: Mon, 20 Dec 2021 10:37:46 -0800 (PST)
In-Reply-To: <sppd4d$94c$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=95.91.218.234; posting-account=h1apWAoAAAAm4XU3fzohn_0ptRcxvQTP
NNTP-Posting-Host: 95.91.218.234
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com> <sppd4d$94c$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <50377ac0-a214-469d-86dd-2b35a7db8d75n@googlegroups.com>
Subject: Re: Using the Print Screen Function from a program
From: jdc...@arcor.de (Thomas Welsch)
Injection-Date: Mon, 20 Dec 2021 18:37:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 27
 by: Thomas Welsch - Mon, 20 Dec 2021 18:37 UTC

Dr.UgoGagliardelli schrieb am Montag, 20. Dezember 2021 um 08:59:11 UTC+1:
> Il 19.12.2021 15.51, Thomas Welsch ha scritto:
> > I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.
> >
> > Thanks a lot in advance.
> Maybe you should use the PRINT Keyword in a Display file to specify a
> particular printer-file for the print-screen or have the program get the
> control.
Thank you very much for your fast response. Unfortunately, I have two problems with the solution proposed by you: I don't want to use the PRINT Keyword as I would like to keep the normal functioning of a screen shot, I'd prefer to use a function key for providing the new function. On the other hand, I don't even know how to handle the using of the PRINT key as my programs (working with COBOL) does not set any function key indicators when using the PRINT key (actually, they seem not to receive any reaction from the host at all). BTW: here's why I would need kind of a screen shot: I want to allow users to produce an Excel sheet with the data from some screens. Therefore, the I-O fields used in my software aren't enough as the constants on display would not be known to the programs. I could add them, of course but that would mean writing a program for every special screen in the last consequence whereas I could write a more general program with a few parameters only if I had to handle the screen shots only.

Re: Using the Print Screen Function from a program

<spqolb$15g5$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=32&group=comp.sys.ibm.as400.misc#32

  copy link   Newsgroups: comp.sys.ibm.as400.misc
Path: i2pn2.org!i2pn.org!aioe.org!uxPS9lo/5YNskRgxjiFY2g.user.46.165.242.75.POSTED!not-for-mail
From: dont.s...@no.spam (angelo__)
Newsgroups: comp.sys.ibm.as400.misc
Subject: Re: Using the Print Screen Function from a program
Date: Mon, 20 Dec 2021 21:22:04 +0100
Organization: Aioe.org NNTP Server
Message-ID: <spqolb$15g5$1@gioia.aioe.org>
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Injection-Info: gioia.aioe.org; logging-data="38405"; posting-host="uxPS9lo/5YNskRgxjiFY2g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
X-Antivirus-Status: Clean
X-Antivirus: Avast (VPS 211220-2, 20/12/2021), Outbound message
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it
 by: angelo__ - Mon, 20 Dec 2021 20:22 UTC

Il 19/12/2021 15:51, Thomas Welsch ha scritto:
> I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.
>
> Thanks a lot in advance.

To copy the data on the screen I created a macro and inserted it in the
toolbar.
The macro is then callable on any video format without modifying
programs and dspf.
For my needs this macro writes the data in a pc text file .txt

--
Questa e-mail รจ stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Re: Using the Print Screen Function from a program

<a40fef00-4839-42f7-ab29-d0da8e321239n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=33&group=comp.sys.ibm.as400.misc#33

  copy link   Newsgroups: comp.sys.ibm.as400.misc
X-Received: by 2002:a05:622a:4ce:: with SMTP id q14mr2635368qtx.627.1640100295251;
Tue, 21 Dec 2021 07:24:55 -0800 (PST)
X-Received: by 2002:a05:6214:411a:: with SMTP id kc26mr2722759qvb.113.1640100295032;
Tue, 21 Dec 2021 07:24:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.ibm.as400.misc
Date: Tue, 21 Dec 2021 07:24:54 -0800 (PST)
In-Reply-To: <spqolb$15g5$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=31.52.15.165; posting-account=M2CWQwkAAADWPUlV1hc8zQLJMu5PmOBW
NNTP-Posting-Host: 31.52.15.165
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com> <spqolb$15g5$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a40fef00-4839-42f7-ab29-d0da8e321239n@googlegroups.com>
Subject: Re: Using the Print Screen Function from a program
From: jonbo...@partner400.com (Jon Paris)
Injection-Date: Tue, 21 Dec 2021 15:24:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 15
 by: Jon Paris - Tue, 21 Dec 2021 15:24 UTC

On Monday, December 20, 2021 at 8:22:07 PM UTC, angelo__ wrote:
> Il 19/12/2021 15:51, Thomas Welsch ha scritto:
> > I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.

The only programmatic way I know of doing this is via the DSM APIs. That allows you to capture the entire screen content as it currently appears to the user. Since you appear to want to simply extract some of the data on the screen that might be the way to go. You'd have to know where in the buffer the field(s) were or have some way of identifying them.

I can dig out an RPG example for you if you want. Just let me know.

Re: Using the Print Screen Function from a program

<e3e8e2ff-9001-4d9e-bc7c-22ddf6d8b620n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=36&group=comp.sys.ibm.as400.misc#36

  copy link   Newsgroups: comp.sys.ibm.as400.misc
X-Received: by 2002:a05:620a:11b5:: with SMTP id c21mr16334095qkk.278.1640720831577;
Tue, 28 Dec 2021 11:47:11 -0800 (PST)
X-Received: by 2002:ac8:7761:: with SMTP id h1mr19664172qtu.193.1640720831448;
Tue, 28 Dec 2021 11:47:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.ibm.as400.misc
Date: Tue, 28 Dec 2021 11:47:11 -0800 (PST)
In-Reply-To: <a40fef00-4839-42f7-ab29-d0da8e321239n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=95.91.218.234; posting-account=h1apWAoAAAAm4XU3fzohn_0ptRcxvQTP
NNTP-Posting-Host: 95.91.218.234
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>
<spqolb$15g5$1@gioia.aioe.org> <a40fef00-4839-42f7-ab29-d0da8e321239n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e3e8e2ff-9001-4d9e-bc7c-22ddf6d8b620n@googlegroups.com>
Subject: Re: Using the Print Screen Function from a program
From: jdc...@arcor.de (Thomas Welsch)
Injection-Date: Tue, 28 Dec 2021 19:47:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 16
 by: Thomas Welsch - Tue, 28 Dec 2021 19:47 UTC

Jon Paris schrieb am Dienstag, 21. Dezember 2021 um 16:24:56 UTC+1:
> On Monday, December 20, 2021 at 8:22:07 PM UTC, angelo__ wrote:
> > Il 19/12/2021 15:51, Thomas Welsch ha scritto:
> > > I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3.
> The only programmatic way I know of doing this is via the DSM APIs. That allows you to capture the entire screen content as it currently appears to the user. Since you appear to want to simply extract some of the data on the screen that might be the way to go. You'd have to know where in the buffer the field(s) were or have some way of identifying them.
>
> I can dig out an RPG example for you if you want. Just let me know.
This would be most helpful. Thanks in advance.

Re: Using the Print Screen Function from a program

<dc38604f-1350-4df4-8f2a-517ea893c827n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=37&group=comp.sys.ibm.as400.misc#37

  copy link   Newsgroups: comp.sys.ibm.as400.misc
X-Received: by 2002:ac8:5bca:: with SMTP id b10mr20178543qtb.170.1640722202123;
Tue, 28 Dec 2021 12:10:02 -0800 (PST)
X-Received: by 2002:a37:6892:: with SMTP id d140mr12905517qkc.310.1640722201981;
Tue, 28 Dec 2021 12:10:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.ibm.as400.misc
Date: Tue, 28 Dec 2021 12:10:01 -0800 (PST)
In-Reply-To: <e3e8e2ff-9001-4d9e-bc7c-22ddf6d8b620n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.153.97.40; posting-account=M2CWQwkAAADWPUlV1hc8zQLJMu5PmOBW
NNTP-Posting-Host: 81.153.97.40
References: <1f66cb2e-daf2-4acc-a33b-e95036a4bdffn@googlegroups.com>
<spqolb$15g5$1@gioia.aioe.org> <a40fef00-4839-42f7-ab29-d0da8e321239n@googlegroups.com>
<e3e8e2ff-9001-4d9e-bc7c-22ddf6d8b620n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dc38604f-1350-4df4-8f2a-517ea893c827n@googlegroups.com>
Subject: Re: Using the Print Screen Function from a program
From: jonbo...@partner400.com (Jon Paris)
Injection-Date: Tue, 28 Dec 2021 20:10:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 28
 by: Jon Paris - Tue, 28 Dec 2021 20:10 UTC

On Tuesday, December 28, 2021 at 7:47:12 PM UTC, jd...@arcor.de wrote:
> Jon Paris schrieb am Dienstag, 21. Dezember 2021 um 16:24:56 UTC+1:
> > On Monday, December 20, 2021 at 8:22:07 PM UTC, angelo__ wrote:
> > > Il 19/12/2021 15:51, Thomas Welsch ha scritto:
> > > > I would like to get a screen shot after a user presses a special function key. I will then call another program to process the QSYSPRT output for special purposes. I could, of course, easily transfer the output record of the screen file but I need the whole screen, constants etc. included. And I don't want to change the usual function of the Print Key. Is there an API or anything else callable which produces the QSYSPRT output? Using V7R3..
> > The only programmatic way I know of doing this is via the DSM APIs. That allows you to capture the entire screen content as it currently appears to the user. Since you appear to want to simply extract some of the data on the screen that might be the way to go. You'd have to know where in the buffer the field(s) were or have some way of identifying them.
> >
> > I can dig out an RPG example for you if you want. Just let me know.
> This would be most helpful. Thanks in advance.

I can't find just the specific piece of code - but the example I wrote for the RPG Error Handling redpiece gives you all that you need and is working code. You can find it here: http://www.systemideveloper.com/downloadFiles/REDBOOK.zip

If you don't have the redpiece - which explains the code - it is here: https://www.redbooks.ibm.com/redpapers/pdfs/redp4324.pdf

If you have any questions feel free to email me.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor