Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
macro:setting-change [2021/03/26 02:47] – [小さなマクロの例] kabuneko | macro:setting-change [2021/03/26 02:59] (current) – [段組み表示切替] kabuneko | ||
---|---|---|---|
Line 28: | Line 28: | ||
==== 段組み表示切替 ==== | ==== 段組み表示切替 ==== | ||
- | * 設定に複数の選択肢がある場合のマクロの例。 | + | * 設定に複数の選択肢がある場合のマクロの例。以下は段組み表示の段数変更マクロ。 |
<code vbscript> | <code vbscript> | ||
- | sub main | + | sub dangumi |
if ActivePane is nothing then exit sub | if ActivePane is nothing then exit sub | ||
dim columns, max | dim columns, max | ||
columns = ActivePane.IDDP_MultipleColumn | columns = ActivePane.IDDP_MultipleColumn | ||
- | max = 2 ' | + | max = 3 ' |
columns = columns + 1 | columns = columns + 1 | ||
if columns > max then columns = 1 | if columns > max then columns = 1 |