【发布时间】:2016-04-01 12:23:22
【问题描述】:
我重新映射了几个键,效果很好;但是,我很难摆脱 Visual Studio 中的弹出对话框:
这是我尝试过的:
WinWaitActive, Microsoft Visual Studio
If WinActive("Microsoft Visual Studio")
{
WinGetText, HayStack
Needle = "A network-related or instance-specific error"
IfInString, Haystack, %Needle%
{
MsgBox, The string was found.
return
}
else
Sleep, 1
}
return
但是,我没有得到任何回应。
包括几个关键重新映射的整个脚本如下:
SetTitleMatchMode 2
!z::Send, !{F4}
!x::Send, !fc
!c::Send, 23481241240910324
^d::Send {End}{Shift Down}{Up}{End}{Shift Up}{Backspace}
!a::
If WinActive("Microsoft Visual Studio")
{
}
else
{
Send !{F4}n
}
return
WinWaitActive, Microsoft Visual Studio
If WinActive("Microsoft Visual Studio")
{
WinGetText, HayStack
Needle = "A network-related or instance-specific error"
IfInString, Haystack, %Needle%
{
MsgBox, The string was found.
return
}
else
Sleep, 1
}
return
我做错了什么?如何摆脱这种对话?
【问题讨论】:
-
你想完成什么?为什么不能直接点击确定并解决问题?