オブジェクトを書かなくてもそのまま記述できます。メソッド(一般)Method(General)
You can write as it is without writing an object.
createObjectメソッド(ファイル一覧関係)Method(File list)
echo
message
question
input
prompt
beep
endMacro
command
contextMenu
backgroundContextMenu
sendTo
selectAll
cut
copy
paste
pasteLink
rename
renameReplace
open
getWildcard
refresh
getClipboard
setClipboard
getDirectory
setDirectory
addBookmark
getFocusTarget
getKeyState
expandFolder
sleep
getClipboardFiles
isClipboardFormatAvailable
menu
menuArray
getSpaceSelectMode
setSpaceSelectMode
getArg
findWindow
findWindowEx
getWindow
isWindowVisible
isWindow
getWindowText( numHwnd )
Win32APIのGetWindowTextと似ていますが、指定されたウィンドウハンドルのタイトルを文字列として返します。(V1.52)getCurrentWindowHandle()
Like GetWindowText of Win32API.
現在のウィンドウのウィンドウハンドルを返します。(V1.52)getStaticVariable( strName [, numOption ] )
Get current window handle.
スクリプトが終了しても内容を保持する静的な変数を取得します。(V1.52)setStaticVariable( strName, strData [, numOption ] )
strNameは変数名を指定します。大文字と小文字の区別はされません。
numOptionには、複数のウィンドウで複数のウィンドウで共有されている静的な変数かどうかを指定します。省略すると0と同じです。
Get static variable.
スクリプトが終了しても内容を保持する静的な変数を書き込みます。(V1.52)setAttentionBar( str )
strNameは変数名を指定します。スクリプト内で使う通常の変数とは別の名前空間にあります。大文字と小文字の区別はされません。
書き込む文字列の値を指定します。数値は指定できません。""を指定すると消去します。
numOptionには、複数のウィンドウで共有されている静的な変数かどうかを指定します。省略すると0と同じです。
0 を指定すると、共有せず、現在のウィンドウ内だけで有効です。
1 を指定すると、全ての複数のウィンドウで有効です。
静的な変数は、スクリプトが終了しても値を保持しています。
静的な変数用のメモリは、上限があるため、最低限の利用に留めることをお勧めします。
変数名と文字列と管理用のデータを含めて、上限は64KBです。
Set static variable.
注目バーの内容を任意に設定します。(V1.76)browseFile( str1 [, str2] )
""を指定すると、消去します。
Set the attention bar contents.(V1.76)
ファイル参照ダイアログを表示します。(V1.78)loadTextFile
str1は初期フォルダのパス。
str2はワイルドカード。(省略可能)
戻り値は、選ばれたファイル名のフルパス。キャンセルされた場合はundefinedになります。
Show browse file dialog.(V1.78)
str1 is the directory.
str2 is the wildcard.
The return value is the string entered.
loadDll( str )
秀丸エディタのloaddll用に作られたDLLを読み込みます。(V1.56)
DllFuncManagerオブジェクトを返します。
Loads the DLL equivalent of Hidemaru Editor's loaddll.(V1.56)
Return the DllFuncManager object.
getView()メソッド(タブ関係)Method(Tab)
表示方法を取得します。setView( num )
Get View value.
0:Details 1:List 2:Icon 3:Tile 4:Thumbnails
表示方法を設定します。(0〜4)sort( num1 or str1 [,num2] )
0:詳細 1:一覧 2:アイコン 3:並べて表示 4:縮小版
Set View by value.
0:Details 1:List 2:Icon 3:Tile 4:Thumbnails
ソートします。getItemCount()
num1で数値で指定する場合は0〜3。
str1で文字列で指定する場合は"name"/"size"/"type"/"date"またはカラム名。
0:名前 1:サイズ 2:種類 3:更新日時
num2はソート方向(0〜2,省略可)。
"name":名前 "size":サイズ "type":種類 "date":更新日時
num2を指定してstr1で""を指定すると現在のソートカラムが対象。(V1.01)
0:反転 1:昇順 2:降順
Do sorting.
When specifying numerically with num1:
0: Name 1: Size 2: Type 3: Update date and time
When specifying string with str1:
"name" / "size" / "type" / "date"
Or column name (property name).
num2 is the sort direction.
0: Reverse 1: Ascending 2: Descending
If num2 is specified and str1 is specified as "", the current sort column is targeted. (V1.01)
ファイル一覧の項目の個数を返します。getSelectedCount()
Return the count of items in the file list.
選択された個数を返します。getNextItem( num1, num2 )
Returns the selected item count.
num2で指定する状態フラグに該当する次の項目のインデックスを返します。getItemState( num )
num1が-1の場合、最初のヒット。
num1が0以上の場合、指定したインデックスの次のヒット。
例:最初の選択項目 iSel = getNextItem(-1,2);
最初のフォーカス項目 iFocus = getNextItem(-1,1);
Returns the index of the next item that corresponds to the status flag specified by num2.
If num1 is -1, the first hit is returned.
If num1 is 0 or more, the next hit at the specified index is returned.
Example:
First selection item : iSel = getNextItem(-1, 2);
First focus item : iFocus = getNextItem(-1, 1);
numのインデックスの項目の状態フラグを返します。(論理和)getItemText( num1 [, num2] )
0x01:フォーカス,0x02:選択,0x04:新しいファイル(色の設定が有効なとき)
Returns the status flag of the item at index num.
Bitwise OR of the following values
0x01: Focused, 0x02: Selected, 0x04: New file (when the color setting is valid)
num1のインデックスの項目のテキストを返します。num2はサブ項目(0〜,省略可)。getItemPath( num )
Returns the text of the item at index num1.
num2 is a subitem. (optional).
numのインデックスの項目のパスを返します。isFolder( num )
Returns the path of the item at index num.
numのインデックスの項目がフォルダであるかどうかを返します。フォルダの場合数値の1、フォルダでない場合数値の0。getColumnCount()
注意:V1.00でドライブや「PC」など、フォルダツリーとして現れるものも1が返っていましたが、V1.01でファイルシステム上のディレクトリ、またはファイルを列挙できる場所(c:\や\\pc\share)の場合に1を返すように仕様変更。
Returns whether the index item of num is a folder.
詳細表示時のカラム数を返します。getColumnText( num )
Returns the count of columns in details view.
カラム名(プロパティ名)のテキストを返します。selectItem( num1 or str1 [, num2] )
Returns the column item name (name of property) of the details view of the index of num.
第1パラメータで文字列指定の場合:customFileList( strFileName )
「検索して選択...」コマンドと同じ挙動をします。第1パラメータで文字列指定でワイルドカードの場合:
(現在のフォーカス以降にあるファイル名の中に文字列が含まれるものを選択し、該当が複数あれば順番に選択。最後の場合は選択解除)
num2に0x02を含む場合は、「検索して選択...」コマンドと同じではなく、拡張子を含んだ完全に一致する項目を選択します。
num2は選択する方法を指定します。(以下の値の論理和)
0x01:追加選択 0x02:ファイル名に完全一致するもの(拡張子非表示でも)(V1.01) 0x10:ファイルを対象としない(V1.42) 0x20:フォルダを対象としない(V1.42)
ワイルドカード指定の場合はワイルドカードで複数選択します。第1パラメータで数値指定の場合:
num2は選択する方法を指定します。(以下の値の論理和)
0x01:追加選択 0x10:ファイルを対象としない(V1.42) 0x20:フォルダを対象としない(V1.42)
インデックス指定の選択をします。When string is specified in str1:
selectItem(-1);とすると選択解除になります。
num2は選択する方法を指定します。
0x01:追加選択
It behaves the same as the "Find and Select ..." command.In the case of wildcards in str1:
Search and select after the current focus.
If multiple items hit, select in order.
Clear the selection when it is the last item.
If num2 contains 0x02, select the exact match item including the extension, not the same as the "Find and Select ..." command.
num2 specifies the method to select. (Bitwise OR of the following values)
0x01: Add selection
0x02: Perfect match to the file name (even if the extension is not displayed) (V1.01)
0x10: Do not target files (V 1.42)
0x20: Do not target folder (V 1.42)
In the case of wildcard specification, multiple selection with wildcards.In case of numeric specification with num1:
num2 specifies the method to select. (Bitwise OR of the following values)
0x01: Add selection
0x10: Do not target files (V 1.42)
0x20: Do not target folder (V 1.42)
Selection of index specification.
num2 specifies the method to select.
0x01: Add selection
テキストファイルの内容を、検索結果のようにファイル一覧に出力します。(V1.54)getThumbnailSize( numType )
strFileNameはテキストファイルのファイル名をフルパスを指定します。
テキストファイルは、UTF-16またはUTF-8(BOMあり)に対応しています。UTF-8(BOMなし)は可能ですが推奨されません。
Outputs the contents of the text file to the file list as search results.(V1.54)
縮小版の大きさを取得します。(V1.54)setThumbnailSize( numSize, numType )
numTypeに0を指定したときは、オプションの既定の大きさを取得します。
numTypeに1を指定したときは、フォルダごとの大きさを取得します。
Get thumbnail size.(V1.54)
If numType is 0, default size.
If numType is 1, each folder size.
縮小版の大きさを設定します。(V1.54)
numSizeは大きさです。 numTypeに0を指定したときは、オプションの既定の大きさを設定します。
numTypeに1を指定したときは、フォルダごとの大きさを設定します。
Set thumbnail size.(V1.54)
numSize is thumbnail size.
If numType is 0, default size.
If numType is 1, each folder size.
getTabBarCount()
タブバーの数を取得します。(V1.01)getTabCount( [num] )
0のときタブモードではないです。1以上でタブモードです。2以上はタブが分割しているかを判断できます。
Gets the count of tab bars. (V1.01)
It is not tab mode when 0. Tab mode is 1 or more. When the tab is splitted, it becomes 2 or more.
タブの数を取得します。(V1.03)getTabState( num1, num2 )
numは分割されている場合、どの分割かを指定します。左/上の分割を0として数えます。
numに-1を指定すると、現在フォーカスのある分割のタブの数を返します。
numに-2を指定すると、全ての分割を合計したタブの数を返します。
省略すると-2と同じです。
Gets the count of tabs. (V 1.03)
If split, num specifies which split. Count left / top split from 0.
If you specify -1 as num, it returns the count of tabs of the split currently in focus.
If you specify -2 for num, it returns the count of tabs that totaled all splits.
If omitted, it is the same as -2.
タブの状態を取得します。(V1.04)getCurrentTab( [num] )
num1はタブの番号です。
タブの番号は全ての分割の通し番号で、0から数えます。
num2は取得する状態を種類を指定します。
0はロック状態、1は閉じるのを禁止の状態、2はタブごとの親を指定している場合の親のパスです。
Gets the state of the tab. (V1.04)
num1 is the tab number.
The tab number is the serial number of all splits, counting from zero.
num2 specifies the type of return status.
0 is the lock status, 1 is the close prohibition status, and 2 is the parent path for each tab (if it is set).
現在アクティブなタブの番号を取得します。(V1.03)getTabName( num1 [, num2] )
タブの番号は0から数えます。
numは分割されている場合、どの分割かを指定します。左/上の分割を0として数えます。
numに-1を指定すると、現在フォーカスのある分割のアクティブなタブの番号を返します。
numに-2を指定すると、フォーカスのあるタブの、左/上の分割から数えた全ての分割の通し番号を返します。
省略すると-2と同じです。
Gets the number of the currently active tab. (V 1.03)
If split, num specifies which split. Count left / top split from 0.
If you specify -1 as num, it returns the index number of tab of the split currently in focus.
If you specify -2 for num, it returns the index number of tab that totaled all splits.
If omitted, it is the same as -2.
num1で指定したタブの名前を取得します。(V1.28)setTabName( str, num1 )
タブの番号は全ての分割の通し番号で、0から数えます。
num2に1を指定すると、タブのパスを取得します。(V1.46)
Gets the name of the tab specified by num1. (V1.28)
The tab number is the serial number of all splits, counting from zero.
Specify 1 in num2 to get the tab path. (V1.46)
タブの名前を設定します。(V1.54)setActiveTab( num )
num1はタブの番号は全ての分割の通し番号で、0から数えます。
Sets the name of the tab specified by num1. (V1.54)
指定したタブをアクティブにします。(V1.28)closeTab( num )
タブの番号は全ての分割の通し番号で、0から数えます。
Activate the specified tab. (V1.28)
The tab number is the serial number of all splits, counting from zero.
指定したタブを閉じます。(V1.42)closeOtherTab()
タブの番号は全ての分割の通し番号で、0から数えます。
ロックされたタブの場合は失敗します。
最後のタブでウィンドウが閉じてしまうような場合は失敗します。
ロックされていない場合は1が返り、ロックされている場合は0が返ります。
Closes the specified tab. (V 1.42)
The tab number is the serial number of all splits, counting from zero.
It will fail for locked tabs.
In the case of the last one tab, it fails.
If it is not locked, 1 is returned. If it is locked, 0 is returned.
他のタブを全て閉じます。
他のタブでロックしているタブも閉じます。
Close all other tabs.
It also closes the locking tab.