Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Show Alt-Tab Menu Until Button is Released


  • Please log in to reply
No replies to this topic
arqt
  • Members
  • 1 posts
  • Last active: Nov 04 2015 11:39 PM
  • Joined: 29 Oct 2015

I was hoping someone could help me figure out an issue I'm running into with my Alt-Tab script. The goal is to emulate holding Alt, pressing tab once, and then keeping the Alt-Tab menu up (continuing to hold Alt) until the trigger key is released. This is the code I have at the moment:

F12::
  Send {Alt down}{Tab}
  KeyWait F12
  Send {Alt up}
return

Which basically does what I want, except that the Alt-Tab menu dissapears after about half a second even when I keep holding down F12. To verify that KeyWait works properly I added a MsgBox command:

F12::
  Send {Alt down}{Tab}
  KeyWait F12
  MsgBox Key has been released.
  Send {Alt up}
return

The message does not appear until I release F12, however the Alt-Tab menu still dissapears after half a second. It seems like something is timing out, but I can't figure out what's causing the behavior. Any help would be appreciated.