[添付ファイル一覧]
[全ページの添付ファイル一覧]
- ChangeFontSizeUp.js
- 格納ファイル名:attach/4D6163726F2FC5EAB9C62F323039_4368616E6765466F6E7453697A6555702E6A73
- ページ:Macro/投稿/209
- 格納ファイル名:attach/4D6163726F2FC5EAB9C62F323039_4368616E6765466F6E7453697A6555702E6A73
- MD5ハッシュ値:47904dbff183fd86341aed70c4658609
- サイズ:2.1KB (2128 bytes)
- Content-type:application/octet-stream
- 登録日時:2012/08/06 04:26:02
- アクセス数:383
- MD5ハッシュ値:47904dbff183fd86341aed70c4658609
0
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
| |
Main();
function Main()
{
var WshShell = new ActiveXObject("WScript.Shell");
var sSELFCALLID = "/CallByMyself"; var sMacroPath;
if( typeof Editor != "undefined" ){
sMacroPath = Editor.ExpandParameter("$M");
if( sMacroPath == "" ) return;
WshShell.Run( 'wscript.exe "' + sMacroPath + '" ' + sSELFCALLID );
Editor.SelectFont();
}else{
var WshArgs = WScript.Arguments;
if( (typeof WshArgs == "undefined")||(WshArgs.length == 0)||(WshArgs(0) != sSELFCALLID) ){
WScript.Echo( "このスクリプトはサクラエディタのマクロ用です。" );
return;
}
WScript.Sleep( 20 );
WshShell.SendKeys( "%s" ); WshShell.SendKeys( "{DOWN}" ); WshShell.SendKeys( "{ENTER}" ); }
}
|