Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

VBScript for Alt-Tab after fixed duration?

  • 24-01-2011 4:35pm
    #1
    Registered Users, Registered Users 2 Posts: 83 ✭✭


    Folks,

    Could anyone tell me how i can create a simple VBScript that will cycle through five or six open and maximised windows in XP (various apps such as IE8, VLC, Visio, etc.,) and exit when I press the Esc key?

    At the moment, I'm using the following, but I can't quit it without logging out...
    "Option Explicit
    Dim objShell
    Set objShell = CreateObject("WScript.Shell")
    Do
    objShell.SendKeys "%+{TAB}"
    Wscript.Sleep 9000
    Loop"

    Also, the time (which I think is "9000" does not bear any resemblance to seconds or minutes. Is there any other means of determining the duration between the Alt-Tabs?

    Thanks a million in advance,

    Brian
    P.S. the purpose of this is to cycle between KPI screens, network map and other metrices at our helpdesk office.


Comments

  • Closed Accounts Posts: 23,718 ✭✭✭✭JonathanAnon


    I did a quick google and found this app

    http://www.autohotkey.com/

    one person has suggested that using with the following code will do exactly what you need it to do..
    Loop {
    Send {Alt down}{Tab down}{Alt up}{Tab up}
    Sleep 60000 ; wait 60 seconds
    }


Advertisement