-
Notifications
You must be signed in to change notification settings - Fork 0
/
hmPython.py
1465 lines (1316 loc) · 75.1 KB
/
hmPython.py
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
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#-------------------- coding: utf-8 ---------------------------
# hmPython3 3.0.2.1用 ライブラリ
# Copyright (c) 2017-2024 Akitsugu Komiyama
# under the Apache License Version 2.0
#--------------------------------------------------------------
import hidemaru
import os
import random
__version__ = hidemaru.__version__
class _TText:
class _TEncoding:
def __init__(self, name, codepage, hm_encode):
self.name = name # Pythonでファイルを開く際にエンコードとして指定できる文字列( "cp932" や "utf8" など )
self.codepage = codepage # マイクロソフトコードページの番号が入っている (932 や 65001 など)
self.hm_encode = hm_encode # 秀丸の encode としての値が入っている ( 1 や 6 など )
class _TFile:
"""
秀丸でファイル関連のクラス
"""
class _TStreamReader:
def __init__(self, filepath, hm_encode=-1):
try:
if not os.path.exists(filepath):
raise FileNotFoundError
if hm_encode == -1:
encoding_name, codepage, hm_encode = hidemaru.file.get_encodingfromfile(filepath)
else:
encoding_name, codepage, hm_encode = hidemaru.file.get_encodingfromhmencode(hm_encode)
self.__encoding = _TText._TEncoding(encoding_name, codepage, hm_encode)
self.__filepath = filepath
except:
raise
def __enter__(self):
return self
def __GetEncoding(self):
return self.__encoding
# 開いたファイルのエンコーディング情報の取得
Encoding = property(__GetEncoding)
def __GetFilePath(self):
return self.__filepath
# ファイルパス
FilePath = property(__GetFilePath)
# 開いたファイルのテキストの取得
def Read(self):
try:
if self.__filepath:
success, text = hidemaru.file.get_readalltext(self.__filepath, self.__encoding.hm_encode)
if success:
return text
else:
raise IOError
except:
raise
def Close(self):
self.__encoding = None
self.__filepath = None
def __exit__(self, exception_type, exception_value, traceback):
self.Close()
# ファイルを開く。
def Open(self, filepath, hm_encode=-1):
return _TFile._TStreamReader(filepath, hm_encode)
# 対象のファイルの encode (秀丸マクロの encode 変数の表を参照) を得る。
def GetEncoding(self, filepath):
try:
if not os.path.exists(filepath):
raise FileNotFoundError
encoding_name, codepage, hm_encode = hidemaru.file.get_encodingfromfile(filepath)
return _TText._TEncoding(encoding_name, codepage, hm_encode)
except:
raise
class _TEdit:
"""
秀丸で編集中のドキュメント関連のクラス
"""
def __GetFilePath(self):
filepath = hidemaru.edit.get_filepath()
if not filepath:
return None
else:
return filepath
# 編集中のファイルのパスを返す。ファイル名が決まってなければNoneを返す。
FilePath = property(__GetFilePath)
#--------------------------------------------------
def __GetTotalText(self):
return hidemaru.edit.get_totaltext()
def __SetTotalText(self, text):
return hidemaru.edit.set_totaltext(text)
# 編集中のテキスト全体
TotalText = property(__GetTotalText, __SetTotalText)
#--------------------------------------------------
#--------------------------------------------------
def __GetSelectedText(self):
return hidemaru.edit.get_selectedtext()
def __SetSelectedText(self, text):
return hidemaru.edit.set_selectedtext(text)
# 選択中のテキスト。通常選択もしくは行選択のみ(矩形選択は対象としない)
SelectedText = property(__GetSelectedText, __SetSelectedText)
#--------------------------------------------------
#--------------------------------------------------
def __GetLineText(self):
return hidemaru.edit.get_linetext()
def __SetLineText(self, text):
return hidemaru.edit.set_linetext(text)
# カーソルがある行のテキスト
LineText = property(__GetLineText, __SetLineText)
#--------------------------------------------------
#--------------------------------------------------
class _TCursorPos:
def __init__(self, lineno, column):
self.lineno = lineno
self.column = column
def __GetCursorPos(self):
lineno, column = hidemaru.edit.get_cursorpos()
return _TEdit._TCursorPos(lineno, column)
# カーソルの位置情報。linenoとcolumn(マクロのlinenoとcolumnと同じ値)
CursorPos = property(__GetCursorPos)
#--------------------------------------------------
#--------------------------------------------------
class _TMousePos:
def __init__(self, lineno, column, x, y):
self.lineno = lineno
self.column = column
self.x = x
self.y = y
def __GetMousePos(self):
lineno, column, x, y = hidemaru.edit.get_mousepos()
return _TEdit._TMousePos(lineno, column, x, y)
# マウスの位置に対応するカーソルの情報。
# linenoとcolumn(マクロのlinenoとcolumnと同じ値) xとyは、win32 apiのマウス位置情報と同じ
MousePos = property(__GetMousePos)
#--------------------------------------------------
class _TMacro:
"""
秀丸マクロ関連のクラス
"""
class _TAsStatement:
"""
秀丸マクロ関連のうち、括弧がなく値が変えられない秀丸組み込みの(関数のように使う)文のラップを表すクラス
"""
def __getattr__(self, statement_name):
return lambda *args: self.closure(statement_name, *args)
def __call__(self, statement_name, *args):
return self.closure(statement_name, *args)
def closure(self, statement_name, *args):
value_list = []
type_list = []
for arg in args:
if type(arg) is int or type(arg) is bool or type(arg) is float:
value_list.append(int(arg))
type_list.append('int')
elif type(arg) is list or type(arg) is tuple:
if all(type(e) is str for e in arg):
value_list.append(tuple(arg))
type_list.append('array_str')
elif all((type(e) is int or type(e) is float or type(e) is bool) for e in arg):
modify_list = [int(e) for e in arg]
value_list.append(tuple(modify_list))
type_list.append('array_int')
else:
value_list.append(str(arg))
type_list.append('str')
res, msg, errmsg, args = hidemaru.macro.do_statement(statement_name, tuple(value_list), tuple(type_list))
ret = _TMacro._TStatementResult(res, msg, errmsg, args)
return ret
class _TAsFunction:
"""
秀丸マクロ関連のうち、括弧があり値が返る秀丸組み込みの関数のラップを表すクラス
"""
def __getattr__(self, function_name):
return lambda *args: self.closure(function_name, *args)
def __call__(self, statement_name, *args):
return self.closure(statement_name, *args)
def closure(self, function_name, *args):
value_list = []
type_list = []
for arg in args:
if type(arg) is int or type(arg) is bool or type(arg) is float:
value_list.append(int(arg))
type_list.append('int')
else:
value_list.append(str(arg))
type_list.append('str')
res, msg, errmsg, args = hidemaru.macro.do_function(function_name, tuple(value_list), tuple(type_list))
ret = _TMacro._TFunctionResult(res, msg, errmsg, args)
return ret
#--------------------------------------------------
class _TVar:
"""
秀丸マクロ関連のうち、マクロシンボル(マクロ変数)を扱うクラス
"""
def __getitem__(self, varname):
return hidemaru.macro.get_var(varname)
def __setitem__(self, varname, value):
if not varname.startswith("#") and not varname.startswith("$"):
hidemaru.debug_info("指定のマクロ変数への値の代入は出来ません: " + varname)
hidemaru.macro.set_var(varname, value)
raise NameError(varname)
else:
return hidemaru.macro.set_var(varname, value)
def __getattr__(self, varname):
return hidemaru.macro.get_var(varname)
#--------------------------------------------------
#--------------------------------------------------
class _TResult:
"""
秀丸マクロ関連のうち、マクロ実行結果情報を扱うクラス
"""
def __init__(self, Result, Message, ErrorMsg):
self.Result = Result
self.Message = Message
if Result >= 1:
self.Error = None
else:
self.Error = RuntimeError(ErrorMsg)
#--------------------------------------------------
class _TStatementResult:
"""
秀丸マクロ関連のうち、マクロ実行結果情報を扱うクラス
"""
def __init__(self, Result, Message, ErrorMsg, Args):
self.Result = Result
self.Message = Message
self.Args = tuple(Args)
if ErrorMsg == "":
self.Error = None
else:
self.Error = RuntimeError(ErrorMsg)
#--------------------------------------------------
class _TFunctionResult:
"""
秀丸マクロ関連のうち、マクロ実行結果情報を扱うクラス
"""
def __init__(self, Result, Message, ErrorMsg, Args):
self.Result = Result
self.Message = Message
self.Args = tuple(Args)
if Result != None:
self.Error = None
else:
self.Error = RuntimeError(ErrorMsg)
#--------------------------------------------------
def __init__(self):
self.Var = _TMacro._TVar()
self.Function = _TMacro._TAsFunction();
self.Statement = _TMacro._TAsStatement();
self.Flags = _TMacro._TFlags
#--------------------------------------------------
#--------------------------------------------------
# マクロの実行
def Eval(self, expression_text):
res, msg, errmsg = hidemaru.macro.do_eval(expression_text)
ret = _TMacro._TResult(res, msg, errmsg)
return ret
#--------------------------------------------------
# 秀丸マクロで用いられる特定の関数でのみ使用可能なフラグ値。主に検索・置換・Grep系、そしてエンコード系。
class _TFlags:
# openfile等のencode相当
class Encode:
Sjis = 0x01;
Utf16 = 0x02;
Euc = 0x03;
Jis = 0x04;
Utf7 = 0x05;
Utf8 = 0x06;
Utf16_be = 0x07;
Euro = 0x08;
Gb2312 = 0x09;
Big5 = 0x0a;
Euckr = 0x0b;
Johab = 0x0c;
Easteuro = 0x0d;
Baltic = 0x0e;
Greek = 0x0f;
Russian = 0x10;
Symbol = 0x11;
Turkish = 0x12;
Hebrew = 0x13;
Arabic = 0x14;
Thai = 0x15;
Vietnamese = 0x16;
Mac = 0x17;
Oem = 0x18;
Default = 0x19;
Utf32 = 0x1b;
Utf32_be = 0x1c;
Binary = 0x1a;
LF = 0x40;
CR = 0x80;
# SAVEASの他のオプションの数値指定
Bom = 0x0600;
NoBom = 0x0400;
Selection = 0x2000;
# OPENFILEの他のオプションの数値指定
NoAddHist = 0x0100;
WS = 0x0800;
WB = 0x1000;
# searchoption(検索関係)
class SearchOption:
# searchoption(検索関係)
Word = 0x00000001;
Casesense = 0x00000002;
NoCasesense = 0x00000000;
Regular = 0x00000010;
NoRegular = 0x00000000;
Fuzzy = 0x00000020;
Hilight = 0x00003800;
NoHilight = 0x00002000;
LinkNext = 0x00000080;
Loop = 0x01000000;
# searchoption(マスク関係)
MaskComment = 0x00020000;
MaskIfdef = 0x00040000;
MaskNormal = 0x00010000;
MaskScript = 0x00080000;
MaskString = 0x00100000;
MaskTag = 0x00200000;
MaskOnly = 0x00400000;
FEnableMaskFlags = 0x00800000;
# searchoption(置換関係)
FEnableReplace = 0x00000004;
Ask = 0x00000008;
NoClose = 0x02000000;
# searchoption(grep関係)
SubDir = 0x00000100;
Icon = 0x00000200;
Filelist = 0x00000040;
FullPath = 0x00000400;
OutputSingle = 0x10000000;
OutputSameTab = 0x20000000;
# searchoption(grepして置換関係)
BackUp = 0x04000000;
Preview = 0x08000000;
FEnableSearchOption2 = 0x80000000
# searchoption(検索関係拡張)
class SearchOption2:
UnMatch = 0x00000001;
InColorMarker = 0x00000002;
FGrepFormColumn = 0x00000008;
FGrepFormHitOnly = 0x00000010;
FGrepFormSortDate = 0x00000020;
class _TOutputPane:
"""
秀丸アウトプットペイン関連のクラス
"""
# アウトプット枠への出力
def Output(self, obj):
return hidemaru.outputpane.output(obj)
# アウトプット枠情報の一時退避
def Push(self):
return hidemaru.outputpane.push()
# アウトプット枠情報の一時退避したものを復元
def Push(self):
return hidemaru.outputpane.pop()
# アウトプット枠のクリア
def Clear(self):
return hidemaru.outputpane.clear()
# アウトプット枠にメッセージを送る
def SendMessage(self, command_id):
return hidemaru.outputpane.sendmessage(command_id)
# アウトプット枠の基底ディレクトリを設定する
def SetBaseDir(self, dirpath):
return hidemaru.outputpane.setbasedir(dirpath)
class _TExplorerPane:
"""
秀丸ファイルマネージャペイン関連のクラス
"""
# ファイルマネージャ枠のモードの設定
def SetMode(self, mode):
return hidemaru.explorerpane.setmode(mode)
# ファイルマネージャ枠のモードの取得
def GetMode(self):
return hidemaru.explorerpane.getmode()
# ファイルマネージャ枠に指定のファイルのプロジェクトを読み込む
def LoadProject(self, filepath):
return hidemaru.explorerpane.loadproject(filepath)
# ファイルマネージャ枠のプロジェクトを指定ファイルに保存
def SaveProject(self, filepath):
return hidemaru.explorerpane.saveproject(filepath)
# ファイルマネージャ枠が「プロジェクト」表示のとき、更新された状態であるかどうかを返します
def GetUpdated(self):
return hidemaru.explorerpane.getupdated()
# ファイルマネージャ枠にメッセージを送る
def SendMessage(self, command_id):
return hidemaru.explorerpane.sendmessage(command_id)
# ファイルマネージャ枠にプロジェクトを読み込んでいるならば、そのファイルパスを取得する(読み込んでいなければNoneが返る)
def GetProject(self):
filepath = hidemaru.explorerpane.getproject()
if not filepath:
return None
else:
return filepath
# ファイルマネージャ枠のカレントディレクトリを返す
def GetCurrentDir(self):
dirpath = hidemaru.explorerpane.getcurrentdir()
if not dirpath:
return None
else:
return dirpath
class _THidemaru:
"""
特定のカテゴリに所属しないようなもの
"""
#--------------------------------------------------
def __init__(self):
self.File = _TFile()
self.Edit = _TEdit()
self.Macro = _TMacro()
self.OutputPane = _TOutputPane()
self.ExplorerPane = _TExplorerPane()
#--------------------------------------------------
#--------------------------------------------------
# デバッグモニターに出力
def debuginfo(self, obj):
return hidemaru.debug_info(obj)
#--------------------------------------------------
#--------------------------------------------------
def __GetVersion(self):
return hidemaru.get_version()
# 秀丸のバージョンを 866.05 のような形で取得。
# 「β5」なら少数部分が「05」のような形。
# 正式版だと、866.99 のように「99」となる。
version = property(__GetVersion)
#--------------------------------------------------
hm = _THidemaru()
# 非公開
def _method_proxy(name, t, *args):
if t == "fn" or t == "fs":
count = len(args)
if (count == 0):
return hm.Macro.Var[name]
elif (count > 0):
return hm.Macro.Function(name, *args).Result
elif t == "fs0":
return hm.Macro.Function(name, *args).Result
elif t == "fsn":
count = len(args)
if (count == 0):
return hm.Macro.Var[name]
elif (count > 0):
return hm.Macro.Function(name, *args).Result
elif t=="fn1s":
list_args = list(args)
if len(list_args) >= 1:
list_args[0] = str(args[0])
return hm.Macro.Function(name, *list_args).Result
elif t=="fn1s2s":
list_args = list(args)
if len(list_args) >= 1:
list_args[0] = str(args[0])
if len(list_args) >= 2:
list_args[1] = str(args[1])
return hm.Macro.Function(name, *list_args).Result
elif t=="st":
return hm.Macro.Statement(name, *args).Result
elif t=="st1s":
list_args = list(args)
if len(list_args) >= 1:
list_args[0] = str(args[0])
return hm.Macro.Statement(name, *list_args).Result
elif t=="st1s2s":
list_args = list(args)
if len(list_args) >= 1:
list_args[0] = str(args[0])
if len(list_args) >= 2:
list_args[1] = str(args[1])
return hm.Macro.Statement(name, *list_args).Result
def gettotaltext(): return hm.Edit.TotalText;
def settotaltext(s): hm.Edit.TotalText=s; return hm.Macro.Var["result"];
def getlinetext(*args): return _method_proxy("getlinetext", "fs0", *args);
def getselectedtext(*args): return _method_proxy("getselectedtext", "fs0", *args);
def result(*args): return _method_proxy("result", "fn", *args);
def version(*args): return _method_proxy("version", "fn", *args);
def platform(*args): return _method_proxy("platform", "fn", *args);
def darkmode(*args): return _method_proxy("darkmode", "fn", *args);
def x(*args): return _method_proxy("x", "fn", *args);
def y(*args): return _method_proxy("y", "fn", *args);
def column(*args): return _method_proxy("column", "fn", *args);
def column_wcs(*args): return _method_proxy("column_wcs", "fn", *args);
def column_ucs4(*args): return _method_proxy("column_ucs4", "fn", *args);
def column_cmu(*args): return _method_proxy("column_cmu", "fn", *args);
def column_gcu(*args): return _method_proxy("column_gcu", "fn", *args);
def lineno(*args): return _method_proxy("lineno", "fn", *args);
def tabcolumn(*args): return _method_proxy("tabcolumn", "fn", *args);
def xview(*args): return _method_proxy("xview", "fn", *args);
def code(*args): return _method_proxy("code", "fn", *args);
def unicode(*args): return _method_proxy("unicode", "fn", *args);
def colorcode(*args): return _method_proxy("colorcode", "fn", *args);
def marked(*args): return _method_proxy("marked", "fn", *args);
def lineupdated(*args): return _method_proxy("lineupdated", "fn", *args);
def xpixel(*args): return _method_proxy("xpixel", "fn", *args);
def ypixel(*args): return _method_proxy("ypixel", "fn", *args);
def xpixel2(*args): return _method_proxy("xpixel2", "fn", *args);
def ypixel2(*args): return _method_proxy("ypixel2", "fn", *args);
def prevposx(*args): return _method_proxy("prevposx", "fn", *args);
def prevposy(*args): return _method_proxy("prevposy", "fn", *args);
def lastupdatedx(*args): return _method_proxy("lastupdatedx", "fn", *args);
def lastupdatedy(*args): return _method_proxy("lastupdatedy", "fn", *args);
def mousecolumn(*args): return _method_proxy("mousecolumn", "fn", *args);
def mouselineno(*args): return _method_proxy("mouselineno", "fn", *args);
def linecount(*args): return _method_proxy("linecount", "fn", *args);
def linecount2(*args): return _method_proxy("linecount2", "fn", *args);
def linelen(*args): return _method_proxy("linelen", "fn", *args);
def linelen2(*args): return _method_proxy("linelen2", "fn", *args);
def linelen_wcs(*args): return _method_proxy("linelen_wcs", "fn", *args);
def linelen_ucs4(*args): return _method_proxy("linelen_ucs4", "fn", *args);
def linelen_cmu(*args): return _method_proxy("linelen_cmu", "fn", *args);
def linelen_gcu(*args): return _method_proxy("linelen_gcu", "fn", *args);
def tabcolumnmax(*args): return _method_proxy("tabcolumnmax", "fn", *args);
def selecting(*args): return _method_proxy("selecting", "fn", *args);
def rectselecting(*args): return _method_proxy("rectselecting", "fn", *args);
def lineselecting(*args): return _method_proxy("lineselecting", "fn", *args);
def selectionlock(*args): return _method_proxy("selectionlock", "fn", *args);
def mouseselecting(*args): return _method_proxy("mouseselecting", "fn", *args);
def multiselecting(*args): return _method_proxy("multiselecting", "fn", *args);
def multiselectcount(*args): return _method_proxy("multiselectcount", "fn", *args);
def inselecting(*args): return _method_proxy("inselecting", "fn", *args);
def seltopx(*args): return _method_proxy("seltopx", "fn", *args);
def seltopy(*args): return _method_proxy("seltopy", "fn", *args);
def selendx(*args): return _method_proxy("selendx", "fn", *args);
def selendy(*args): return _method_proxy("selendy", "fn", *args);
def seltopcolumn(*args): return _method_proxy("seltopcolumn", "fn", *args);
def seltoplineno(*args): return _method_proxy("seltoplineno", "fn", *args);
def selendcolumn(*args): return _method_proxy("selendcolumn", "fn", *args);
def selendlineno(*args): return _method_proxy("selendlineno", "fn", *args);
def seltop_wcs(*args): return _method_proxy("seltop_wcs", "fn", *args);
def seltop_ucs4(*args): return _method_proxy("seltop_ucs4", "fn", *args);
def seltop_cmu(*args): return _method_proxy("seltop_cmu", "fn", *args);
def seltop_gcu(*args): return _method_proxy("seltop_gcu", "fn", *args);
def selend_wcs(*args): return _method_proxy("selend_wcs", "fn", *args);
def selend_ucs4(*args): return _method_proxy("selend_ucs4", "fn", *args);
def selend_cmu(*args): return _method_proxy("selend_cmu", "fn", *args);
def selend_gcu(*args): return _method_proxy("selend_gcu", "fn", *args);
def selopenx(*args): return _method_proxy("selopenx", "fn", *args);
def selopeny(*args): return _method_proxy("selopeny", "fn", *args);
def windowwidth(*args): return _method_proxy("windowwidth", "fn", *args);
def windowheight(*args): return _method_proxy("windowheight", "fn", *args);
def windowcx(*args): return _method_proxy("windowcx", "fn", *args);
def windowcy(*args): return _method_proxy("windowcy", "fn", *args);
def windowposx(*args): return _method_proxy("windowposx", "fn", *args);
def windowposy(*args): return _method_proxy("windowposy", "fn", *args);
def splitstate(*args): return _method_proxy("splitstate", "fn", *args);
def splitmode(*args): return _method_proxy("splitmode", "fn", *args);
def splitpos(*args): return _method_proxy("splitpos", "fn", *args);
def windowstate(*args): return _method_proxy("windowstate", "fn", *args);
def windowstate2(*args): return _method_proxy("windowstate2", "fn", *args);
def cxscreen(*args): return _method_proxy("cxscreen", "fn", *args);
def cyscreen(*args): return _method_proxy("cyscreen", "fn", *args);
def xworkarea(*args): return _method_proxy("xworkarea", "fn", *args);
def yworkarea(*args): return _method_proxy("yworkarea", "fn", *args);
def cxworkarea(*args): return _method_proxy("cxworkarea", "fn", *args);
def cyworkarea(*args): return _method_proxy("cyworkarea", "fn", *args);
def monitor(*args): return _method_proxy("monitor", "fn", *args);
def monitorcount(*args): return _method_proxy("monitorcount", "fn", *args);
def tabmode(*args): return _method_proxy("tabmode", "fn", *args);
def tabgroup(*args): return _method_proxy("tabgroup", "fn", *args);
def tabgrouporder(*args): return _method_proxy("tabgrouporder", "fn", *args);
def taborder(*args): return _method_proxy("taborder", "fn", *args);
def tabtotal(*args): return _method_proxy("tabtotal", "fn", *args);
def tabgrouptotal(*args): return _method_proxy("tabgrouptotal", "fn", *args);
def screentopy(*args): return _method_proxy("screentopy", "fn", *args);
def screenleftx(*args): return _method_proxy("screenleftx", "fn", *args);
def compfilehandle(*args): return _method_proxy("compfilehandle", "fn", *args);
def scrolllinkhandle(*args): return _method_proxy("scrolllinkhandle", "fn", *args);
def filehistcount(*args): return _method_proxy("filehistcount", "fn", *args);
# 分岐あり
def overwrite(*args):
if len(args)==0:
return _method_proxy("overwrite", "fn", *args)
else:
return _method_proxy("overwrite", "st1s", *args)
def updated(*args): return _method_proxy("updated", "fn", *args);
def updatecount(*args): return _method_proxy("updatecount", "fn", *args);
def anyclipboard(*args): return _method_proxy("anyclipboard", "fn", *args);
def inputstates(*args): return _method_proxy("inputstates", "fn", *args);
def imestate(*args): return _method_proxy("imestate", "fn", *args);
def browsemode(*args): return _method_proxy("browsemode", "fn", *args);
def keypressed(*args): return _method_proxy("keypressed", "fn", *args);
def replay(*args): return _method_proxy("replay", "fn", *args);
def searchmode(*args): return _method_proxy("searchmode", "fn", *args);
def searchoption(*args): return _method_proxy("searchoption", "fn", *args);
def searchoption2(*args): return _method_proxy("searchoption2", "fn", *args);
def foundtopx(*args): return _method_proxy("foundtopx", "fn", *args);
def foundtopy(*args): return _method_proxy("foundtopy", "fn", *args);
def foundendx(*args): return _method_proxy("foundendx", "fn", *args);
def foundendy(*args): return _method_proxy("foundendy", "fn", *args);
def foundhilighting(*args): return _method_proxy("foundhilighting", "fn", *args);
def foundoption(*args): return _method_proxy("foundoption", "fn", *args);
def readonly(*args): return _method_proxy("readonly", "fn", *args);
def encode(*args): return _method_proxy("encode", "fn", *args);
def charset(*args): return _method_proxy("charset", "fn", *args);
def bom(*args): return _method_proxy("bom", "fn", *args);
def codepage(*args): return _method_proxy("codepage", "fn", *args);
def getfocus(*args): return _method_proxy("getfocus", "fn", *args);
def autocompstate(*args): return _method_proxy("autocompstate", "fn", *args);
def argcount(*args): return _method_proxy("argcount", "fn", *args);
def compatiblemode(*args): return _method_proxy("compatiblemode", "fn", *args);
def carettabmode(*args): return _method_proxy("carettabmode", "fn", *args);
def return_in_cell_mode(*args): return _method_proxy("return_in_cell_mode", "fn", *args);
def stophistory(*args): return _method_proxy("stophistory", "fn", *args);
def fontmode(*args): return _method_proxy("fontmode", "fn", *args);
def formline(*args): return _method_proxy("formline", "fn", *args);
def configstate(*args): return _method_proxy("configstate", "fn", *args);
def fontsize(*args): return _method_proxy("fontsize", "fn", *args);
def dayofweeknum(*args): return _method_proxy("dayofweeknum", "fn", *args);
def tickcount(*args): return _method_proxy("tickcount", "fn", *args);
def foldable(*args): return _method_proxy("foldable", "fn", *args);
def folded(*args): return _method_proxy("folded", "fn", *args);
def rangeedittop(*args): return _method_proxy("rangeedittop", "fn", *args);
def rangeeditend(*args): return _method_proxy("rangeeditend", "fn", *args);
def rangeeditmode(*args): return _method_proxy("rangeeditmode", "fn", *args);
def outlinehandle(*args): return _method_proxy("outlinehandle", "fn", *args);
def outlinesize(*args): return _method_proxy("outlinesize", "fn", *args);
def outlineitemcount(*args): return _method_proxy("outlineitemcount", "fn", *args);
def val(*args): return _method_proxy("val", "fn", *args);
def ascii1(*args): return _method_proxy("ascii", "fn", *args);
def strlen(*args): return _method_proxy("strlen", "fn", *args);
def strstr(*args): return _method_proxy("strstr", "fn", *args);
def strrstr(*args): return _method_proxy("strrstr", "fn", *args);
def wcslen(*args): return _method_proxy("wcslen", "fn", *args);
def wcsstrstr(*args): return _method_proxy("wcsstrstr", "fn", *args);
def wcsstrrstr(*args): return _method_proxy("wcsstrrstr", "fn", *args);
def ucs4len(*args): return _method_proxy("ucs4len", "fn", *args);
def ucs4strstr(*args): return _method_proxy("ucs4strstr", "fn", *args);
def ucs4strrstr(*args): return _method_proxy("ucs4strrstr", "fn", *args);
def cmulen(*args): return _method_proxy("cmulen", "fn", *args);
def cmustrstr(*args): return _method_proxy("cmustrstr", "fn", *args);
def cmustrrstr(*args): return _method_proxy("cmustrrstr", "fn", *args);
def gculen(*args): return _method_proxy("gculen", "fn", *args);
def gcustrstr(*args): return _method_proxy("gcustrstr", "fn", *args);
def gcustrrstr(*args): return _method_proxy("gcustrrstr", "fn", *args);
def wcs_to_char(*args): return _method_proxy("wcs_to_char", "fn", *args);
def char_to_wcs(*args): return _method_proxy("char_to_wcs", "fn", *args);
def ucs4_to_char(*args): return _method_proxy("ucs4_to_char", "fn", *args);
def char_to_ucs4(*args): return _method_proxy("char_to_ucs4", "fn", *args);
def cmu_to_char(*args): return _method_proxy("cmu_to_char", "fn", *args);
def char_to_cmu(*args): return _method_proxy("char_to_cmu ", "fn", *args);
def gcu_to_char(*args): return _method_proxy("gcu_to_char", "fn", *args);
def char_to_gcu(*args): return _method_proxy("char_to_gcu", "fn", *args);
def byteindex_to_charindex(*args): return _method_proxy("byteindex_to_charindex", "fn", *args);
def charindex_to_byteindex(*args): return _method_proxy("charindex_to_byteindex", "fn", *args);
def findwindow(*args): return _method_proxy("findwindow", "fn", *args);
def findwindowclass(*args): return _method_proxy("findwindowclass", "fn", *args);
def sendmessage(*args): return _method_proxy("sendmessage", "fn", *args);
def xtocolumn(*args): return _method_proxy("xtocolumn", "fn", *args);
def ytolineno(*args): return _method_proxy("ytolineno", "fn", *args);
def columntox(*args): return _method_proxy("columntox", "fn", *args);
def linenotoy(*args): return _method_proxy("linenotoy", "fn", *args);
def charcount(*args): return _method_proxy("charcount", "fn", *args);
def existfile(*args): return _method_proxy("existfile", "fn", *args);
def getmaxinfo(*args): return _method_proxy("getmaxinfo", "fn", *args);
def keypressedex(*args): return _method_proxy("keypressedex", "fn", *args);
def setcompatiblemode(*args): return _method_proxy("setcompatiblemode", "fn", *args);
def inputchar(*args): return _method_proxy("inputchar", "fn", *args);
def iskeydown(*args): return _method_proxy("iskeydown", "fn", *args);
def getininum(*args): return _method_proxy("getininum", "fn", *args);
def getininumw(*args): return _method_proxy("getininumw", "fn", *args);
def getregnum(*args): return _method_proxy("getregnum", "fn", *args);
def getconfigcolor(*args): return _method_proxy("getconfigcolor", "fn", *args);
def hidemaruorder(*args): return _method_proxy("hidemaruorder", "fn", *args);
def hidemarucount(*args): return _method_proxy("hidemarucount", "fn", *args);
def findhidemaru(*args): return _method_proxy("findhidemaru", "fn", *args);
def hidemaruhandle(*args): return _method_proxy("hidemaruhandle", "fn", *args);
def getcurrenttab(*args): return _method_proxy("getcurrenttab", "fn", *args);
def gettabhandle(*args): return _method_proxy("gettabhandle", "fn", *args);
def getclipboardinfo(*args): return _method_proxy("getclipboardinfo", "fn", *args);
def event(*args): return _method_proxy("event", "fn", *args);
def geteventnotify(*args): return _method_proxy("geteventnotify", "fn", *args);
def loaddll(*args): return _method_proxy("loaddll", "fn", *args);
def dllfunc(*args): return _method_proxy("dllfunc", "fn", *args);
def dllfuncw(*args): return _method_proxy("dllfuncw", "fn", *args);
def dllfuncexist(*args): return _method_proxy("dllfuncexist", "fn", *args);
def createobject(*args): return _method_proxy("createobject", "fn", *args);
def browserpanehandle(*args): return _method_proxy("browserpanehandle", "fn", *args);
def browserpanesize(*args): return _method_proxy("browserpanesize", "fn", *args);
def keyhook(*args): return _method_proxy("keyhook", "fn", *args);
def registercallback(*args): return _method_proxy("registercallback", "fn", *args);
def findmarker(*args): return _method_proxy("findmarker", "fs", *args);
def diff(*args): return _method_proxy("diff", "fs", *args);
def reservedmultisel(*args): return _method_proxy("reservedmultisel", "fs", *args);
def regulardll(*args): return _method_proxy("regulardll", "fs", *args);
def filename(*args): return _method_proxy("filename", "fs", *args);
def filename2(*args): return _method_proxy("filename2", "fs", *args);
def filename3(*args): return _method_proxy("filename3", "fs", *args);
def basename(*args): return _method_proxy("basename", "fs", *args);
def basename2(*args): return _method_proxy("basename2", "fs", *args);
def basename3(*args): return _method_proxy("basename3", "fs", *args);
def directory(*args): return _method_proxy("directory", "fs", *args);
def directory2(*args): return _method_proxy("directory2", "fs", *args);
def directory3(*args): return _method_proxy("directory3", "fs", *args);
def filetype(*args): return _method_proxy("filetype", "fs", *args);
def currentmacrofilename(*args): return _method_proxy("currentmacrofilename", "fs", *args);
def currentmacrobasename(*args): return _method_proxy("currentmacrobasename", "fs", *args);
def currentmacrodirectory(*args): return _method_proxy("currentmacrodirectory", "fs", *args);
def hidemarudir(*args): return _method_proxy("hidemarudir", "fs", *args);
def macrodir(*args): return _method_proxy("macrodir", "fs", *args);
def settingdir(*args): return _method_proxy("settingdir", "fs", *args);
def backupdir(*args): return _method_proxy("backupdir", "fs", *args);
def windir(*args): return _method_proxy("windir", "fs", *args);
def winsysdir(*args): return _method_proxy("winsysdir", "fs", *args);
def searchbuffer(*args): return _method_proxy("searchbuffer", "fs", *args);
def targetcolormarker(*args): return _method_proxy("targetcolormarker", "fs", *args);
def replacebuffer(*args): return _method_proxy("replacebuffer", "fs", *args);
def grepfilebuffer(*args): return _method_proxy("grepfilebuffer", "fs", *args);
def grepfolderbuffer(*args): return _method_proxy("grepfolderbuffer", "fs", *args);
def foundbuffer(*args): return _method_proxy("foundbuffer", "fs", *args);
def currentconfigset(*args): return _method_proxy("currentconfigset", "fs", *args);
def fontname(*args): return _method_proxy("fontname", "fs", *args);
def date(*args): return _method_proxy("date", "fs", *args);
def time(*args): return _method_proxy("time", "fs", *args);
def year(*args): return _method_proxy("year", "fs", *args);
def month(*args): return _method_proxy("month", "fs", *args);
def day(*args): return _method_proxy("day", "fs", *args);
def hour(*args): return _method_proxy("hour", "fs", *args);
def minute(*args): return _method_proxy("minute", "fs", *args);
def second(*args): return _method_proxy("second", "fs", *args);
def dayofweek(*args): return _method_proxy("dayofweek", "fs", *args);
# def str(*args): return _method_proxy("str", "fs", *args);
def char(*args): return _method_proxy("char", "fs", *args);
def unichar(*args): return _method_proxy("unichar", "fs", *args);
def sprintf(*args): return _method_proxy("sprintf", "fs", *args);
def leftstr(*args): return _method_proxy("leftstr", "fs", *args);
def rightstr(*args): return _method_proxy("rightstr", "fs", *args);
def midstr(*args): return _method_proxy("midstr", "fs", *args);
def wcsleftstr(*args): return _method_proxy("wcsleftstr", "fs", *args);
def wcsrightstr(*args): return _method_proxy("wcsrightstr", "fs", *args);
def wcsmidstr(*args): return _method_proxy("wcsmidstr", "fs", *args);
def ucs4leftstr(*args): return _method_proxy("ucs4leftstr", "fs", *args);
def ucs4rightstr(*args): return _method_proxy("ucs4rightstr", "fs", *args);
def ucs4midstr(*args): return _method_proxy("ucs4midstr", "fs", *args);
def cmuleftstr(*args): return _method_proxy("cmuleftstr", "fs", *args);
def cmurightstr(*args): return _method_proxy("cmurightstr", "fs", *args);
def cmumidstr(*args): return _method_proxy("cmumidstr", "fs", *args);
def gculeftstr(*args): return _method_proxy("gculeftstr", "fs", *args);
def gcurightstr(*args): return _method_proxy("gcurightstr", "fs", *args);
def gcumidstr(*args): return _method_proxy("gcumidstr", "fs", *args);
def gettext(*args): return _method_proxy("gettext", "fs", *args);
def gettext2(*args): return _method_proxy("gettext2", "fs", *args);
def gettext_wcs(*args): return _method_proxy("gettext_wcs", "fs", *args);
def gettext_ucs4(*args): return _method_proxy("gettext_ucs4", "fs", *args);
def gettext_cmu(*args): return _method_proxy("gettext_cmu", "fs", *args);
def gettext_gcu(*args): return _method_proxy("gettext_gcu", "fs", *args);
def getenv(*args): return _method_proxy("getenv", "fs", *args);
def getgrepfilehist(*args): return _method_proxy("getgrepfilehist", "fs", *args);
def enumcolormarkerlayer(*args): return _method_proxy("enumcolormarkerlayer", "fs", *args);
def getfiletime(*args): return _method_proxy("getfiletime", "fs", *args);
def getoutlineitem(*args): return _method_proxy("getoutlineitem", "fs", *args);
def getarg(*args): return _method_proxy("getarg", "fs", *args);
def getautocompitem(*args): return _method_proxy("getautocompitem", "fs", *args);
def getcolormarker(*args): return _method_proxy("getcolormarker", "fs", *args);
def getfilehist(*args): return _method_proxy("getfilehist", "fs", *args);
def getpathhist(*args): return _method_proxy("getpathhist", "fs", *args);
def getreplacehist(*args): return _method_proxy("getreplacehist", "fs", *args);
def getsearchhist(*args): return _method_proxy("getsearchhist", "fs", *args);
def gettagsfile(*args): return _method_proxy("gettagsfile", "fs", *args);
def gettitle(*args): return _method_proxy("gettitle", "fs", *args);
def browsefile(*args): return _method_proxy("browsefile", "fs", *args);
def quote(*args): return _method_proxy("quote", "fs", *args);
def strreplace(*args): return _method_proxy("strreplace", "fs", *args);
def getimecandidate(*args): return _method_proxy("getimecandidate", "fs", *args);
# jsmodeには無いがpythonには必要
def encodeuri(*args): return _method_proxy("encodeuri", "fs", *args);
def decodeuri(*args): return _method_proxy("decodeuri", "fs", *args);
# 2つの値を返す
def enumregvalue(*args):
ret = hm.Macro.Function("enumregvalue", *args)
return ret.Result, ret.Args[1];
# 2つの値を返す
def getlinecount(*args):
ret = hm.Macro.Function("getlinecount", *args)
return ret.Result, ret.Args[2];
# 分岐あり
def hidemaruversion(*args):
if len(args)>=1 and (type(args[0]) is str):
return _method_proxy("hidemaruversion", "st", *args)
else:
return _method_proxy("hidemaruversion", "fs", *args)
# 分岐あり
def toupper(*args):
if len(args)>=1 and (type(args[0]) is str):
return _method_proxy("toupper", "fs", *args)
else:
return _method_proxy("toupper", "st", *args)
# 分岐あり
def tolower(*args):
if len(args)>=1 and (type(args[0]) is str):
return _method_proxy("tolower", "fs", *args)
else:
return _method_proxy("tolower", "st", *args)
# 分岐あり
def filter1(*args):
if len(args)>=4:
return _method_proxy("filter", "fs", *args)
else:
return _method_proxy("filter", "st", *args)
def input1(*args): return _method_proxy("input", "fs", *args);
def getinistr(*args): return _method_proxy("getinistr", "fs", *args);
def getinistrw(*args): return _method_proxy("getinistrw", "fs", *args);
def getregbinary(*args): return _method_proxy("getregbinary", "fs", *args);
def getregstr(*args): return _method_proxy("getregstr", "fs", *args);
def enumregkey(*args): return _method_proxy("enumregkey", "fs", *args);
def gettabstop(*args): return _method_proxy("gettabstop", "fs", *args);
def getstaticvariable(*args): return _method_proxy("getstaticvariable", "fs", *args);
def getclipboard(*args): return _method_proxy("getclipboard", "fs", *args);
def dllfuncstr(*args): return _method_proxy("dllfuncstr", "fs", *args);
def dllfuncstrw(*args): return _method_proxy("dllfuncstrw", "fs", *args);
def getloaddllfile(*args): return _method_proxy("getloaddllfile", "fs", *args);
def browserpaneurl(*args): return _method_proxy("browserpaneurl", "fs", *args);
def browserpanecommand(*args): return _method_proxy("browserpanecommand", "fs", *args);
def renderpanecommand(*args): return _method_proxy("renderpanecommand", "fs", *args);
def getselectedrange(*args): return _method_proxy("getselectedrange", "fs", *args);
def refreshdatetime(*args): return _method_proxy("refreshdatetime", "st", *args);
def newfile(*args): return _method_proxy("newfile", "st", *args);
def openfile(*args): return _method_proxy("openfile", "st", *args);
def loadfile(*args): return _method_proxy("loadfile", "st", *args);
def openfilepart(*args): return _method_proxy("openfilepart", "st", *args);
def closenew(*args): return _method_proxy("closenew", "st", *args);
def saveas(*args): return _method_proxy("saveas", "st", *args);
def appendsave(*args): return _method_proxy("appendsave", "st", *args);
def changename(*args): return _method_proxy("changename", "st", *args);
def insertfile(*args): return _method_proxy("insertfile", "st", *args);
def readonlyopenfile(*args): return _method_proxy("readonlyopenfile", "st", *args);
def readonlyloadfile(*args): return _method_proxy("readonlyloadfile", "st", *args);
def save(*args): return _method_proxy("save", "st", *args);
def savelf(*args): return _method_proxy("savelf", "st", *args);
def print1(*args): return _method_proxy("print", "st", *args);
def saveall(*args): return _method_proxy("saveall", "st", *args);
def saveupdatedall(*args): return _method_proxy("saveupdatedall", "st", *args);
def openbyshell(*args): return _method_proxy("openbyshell", "st", *args);
def openbyhidemaru(*args): return _method_proxy("openbyhidemaru", "st", *args);
def setfilehist(*args): return _method_proxy("setfilehist", "st", *args);
def setpathhist(*args): return _method_proxy("setpathhist", "st", *args);
def setencode(*args): return _method_proxy("setencode", "st", *args);
def stophistoryswitch(*args): return _method_proxy("stophistoryswitch", "st", *args);
def deletefilehist(*args): return _method_proxy("deletefilehist", "st", *args);
def OPEN(*args): return _method_proxy("OPEN", "st", *args);
def SAVEAS(*args): return _method_proxy("SAVEAS", "st", *args);
def LOAD(*args): return _method_proxy("LOAD", "st", *args);
def APPENDSAVE(*args): return _method_proxy("APPENDSAVE", "st", *args);
def CHANGENAME(*args): return _method_proxy("CHANGENAME", "st", *args);
def INSERTFILE(*args): return _method_proxy("INSERTFILE", "st", *args);
def OPENFILEPART(*args): return _method_proxy("OPENFILEPART", "st", *args);
def deletefile(*args): return _method_proxy("deletefile", "st", *args);
def propertydialog(*args): return _method_proxy("propertydialog", "st", *args);
def up(*args): return _method_proxy("up", "st", *args);
def down(*args): return _method_proxy("down", "st", *args);
def right(*args): return _method_proxy("right", "st", *args);
def left(*args): return _method_proxy("left", "st", *args);
def up_nowrap(*args): return _method_proxy("up_nowrap", "st", *args);
def down_nowrap(*args): return _method_proxy("down_nowrap", "st", *args);
def shiftup(*args): return _method_proxy("shiftup", "st", *args);
def shiftdown(*args): return _method_proxy("shiftdown", "st", *args);
def shiftright(*args): return _method_proxy("shiftright", "st", *args);
def shiftleft(*args): return _method_proxy("shiftleft", "st", *args);
def shifthome(*args): return _method_proxy("shifthome", "st", *args);
def shiftend(*args): return _method_proxy("shiftend", "st", *args);
def gofileend(*args): return _method_proxy("gofileend", "st", *args);
def gofiletop(*args): return _method_proxy("gofiletop", "st", *args);
def gokakko(*args): return _method_proxy("gokakko", "st", *args);
def golastupdated(*args): return _method_proxy("golastupdated", "st", *args);
def goleftkakko(*args): return _method_proxy("goleftkakko", "st", *args);
def gorightkakko(*args): return _method_proxy("gorightkakko", "st", *args);
def golinetop(*args): return _method_proxy("golinetop", "st", *args);
def golinetop2(*args): return _method_proxy("golinetop2", "st", *args);
def golineend(*args): return _method_proxy("golineend", "st", *args);
def golineend2(*args): return _method_proxy("golineend2", "st", *args);
def golineend3(*args): return _method_proxy("golineend3", "st", *args);
def goscreenend(*args): return _method_proxy("goscreenend", "st", *args);
def goscreentop(*args): return _method_proxy("goscreentop", "st", *args);
def jump(*args): return _method_proxy("jump", "st", *args);
def moveto(*args): return _method_proxy("moveto", "st", *args);
def movetolineno(*args): return _method_proxy("movetolineno", "st", *args);
def movetoview(*args): return _method_proxy("movetoview", "st", *args);
def moveto2(*args): return _method_proxy("moveto2", "st", *args);
def moveto_wcs(*args): return _method_proxy("moveto_wcs", "st", *args);
def moveto_ucs4(*args): return _method_proxy("moveto_ucs4", "st", *args);
def moveto_cmu(*args): return _method_proxy("moveto_cmu", "st", *args);
def moveto_gcu(*args): return _method_proxy("moveto_gcu", "st", *args);
def nextpage(*args): return _method_proxy("nextpage", "st", *args);
def prevpage(*args): return _method_proxy("prevpage", "st", *args);
def halfnextpage(*args): return _method_proxy("halfnextpage", "st", *args);
def halfprevpage(*args): return _method_proxy("halfprevpage", "st", *args);
def rollup(*args): return _method_proxy("rollup", "st", *args);
def rollup2(*args): return _method_proxy("rollup2", "st", *args);
def rolldown(*args): return _method_proxy("rolldown", "st", *args);