+ Post New Thread
Results 1 to 6 of 6
Windows Thread, Auto generate timed keystrokes in Technical; Hi everyone Has anyone come across a free utility to auto-generate keystrokes/keypresses at timed intervals? I would like to be ...
  1. #1
    sdc
    sdc is offline
    sdc's Avatar
    Join Date
    Apr 2008
    Location
    Dorset, UK
    Posts
    310
    Thank Post
    53
    Thanked 42 Times in 37 Posts
    Rep Power
    41

    Auto generate timed keystrokes

    Hi everyone

    Has anyone come across a free utility to auto-generate keystrokes/keypresses at timed intervals? I would like to be able to clear annoying info boxes on a wall-mounted display screen; these messages only have an "OK" button, so timing an automatic "Enter" or "Space" keypress every 10 minutes/hour/etc would be very useful! I'm sure I've seen something like this at some point, but can't recall where now...!

    Thanks in advance
    Stephen

  2. #2

    Join Date
    Mar 2007
    Posts
    1,748
    Thank Post
    79
    Thanked 288 Times in 219 Posts
    Rep Power
    70

  3. Thanks to strawberry from:

    sdc (17th March 2009)

  4. #3
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    424
    Thank Post
    67
    Thanked 89 Times in 74 Posts
    Rep Power
    61
    Code:
    set WshShell = CreateObject("WScript.Shell")
    
    WshShell.Sendkeys "what_ever_you_want"
    
    WScript.Sleep 1000
    
    WshShell.Sendkeys "what_ever_you_want"
    
    WScript.Sleep 1000
    
    WScript.Quit()
    etc etc

    save as .vbs

    check SendKeys Method for the correct "what_ever_you_want" to insert

    BoX

  5. #4

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,613
    Thank Post
    1,230
    Thanked 773 Times in 671 Posts
    Rep Power
    235
    Quote Originally Posted by sdc View Post
    I would like to be able to clear annoying info boxes on a wall-mounted display screen; these messages only have an "OK" button, so timing an automatic "Enter" or "Space" keypress every 10 minutes/hour/etc would be very useful!
    Better - AutoIt has a WaitForNamedWindow or similar function, can't remember the exact name, that will wait for a specifically named window to appear, then execute some code for you. You could have the pop-up dismissed as soon as it appears.

    Probably a silly question, but what is it that's causing a message to pop up every 10 minutes, anyway?

    --
    David Hicks

  6. #5

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,236
    Thank Post
    1,057
    Thanked 1,067 Times in 624 Posts
    Rep Power
    740
    WinWait ( "title" [, "text" [, timeout]] )

    Code:
    ;Wait for the window "Untitled" to exist
    
    Run("notepad")
    WinWait("Untitled")
    
    ;Wait a maximum of 5 seconds for "Untitled" to exist
    WinWait("Untitled", "", 5)
    Stick it in a loop and hey presto.

  7. Thanks to mattx from:

    dhicks (17th March 2009)

  8. #6
    sdc
    sdc is offline
    sdc's Avatar
    Join Date
    Apr 2008
    Location
    Dorset, UK
    Posts
    310
    Thank Post
    53
    Thanked 42 Times in 37 Posts
    Rep Power
    41
    Thanks for the responses so far; I've tried using the WinWait and WinWaitActive functions in AutoIt but haven't had long enough yet to make it work... I'll keep trying however.

    The messages that need to be OK'd are "Connection failed" messages within Spotlight on Windows - if there's a momentary network blip, then at least one of our servers will disappear from the console with the message that its connection has failed. All that needs to happen is for that dialog box to be OK'd, followed by a few keystrokes which cause the file menu to be opened, and all the connections being re-established (those that survived the blip aren't affected by being reconnected!).

    Hope that makes sense. If anyone has any better ideas as to how to achieve this (such as auto-reconnect options within Spotlight on Windows), that would be great - I've not come across anything like this in the program, unfortunately.

    Thanks
    Stephen

SHARE:
+ Post New Thread

Similar Threads

  1. Javascript - Timed Script
    By danIT in forum Scripts
    Replies: 2
    Last Post: 26th November 2008, 02:04 PM
  2. Replies: 6
    Last Post: 22nd October 2008, 11:23 AM
  3. Timed Internet Access for Specific Computer Suite
    By mburland in forum Wireless Networks
    Replies: 5
    Last Post: 21st April 2008, 02:38 PM
  4. Timed shutdown problem
    By Lazyletters in forum Windows
    Replies: 7
    Last Post: 4th December 2007, 02:44 PM
  5. Auto Updating Help
    By j17sparky in forum MIS Systems
    Replies: 9
    Last Post: 11th December 2006, 07:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •