有人试图修复Labview使用Autohotkey干扰正常Alt-Tab行为的方式吗?
Labview内部的Alt-Tab将所有非labview窗口放到列表的末尾.
因此,如果您刚刚从浏览器中选择选项卡到labview窗口,则需要
(2×number_of_currently_open_labview_projects -1)
按一下键才能回来。
发布于 2015-06-11 15:55:06
好主意。我觉得这个功能很烦人,而且在网络上任何地方似乎都没有一个容易修复的地方。这是我的剧本。两个简短的注释:
注意:要使此代码适应不同的Windows -使用AutoHotkey 安装程序中包含的Window间谍工具查找“安装程序”。
代码
#NoEnv  ; Recommended for performance and compatibility with future 
AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#NoTrayIcon 
#SingleInstance force
SetTitleMatchMode 2 ;partial search mode
#IfWinActive vi
#q:: ;there were issues mapping to Alt+Tab
CountOfVIs := -1
WinGet, id, list,ahk_class LVDChild,, Program Manager
Loop, %id%
{
CountOfVIs := CountOfVIs +1
}
msgbox, # of VIs open: %CountOfVIs% ;when I remove this it doesn't work - must be an AHK thing
Send {Alt down}
Loop,%CountOfVIs%
{
Send {tab}
Sleep,50 ;if this is too low it doesn't work
} 
Send {Alt up}发布于 2015-06-26 05:15:09
我最近发现了一个与这个问题相关的文章,但不幸的是它是用俄语写的。
它使用一个python脚本(+自动热键映射)引用了下面的博客,该脚本似乎解决了这个问题而没有“屏幕闪烁”。
https://stackoverflow.com/questions/30570571
复制相似问题