Skip to content

KeyMagic 1.0.3 — single-instance fix

Latest

Choose a tag to compare

@kterfan kterfan released this 23 Jul 19:38

🐛 Bug fix — recommended upgrade

A second launch no longer leaves a dead second instance running.

KeyMagic claims F10 / Ctrl+G / Ctrl+T through Windows' RegisterHotKey, which is exclusive — only one process can own each combination. So if the app was already running (the usual way: the logon task started it, then you clicked the Start-menu shortcut) a second copy would start, silently fail to register any hotkey, and sit in the tray as a second icon whose shortcuts did nothing — with nothing in the log to explain why.

Now a launch detects the running instance, tells it to open its control panel, and exits. One instance, always.

Verified against the installed build: launching twice leaves exactly one instance, and the second launch records the hand-off in the log.

No other changes. Same icon as 1.0.2.



🐛 رفع باگ — ارتقا توصیه می‌شود

دیگر اجرای دوم، یک نمونهٔ مردهٔ اضافی باقی نمی‌گذارد.

KeyMagic کلیدهای F10 / Ctrl+G / Ctrl+T را از طریق RegisterHotKey ویندوز می‌گیرد که انحصاری است — فقط یک پروسه می‌تواند هر ترکیب را داشته باشد. پس اگر برنامه از قبل در حال اجرا بود (روش معمول: تسک ورود آن را بالا می‌آورد، بعد شما روی میان‌بر منوی استارت کلیک می‌کنید) یک نسخهٔ دوم بالا می‌آمد، بی‌صدا در ثبت هات‌کی‌ها شکست می‌خورد، و به‌صورت یک آیکون دوم در سینی سیستم می‌نشست که میان‌برهایش کار نمی‌کرد — بدون هیچ توضیحی در لاگ.

حالا هر اجرا نمونهٔ در حال اجرا را تشخیص می‌دهد، به آن می‌گوید پنل کنترل را باز کند، و خارج می‌شود. همیشه یک نمونه.

روی نسخهٔ نصب‌شده تست شد: دو بار اجرا فقط یک نمونه باقی می‌گذارد و اجرای دوم هندآف را در لاگ ثبت می‌کند.

هیچ تغییر دیگری ندارد. همان آیکون نسخهٔ ۱.۰.۲.