Results 1 to 3 of 3

Thread: Timer

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    USA
    Posts
    33

    Question Timer

    I need a loop that checks top of every
    Hour that states:

    If appactive = "Microsoft Word" Then
    End If
    Else
    Shell "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"

    But appactivate doesn’t check if the app is running?

    SO I need How to set the loop to check every hour and
    how to check if Word is already open?

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    check the time every minute to see if the minute = "00" or "0". I'm not sure about how to check if it's running. maybe an API could do this?!
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    You can simply use a timer to check every hour; I believe there's even an API that can do this for you.

    As for the Word check app, you can use the FindWindow window. Here's info on how to use it: http://www.vbforums.com/showthread.p...hreadid=233589

Posting Permissions

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



Click Here to Expand Forum to Full Width