using ahk to close a pop up dialogue within visual studio

后端 未结 2 727
说谎
说谎 2021-01-25 19:16

I\'ve remapped a few keys, which has been working fine; however, I\'m having a difficult time trying to get rid of a pop up dialogue within visual studio:

Here\

2条回答
  •  -上瘾入骨i
    2021-01-25 19:48

    What am I doing wrong?

    • Needle = "A network-related or instance-specific error" - String assignments don't work like that in AHK. You either use Needle := "A network..." or Needle = A network....

    • What's the point of your ALT+A-Hotkey? If the window pops up, why don't you simply press Enter??

    • If WinActive("Microsoft Visual Studio")
       {
      
       }
       else
       {
         Send !{F4}n
       }
      

      So, close the window when the popup is not active??

    • return

      Everything after this keyword doesn't get executed. Your script will never reach WinWaitActive, Microsoft Visual Studio.

    btw cool name bro

提交回复
热议问题