Fix Labview Alt-Tab behaviour with Autohotkey -
did try fix way labview interferes normal alt-tab
behaviour using autohotkey?
alt-tab
inside labview puts non-labview windows end of list.
so if have alt-tabbed labview window browser takes
(2 × number_of_currently_open_labview_projects -1)
keystrokes back.
great idea. find functionality annoying , there doesn't appear easy fix anywhere on web. here's script. 2 quick notes:
- i had lot of trouble re-mapping alt-tab. if that's critical can try starting here help.
- to knowledge it's not possible rid of "screen flicker" because windows requires delay between keystrokes.
note: adapt code various windows - "ahk_class" using window spy tool included in autohotkey installer .
code
#noenv ; recommended performance , compatibility future autohotkey releases. #warn ; enable warnings assist detecting common errors. sendmode input ; recommended new scripts due superior speed , reliability. setworkingdir %a_scriptdir% ; ensures consistent starting directory. #notrayicon #singleinstance force settitlematchmode 2 ;partial search mode #ifwinactive vi #q:: ;there issues mapping alt+tab countofvis := -1 winget, id, list,ahk_class lvdchild,, program manager loop, %id% { countofvis := countofvis +1 } msgbox, # of vis open: %countofvis% ;when remove doesn't work - must ahk thing send {alt down} loop,%countofvis% { send {tab} sleep,50 ;if low doesn't work } send {alt up}
Comments
Post a Comment