Développer et télécharger des logiciels Open Source

Browse Subversion Repository

Annotation of /trunk/installer/release/screencapture.ttl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3221 - (hide annotations) (download)
Tue Mar 24 09:37:20 2009 UTC (15 years, 2 months ago) by maya
File size: 1602 byte(s)
CVS から SVN へ移行: trunk に集約
1 doda 1214 ; sample macro of Tera Term
2 maya 1187 ;
3     ; File: screencapture.ttl
4     ; Description: capture screen contents and write to file
5     ; Environment: generic
6     ; Update: 2007/11/25, 12/5, 2008/01/30
7     ; Author: IWAMOTO Kouichi (doda), Yutaka Hirata
8     ; Tips:
9     ; It is recommended that you will add in the following entry
10     ; in `KEYBOARD.CNF' file because you can capture your screen
11     ; at one's fingertrips.
12     ;
13     ; [User keys]
14     ; ;Shift + F12
15     ; User1=600,2,screencapture.ttl
16     ;
17    
18     ; Configuration
19    
20     appendmode = 1 ; 0 or 1
21    
22     ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
23    
24     getdate header #13#10"======== %Y-%m-%d %H:%M:%S ==========================================="#13#10#13#10
25    
26     if appendmode=0 then
27     ; call makefilename
28     getdate filename "screencapture_%Y%m%d-%H%M%S.txt"
29     fileopen fp filename 0
30     else
31     fileopen fp 'screencapture.txt' 1
32     endif
33    
34     if result <> 0 end
35    
36     ;select screen
37     callmenu 50280
38    
39     mpause 500
40    
41     filewrite fp header
42    
43     offset = 0
44     do
45     clipb2var buff offset
46     if result>0 filewrite fp buff
47     offset = offset + 1
48     loop while result = 2
49    
50     fileclose fp
51    
52     ;reset selection
53     callmenu 50270
54    
55     end
56    
57    
58     :makefilename
59     getdate StrDate
60     gettime StrTime
61     ;1234567890
62     ;YYYY-MM-DD
63     strcopy StrDate 1 4 DateY ;YYYY
64     strcopy StrDate 6 2 DateM ; MM
65     strcopy StrDate 9 2 DateD ; DD
66    
67     ;1234567890
68     ;HH:MM:SS
69     strcopy StrTime 1 2 TimeH ;HH
70     strcopy StrTime 4 2 TimeM ; MM
71     strcopy StrTime 7 2 TimeS ; SS
72    
73     sprintf "screencapture_%s%s%s-%s%s%s.txt" DateY DateM DateD TimeH TimeM TimeS
74     filename = inputstr
75     return

Properties

Name Value
svn:executable *

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26