LoginSignup
0
0

More than 5 years have passed since last update.

CuteExecでKobito for WindowsがアクティベートできなかったのでAutoHotKeyスクリプト書いた

Posted at
  • Kobito for Windowsは二重起動すると2つ目が落ちる
  • そんな時はcuteExec
  • しかし、Kobitoに対して二重起動抑止はできてもアクティベートができない
    • プロセスが複数あるからかな?

AutoHotKeyスクリプトで置き換えてみる

; タスクバーをブリンクさせず強制的にアクティベート
#WinActivateForce
; 引数に実行ファイルのフルパスを与える(Bluewindからの使用を想定)
; http://usbcafe.blog111.fc2.com/blog-entry-103.html

ExePath = %1%
SplitPath, ExePath, ExeName

Process,Exist,%ExeName%
if ErrorLevel<>0
  WinActivate,ahk_pid %ErrorLevel%
else
  Run,%ExePath%
return

コンパイルしたexe→https://cl.ly/kEFq

使い方

コマンドラインランチャ等に「CuteExecALT.exeのパス kobito.exeのパス」のように登録

なお、cuteExecALT.exe コマンドライン1 // コマンドライン2には対応しておりません。

参考

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0