我與微軟的Outlook相同的問題:因爲Windows把它當作一個窗口,而不是新郵件窗口的一部分自動建議列表中的聯繫人會自動關閉。
你可以使用NiftyWindows,它具有相同的選項「焦點跟隨鼠標」,通過它的上下文菜單訪問。
或者,因爲它是寫在AutoHotkey的,你可以使用壓縮並運行它的子程序「XWN_FocusHandler」到一個獨立的腳本:
#Persistent
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn All, OutputDebug ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTimer, XWN_FocusHandler, 100
return
XWN_FocusHandler:
CoordMode, Mouse, Screen
MouseGetPos, XWN_MouseX, XWN_MouseY, XWN_WinID
If (!XWN_WinID)
Return
If ((XWN_MouseX != XWN_MouseOldX) or (XWN_MouseY != XWN_MouseOldY))
{
IfWinNotActive, ahk_id %XWN_WinID%
XWN_FocusRequest = 1
Else
XWN_FocusRequest = 0
XWN_MouseOldX := XWN_MouseX
XWN_MouseOldY := XWN_MouseY
XWN_MouseMovedTickCount := A_TickCount
}
Else
If (XWN_FocusRequest and (A_TickCount - XWN_MouseMovedTickCount > 500))
{
WinGetClass, XWN_WinClass, ahk_id %XWN_WinID%
If (XWN_WinClass = "Progman")
Return
; checks wheter the selected window is a popup menu
; (WS_POPUP) and !(WS_DLGFRAME | WS_SYSMENU | WS_THICKFRAME)
WinGet, XWN_WinStyle, Style, ahk_id %XWN_WinID%
If ((XWN_WinStyle & 0x80000000) and !(XWN_WinStyle & 0x4C0000))
Return
IfWinNotActive, ahk_id %XWN_WinID%
WinActivate, ahk_id %XWN_WinID%
XWN_FocusRequest = 0
}
Return
雖然我完全不知道這是否是ReSharper的責任,我會推薦以防萬一,在http://youtrack.jetbrains.net上打開一個問題。 –