-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHCC.ahk
751 lines (728 loc) · 18 KB
/
HCC.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
; Hepatocellular Carcinoma Imaging Report Generator
; 以下變數用於在fileappend的開頭結束插入空白用的
; 平常跳行 Y+20; 有edit, text+25 edit+20 ; 段落+30
6_Space := " "
5_Space := " "
4_Space := " "
3_Space := " "
2_Space := " "
1_Space := " "
5_tab := " "
4_tab := " "
3_tab := " "
2_tab := " "
1_tab := " "
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
; GUI Configuration
Gui, Color, 85ddda
Gui, Font, cDefault, Arial
; Title
; Gui, Add, Text, Section vTitle, HCC Imaging Report
; ---------------Tumor Location and Size---------------
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y15 x20, 1. Tumor location / Size
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Checkbox, vTLS y15 x200, Not assessable
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y35 x40, Number:
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Checkbox, vOne y60 x40, One
Gui, Add, Checkbox, vTwo y60 x90, Two
Gui, Add, Checkbox, vMultiple0 y60 x140, Multiple:
Gui, Add, Edit, vMultiple1 y55 x210 w30
; 使用反引號來轉義分號
Gui, Add, Text, y115 x250, `;
Gui, Add, Checkbox, vInfiltrative y60 x260, Infiltrative or ill-defined lesions
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y80 x40, Location:
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Checkbox, vS1 y100 x40, S1
Gui, Add, Checkbox, vS2 y100 x80, S2
Gui, Add, Checkbox, vS3 y100 x120, S3
Gui, Add, Checkbox, vS4 y100 x160, S4
Gui, Add, Checkbox, vS5 y100 x200, S5
Gui, Add, Checkbox, vS6 y100 x240, S6
Gui, Add, Checkbox, vS7 y100 x280, S7
Gui, Add, Checkbox, vS8 y100 x320, S8
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y120 x40, Size:
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Text, y120 x84, (
Gui, Add, Checkbox, vNonM y120 x90, Non-measurable)
Gui, Add, Text, y145 x40, Measurable:
Gui, Add, Edit, vMeas y140 x120 w60
Gui, Add, Text, y145 x185, cm(the greatest tumor)
Gui, Add, Checkbox, vT1a y165 x40, T1a: solitary tumor <= 2cm
Gui, Add, Checkbox, vT1b y185 x40, T1b & T2: tumor > 2cm, without/with micro-vascular invasion
Gui, Add, Checkbox, vT2 y205 x40, T2: multiple tumors, <=5cm
Gui, Add, Checkbox, vT3 y225 x40, T3: multiple tumors, >5cm
; ---------------Tumor Characteristics---------------
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y255 x20, 2. Tumor Characteristics and Associated Liver Features
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Text, y255 x440, (
Gui, Add, Checkbox, vNonM1 y255 x445, Non-assessable)
Gui, Add, Radio, vMTypical y275 x40, yes
Gui, Add, Radio, y275 x83, no
Gui, Add, Radio, y275 x120, equivocal: Typical enhancement pattern
Gui, Add, Text, y275 x370, .
;不懂為何沒加個什麼東西上下兩個radio會被視為同一組單選而錯亂
Gui, Add, Radio, vMportal y295 x40, yes
Gui, Add, Radio, y295 x83, no
Gui, Add, Radio, y295 x120, equivocal: Major portal vein, location:
Gui, Add, Checkbox, vMPright y295 x355, Right
Gui, Add, Checkbox, vMPleft y295 x407, Left
Gui, Add, Checkbox, vMPmain y295 x452, Main
Gui, Add, Checkbox, vMPSMV y295 x502, SMV(T4)
Gui, Add, Radio, vMhepatic y315 x40, yes
Gui, Add, Radio, y315 x83, no
Gui, Add, Radio, y315 x120, equivocal: Major hepatic vein, location:
Gui, Add, Checkbox, vHPright y315 x365, Right
Gui, Add, Checkbox, vHPmid y315 x419, Middle
Gui, Add, Checkbox, vHPleft y315 x481, Left
Gui, Add, Checkbox, vHPIVC y315 x525, IVC(T4)
Gui, Add, Radio, vExtra y335 x40, yes
Gui, Add, Radio, y335 x83, no
Gui, Add, Radio, y335 x120, equivocal: Extra-hepatic spread(T4)
Gui, Add, Checkbox, vCirrhosis y355 x40, Cirrhosis
Gui, Add, Checkbox, vAscites y355 x120, Ascites
Gui, Add, Checkbox, vPort y355 x195, Portosystemic collateral vessel
; ---------------Regional nodal metastasis---------------
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y385 x20, 3. Regional nodal metastasis
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Text, y385 x238, (
Gui, Add, Checkbox, vRNon y385 x243, Non-measurable)
Gui, Add, Checkbox, vNo y405 x40, No
Gui, Add, Checkbox, vNequ y425 x40, Equivocal, location:
Gui, Add, Checkbox, vNhi y425 x175, hilar
Gui, Add, Checkbox, vNin y425 x223, inf. phrenic
Gui, Add, Checkbox, vNhe y425 x310, hepatoduodenal lig.
Gui, Add, Checkbox, vNca y425 x448, caval
Gui, Add, Checkbox, vNyes y445 x40, Yes, location:
Gui, Add, Checkbox, vYhi y445 x175, hilar
Gui, Add, Checkbox, vYin y445 x223, inf. phrenic
Gui, Add, Checkbox, vYhe y445 x310, hepatoduodenal lig.
Gui, Add, Checkbox, vYca y445 x448, caval
; ---------------Distant Metastasis---------------
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y475 x20, 4. Distant metastasis
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Text, y475 x165, (in this study)
Gui, Add, Checkbox, vDM0 y495 x40, No
Gui, Add, Checkbox, vDM1 y520 x40, Equivocal, location:
Gui, Add, Edit, vDM3 y515 x170 w250
Gui, Add, Checkbox, vDM2 y545 x40, Yes, location:
Gui, Add, Edit, vDM4 y540 x140 w250
; ---------------Other Findings---------------
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Text, y575 x20, 5. Other findings
Gui, Font ; 重置字體設置(不加這個 粗體改不回來)
Gui, Font, s10, Arial ; 恢復
Gui, Add, Edit, vOF0 y595 x20 w500
; Buttons
Gui, Font, s12 bold, Arial ; 改大改粗體
Gui, Add, Button, Default gGenerateReport y640 x20, Generate Report
Gui, Add, Button, gExit y640 x170, Exit
; Show GUI
Gui, Show, w600 h700, Hepatocellular Carcinoma Imaging Report Generator
return
; === 生成報告===
GenerateReport:
; Collect data from GUI
Gui, Submit, NoHide
; 刪除現有的 test.txt 文件
FileDelete, c:\temp\test.txt
; 將結果逐行輸入test.txt中
FormatTime, CurrentDate,, yyyy/MM/dd
FileAppend, Addtional report for cancer staging on %CurrentDate% `n, c:\temp\test.txt
FileAppend, =========================================== `n, c:\temp\test.txt
FileAppend, MCH Imaging Report for Hepatocellular Carcinoma (AJCC 8th) `n, c:\temp\test.txt
FileAppend, `n, c:\temp\test.txt ; 輸入空白行幫助排版
FileAppend, *本表單僅依據單次影像進行分期供腫瘤團隊參考,並不代表病人的臨床分期,臨床分期需綜合病人臨床發現、各種影像(包括各種內視鏡及超音波檢查)及病理表現來進行判斷,病人的最終臨床分期可能因癌症團隊討論有所異動,敬請參閱病歷首頁。 `n, c:\temp\test.txt
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;-------------------------------------------------------------
;--------------第二段-----------------------------------------------
FileAppend, 1. %1_Space%Tumor location / Size ( , c:\temp\test.txt
if TLS = 1
{
FileAppend, ■ Not assessable) `n, c:\temp\test.txt
}
if TLS = 0
{
FileAppend, □ Not assessable) `n, c:\temp\test.txt
}
FileAppend, %4_Space%Number: `n, c:\temp\test.txt
if One = 1
{
FileAppend, %4_Space%■ one %1_Space%, c:\temp\test.txt
}
if One = 0
{
FileAppend, %6_Space%□ one %1_Space%, c:\temp\test.txt
}
if Two = 1
{
FileAppend, ■ two %1_Space%, c:\temp\test.txt
}
if Two = 0
{
FileAppend, □ two %1_Space%, c:\temp\test.txt
}
if Multiple0 = 1
{
FileAppend, ■ Multiple: %1_Space%, c:\temp\test.txt
}
if Multiple0 = 0
{
FileAppend, □ Multiple: %1_Space%, c:\temp\test.txt
}
FileAppend,__%Multiple1%__%1_Space%, c:\temp\test.txt
FileAppend,
(
;%1_Space%
), c:\temp\test.txt
if Infiltrative = 1
{
FileAppend, ■ Infiltrative or ill-defined lesions %1_Space%, c:\temp\test.txt
}
if Infiltrative = 0
{
FileAppend, □ Infiltrative or ill-defined lesions %1_Space%, c:\temp\test.txt
}
FileAppend, %1_Space% `n, c:\temp\test.txt ; 跳行
FileAppend, %4_Space%Location: `n, c:\temp\test.txt
if S1 = 1
{
FileAppend, %6_Space%■ S1 %2_Space%, c:\temp\test.txt
}
if S1 = 0
{
FileAppend, %6_Space%□ S1 %2_Space%, c:\temp\test.txt
}
if S2 = 1
{
FileAppend, ■ S2 %2_Space%, c:\temp\test.txt
}
if S2 = 0
{
FileAppend, □ S2 %2_Space%, c:\temp\test.txt
}
if S3 = 1
{
FileAppend, ■ S3 %2_Space%, c:\temp\test.txt
}
if S3 = 0
{
FileAppend, □ S3 %2_Space%, c:\temp\test.txt
}
if S4 = 1
{
FileAppend, ■ S4 %2_Space%, c:\temp\test.txt
}
if S4 = 0
{
FileAppend, □ S4 %2_Space%, c:\temp\test.txt
}
if S5 = 1
{
FileAppend, ■ S5 %2_Space%, c:\temp\test.txt
}
if S5 = 0
{
FileAppend, □ S5 %2_Space%, c:\temp\test.txt
}
if S6 = 1
{
FileAppend, ■ S6 %2_Space%, c:\temp\test.txt
}
if S6 = 0
{
FileAppend, □ S6 %2_Space%, c:\temp\test.txt
}
if S7 = 1
{
FileAppend, ■ S7 %2_Space%, c:\temp\test.txt
}
if S7 = 0
{
FileAppend, □ S7 %2_Space%, c:\temp\test.txt
}
if S8 = 1
{
FileAppend, ■ S8 %2_Space%`n, c:\temp\test.txt
}
if S8 = 0
{
FileAppend, □ S8 %2_Space%`n, c:\temp\test.txt
}
FileAppend, %4_Space%Size: ( , c:\temp\test.txt
if NonM = 1
{
FileAppend, ■ Non-measurable) `n, c:\temp\test.txt
}
if NonM = 0
{
FileAppend, □ Non-measurable) `n, c:\temp\test.txt
}
FileAppend, %6_Space%Measurable:_%Meas%_cm (the greatest tumor)`n, c:\temp\test.txt
if T1a = 1
{
FileAppend, %6_Space%■ T1a: solitary tumor <= 2cm `n, c:\temp\test.txt
}
if T1a = 0
{
FileAppend, %6_Space%□ T1a: solitary tumor <= 2cm `n, c:\temp\test.txt
}
if T1b = 1
{
FileAppend,
(
%6_Space%■ T1b & T2: tumor > 2cm, without/with micro-vascular invasion
)`n, c:\temp\test.txt
}
if T1b = 0
{
FileAppend,
(
%6_Space%□ T1b & T2: tumor > 2cm, without/with micro-vascular invasion
)`n, c:\temp\test.txt
}
if T2 = 1
{
FileAppend,
(
%6_Space%■ T2: multiple tumors, <=5cm
)`n, c:\temp\test.txt
}
if T2 = 0
{
FileAppend,
(
%6_Space%□ T2: multiple tumors, <=5cm
)`n, c:\temp\test.txt
}
if T3 = 1
{
FileAppend,
(
%6_Space%■ T3: multiple tumors, >5cm
)`n, c:\temp\test.txt
}
if T3 = 0
{
FileAppend,
(
%6_Space%□ T3: multiple tumors, >5cm
)`n, c:\temp\test.txt
}
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;--------------第三段-----------------------------------------------
FileAppend, 2. %1_Space%Tumor Characteristics and Associated Liver Features( , c:\temp\test.txt
if NonM1= 1
{
FileAppend, ■ Non-assessable) %1_Space% `n, c:\temp\test.txt
}
if NonM1= 0
{
FileAppend, □ Non-assessable)%1_Space% `n, c:\temp\test.txt
}
If (MTypical = 1)
{
FileAppend, %4_Space%■ yes □ no □ equivocal: Typical enhancement pattern `n, c:\temp\test.txt
}
Else If (MTypical = 2)
{
FileAppend, %4_Space%□ yes ■ no □ equivocal: Typical enhancement pattern `n, c:\temp\test.txt
}
Else If (MTypical = 3)
{
FileAppend, %4_Space%□ yes □ no ■ equivocal: Typical enhancement pattern `n, c:\temp\test.txt
}
Else If (MTypical = 0)
{
FileAppend, %4_Space%□ yes □ no □ equivocal: Typical enhancement pattern `n, c:\temp\test.txt
}
If (Mportal=1)
{
FileAppend,
(
%4_Space%■ yes □ no □ equivocal: Major portal vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mportal=2)
{
FileAppend,
(
%4_Space%□ yes ■ no □ equivocal: Major portal vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mportal=3)
{
FileAppend,
(
%4_Space%□ yes □ no ■ equivocal: Major portal vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mportal=0)
{
FileAppend,
(
%4_Space%□ yes □ no □ equivocal: Major portal vein, location:%1_Space%
), c:\temp\test.txt
}
if MPright= 1
{
FileAppend, ■ Right%1_Space%, c:\temp\test.txt
}
if MPright= 0
{
FileAppend, □ Right%1_Space%, c:\temp\test.txt
}
if MPleft= 1
{
FileAppend, ■ Left%1_Space%, c:\temp\test.txt
}
if MPleft= 0
{
FileAppend, □ Left%1_Space%, c:\temp\test.txt
}
if MPmain= 1
{
FileAppend, ■ Main%1_Space%, c:\temp\test.txt
}
if MPmain= 0
{
FileAppend, □ Main%1_Space%, c:\temp\test.txt
}
if MPSMV= 1
{
FileAppend, ■ SMV(T4)`n, c:\temp\test.txt
}
if MPSMV= 0
{
FileAppend, □ SMV(T4)`n, c:\temp\test.txt
}
If (Mhepatic=1)
{
FileAppend,
(
%4_Space%■ yes □ no □ equivocal: Major hepatic vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mhepatic=2)
{
FileAppend,
(
%4_Space%□ yes ■ no □ equivocal: Major hepatic vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mhepatic=3)
{
FileAppend,
(
%4_Space%□ yes □ no ■ equivocal: Major hepatic vein, location:%1_Space%
), c:\temp\test.txt
}
Else If (Mhepatic=0)
{
FileAppend,
(
%4_Space%□ yes □ no □ equivocal: Major hepatic vein, location:%1_Space%
), c:\temp\test.txt
}
if HPright= 1
{
FileAppend, ■ Right%1_Space%, c:\temp\test.txt
}
if HPright= 0
{
FileAppend, □ Right%1_Space%, c:\temp\test.txt
}
if HPmid= 1
{
FileAppend, ■ Middle%1_Space%, c:\temp\test.txt
}
if HPmid= 0
{
FileAppend, □ Middle%1_Space%, c:\temp\test.txt
}
if HPleft= 1
{
FileAppend, ■ Left%1_Space%, c:\temp\test.txt
}
if HPleft= 0
{
FileAppend, □ Left%1_Space%, c:\temp\test.txt
}
if HPIVC= 1
{
FileAppend, ■ IVC(T4)`n, c:\temp\test.txt
}
if HPIVC= 0
{
FileAppend, □ IVC(T4)`n, c:\temp\test.txt
}
If (Extra=1)
{
FileAppend,
(
%4_Space%■ yes □ no □ equivocal: Extra-hepatic spread(T4)`n
), c:\temp\test.txt
}
Else If (Extra=2)
{
FileAppend,
(
%4_Space%□ yes ■ no □ equivocal: Extra-hepatic spread(T4)`n
), c:\temp\test.txt
}
Else If (Extra=3)
{
FileAppend,
(
%4_Space%□ yes □ no ■ equivocal: Extra-hepatic spread(T4)`n
), c:\temp\test.txt
}
Else If (Extra=0)
{
FileAppend,
(
%4_Space%□ yes □ no □ equivocal: Extra-hepatic spread(T4)`n
), c:\temp\test.txt
}
if Cirrhosis= 1
{
FileAppend, %4_Space%■ Cirrhosis %3_Space%, c:\temp\test.txt
}
if Cirrhosis= 0
{
FileAppend, %4_Space%□ Cirrhosis %3_Space%, c:\temp\test.txt
}
if Ascites= 1
{
FileAppend, ■ Ascites %3_Space%, c:\temp\test.txt
}
if Ascites= 0
{
FileAppend, □ Ascites %3_Space%, c:\temp\test.txt
}
if Port= 1
{
FileAppend, ■ Portosystemic collateral vessel `n, c:\temp\test.txt
}
if Port= 0
{
FileAppend, □ Portosystemic collateral vessel `n, c:\temp\test.txt
}
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;--------------第四段-----------------------------------------------
FileAppend, 3. %1_Space%Regional node metastasis%2_Space%(, c:\temp\test.txt
if RNon= 1
{
FileAppend, ■ Non-measurable) `n, c:\temp\test.txt
}
if RNon= 0
{
FileAppend, □ Non-measurable) `n, c:\temp\test.txt
}
if No= 1
{
FileAppend, %4_Space%■ No `n, c:\temp\test.txt
}
if No= 0
{
FileAppend, %4_Space%□ No `n, c:\temp\test.txt
}
if Nequ= 1
{
FileAppend,
(
%4_Space%■ Equivocal, location:%1_Space%
), c:\temp\test.txt
}
if Nequ= 0
{
FileAppend,
(
%4_Space%□ Equivocal, location:%1_Space%
), c:\temp\test.txt
}
if Nhi= 1
{
FileAppend,
(
■ hilar %2_Space%
), c:\temp\test.txt
}
if Nhi= 0
{
FileAppend,
(
□ hilar %2_Space%
), c:\temp\test.txt
}
if Nin= 1
{
FileAppend,
(
■ inf. phrenic %2_Space%
), c:\temp\test.txt
}
if Nin= 0
{
FileAppend,
(
□ inf. phrenic %2_Space%
), c:\temp\test.txt
}
if Nhe= 1
{
FileAppend,
(
■ hepatoduodenal lig. %2_Space%
), c:\temp\test.txt
}
if Nhe= 0
{
FileAppend,
(
□ hepatoduodenal lig. %2_Space%
), c:\temp\test.txt
}
if Nca= 1
{
FileAppend, ■ caval `n, c:\temp\test.txt
}
if Nca= 0
{
FileAppend, □ caval `n, c:\temp\test.txt
}
if Nyes= 1
{
FileAppend,
(
%4_Space%■ Yes, location:%6_Space%%5_Space%%1_Space%
), c:\temp\test.txt
}
if Nyes= 0
{
FileAppend,
(
%4_Space%□ Yes, location:%6_Space%%5_Space%%1_Space%
), c:\temp\test.txt
}
if Yhi= 1
{
FileAppend,
(
■ hilar %2_Space%
), c:\temp\test.txt
}
if Yhi= 0
{
FileAppend,
(
□ hilar %2_Space%
), c:\temp\test.txt
}
if Yin= 1
{
FileAppend,
(
■ inf. phrenic %2_Space%
), c:\temp\test.txt
}
if Yin= 0
{
FileAppend,
(
□ inf. phrenic %2_Space%
), c:\temp\test.txt
}
if Yhe= 1
{
FileAppend,
(
■ hepatoduodenal lig. %2_Space%
), c:\temp\test.txt
}
if Yhe= 0
{
FileAppend,
(
□ hepatoduodenal lig. %2_Space%
), c:\temp\test.txt
}
if Yca= 1
{
FileAppend, ■ caval `n, c:\temp\test.txt
}
if Yca= 0
{
FileAppend, □ caval `n, c:\temp\test.txt
}
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;--------------第五段-----------------------------------------------
FileAppend, 4. %1_Space%Distant metastasis(in this study)`n, c:\temp\test.txt
if DM0= 1
{
FileAppend, %4_Space%■ No %1_Space%, c:\temp\test.txt
}
if DM0 = 0
{
FileAppend, %4_Space%□ No %1_Space%, c:\temp\test.txt
}
FileAppend, `n, c:\temp\test.txt ;跳行
if DM1= 1
{
FileAppend,
(
%4_Space%■ Equivocal, location: %1_Space%__%DM3%__
), c:\temp\test.txt
}
if DM1 = 0
{
FileAppend,
(
%4_Space%□ Equivocal, location: _____%DM3%______
), c:\temp\test.txt
}
FileAppend, %2_Space%`n, c:\temp\test.txt
if DM2= 1
{
FileAppend,
(
%4_Space%■ Yes, location: %1_Space%__%DM4%__
)`n, c:\temp\test.txt
}
if DM2 = 0
{
FileAppend,
(
%4_Space%□ Yes, location: _____%DM4%______
)`n, c:\temp\test.txt
}
FileAppend, %2_Space% `n, c:\temp\test.txt ; 輸入空白行幫助排版
;-------------------------------------------------------------
FileAppend, 5. %1_Space%Other findings: `n, c:\temp\test.txt
FileAppend, %4_Space%______%OF0%________ `n, c:\temp\test.txt
; ==================================
FileRead, ClipboardContent, c:\temp\test.txt
; 將內容複製到剪貼簿
Clipboard := ClipboardContent
MsgBox, %Clipboard%
return
Exit:
GuiClose:
ExitApp
return