PasteHelper2とshiftlockの連携
shiftlockでサブメニュー表示後、数字入力となってしまう問題の回避方法として、
『shiftlockのメニュー表示機能を使わず、同等のメニューを他プログラムで表示する』
という方法があります。
そこで上記のメニューをPastehelper2で表示させることにします。
この方法の場合、Pastehelper2とCancel、Openプラグインと、
ももたろさん作のExecMultiが必要です。
【shiftlock起動方法】
shiftlock.exeを以下のオプションで起動します。
オプション:\Program Files\PasteHelper\Pastehelper2.exe|/nc input.xml ※パスは場所に応じて変更。
上記の設定でshiftlockはEnter終了時にPasteHelper2を、【/nc】【input.xml】オプションで起動します。
input.xmlについては以下のものをPasteHelper2のMenus.xmlと同じ階層に置きます。
<?xml version="1.0" encoding="shift_jis"?> <Font Face="Tahoma" Size=9 Offset=8/> <Icon Size=0/> <!-- アイコンサイズ(0の場合非表示) --> <Item Type=Cancel Name="キャンセル"/> <Item Type=Separater/> <Item Type=Open Base="\Program Files\ExecMulti\execmulti.exe" Option="Copy" Name="コピー" Accesskey=1/> <Item Type=Open Base="\Program Files\ExecMulti\execmulti.exe" Option="Cut" Name="切り取り" Accesskey=2/> <Item Type=Open Base="\Program Files\ExecMulti\execmulti.exe" Option="Paste" Name="貼り付け" Accesskey=3/> <Item Type=Separater/> <Item Type=Open Base="\Program Files\ExecMulti\execmulti.exe" Option="All" Name="全て選択" Accesskey=4/> <Item Type=Open Base="\Program Files\ExecMulti\execmulti.exe" Option="Undo" Name="元に戻す" Accesskey=5/>
execmulti.iniは以下の通りです。
[Copy] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+C [Paste] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+V [All] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+A [Undo] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+Z [Cut] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+X [EndDel] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+Shift+End exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Delete [HomeDel] sleep=100 exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Ctrl+Shift+Home exec=\Program Files\KeyInputEmulator_v020\KeyInputEmulator.exe|Delete