Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
146 views
in Technique[技术] by (71.8m points)

How to take screen shots in windows system using Intersystems Cache?

How to take screen shots in windows system using inter systems cache?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Cache doesn't have any built-in way to directly take a screen shot, so the closest you could come is to have a Caché process call something that does know how to take a screen shot. The ways to call out from cache are documented on the Intersystems web site and this same documentation is usually included in a Caché install.

The simplest option (and you don't give enough information to know whether that will work) is probably to call something like $zf(-1,"import -window root screen.jpeg"). In this example, "import -window root screen.jpeg" is a command-line call. $zf(-1) spawns a child process and runs whatever text you give in the second parameter as a command-line call.

I got the specific text for this call from a question on superuser, which you might want to look at if you don't have a screen shot program available that can be called from the command prompt.

If that doesn't work for you, there are other options than $zf(-1) available, but you will probably need to read the linked documentation to decide what works best.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...