Results 1 to 3 of 3

Thread: VBS Easy Question

  1. #1
    Senior Member crazyfool's Avatar
    Join Date
    Jan 2008
    Posts
    761
    Thanks
    77
    Thanked
    38 times in 38 posts
    • crazyfool's system
      • Motherboard:
      • Striker Extreme
      • CPU:
      • Q6600
      • Memory:
      • OCZ 6400 2 x 2GB
      • Storage:
      • Samsung Spinpoint 500GB
      • Graphics card(s):
      • BFG 8800 GT OC 512MB
      • PSU:
      • Coolermaster Real Power Pro 850w
      • Case:
      • Coolermaster CM-690
      • Operating System:
      • XP, Vista, Windows 7 & Ubuntu
      • Monitor(s):
      • Samsung 2232BW

    VBS Easy Question

    well easy for you I hope lol... basically I have a vbscript which finds and closes a window, what i would like to do is make a loop which runs for say 5 seconds and then exits for examplesome thing like...
    do while time isn't 5 seconds yet and windowfound = false
    if window exists
    close it (i have the script for this task)
    set windowfound = true
    else
    do nothing
    loop

    the reason i need it to loop rather then wait for x seconds and try again is because i want to make sure the window never appears so i need it to run constantly so that it closes the window straight away, i had a look on the net but couldn't find an answer... anyone know how to do this plz...

  2. #2
    Splash
    Guest

    Re: VBS Easy Question

    post your code and I'll take a look.

  3. Received thanks from:

    crazyfool (17-12-2008)

  4. #3
    Senior Member crazyfool's Avatar
    Join Date
    Jan 2008
    Posts
    761
    Thanks
    77
    Thanked
    38 times in 38 posts
    • crazyfool's system
      • Motherboard:
      • Striker Extreme
      • CPU:
      • Q6600
      • Memory:
      • OCZ 6400 2 x 2GB
      • Storage:
      • Samsung Spinpoint 500GB
      • Graphics card(s):
      • BFG 8800 GT OC 512MB
      • PSU:
      • Coolermaster Real Power Pro 850w
      • Case:
      • Coolermaster CM-690
      • Operating System:
      • XP, Vista, Windows 7 & Ubuntu
      • Monitor(s):
      • Samsung 2232BW

    Re: VBS Easy Question

    yo thanks for the reply m8 but I found a way around it... I have the loop run once, pause for 1/10th of a second then go again until the counter I am using to count each pause = 50 which would be five seconds... not what i wanted but it will do the job... thanks tho

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Another probaly easy for you c++ question
    By crazyfool in forum Software
    Replies: 10
    Last Post: 24-10-2008, 12:17 PM
  2. Unable to run iTunes based VBS files
    By Enverex in forum Help! Quick Relief From Tech Headaches
    Replies: 2
    Last Post: 11-10-2008, 04:59 PM
  3. Not a very technical Question, but a Question none the less.
    By chip35 in forum Help! Quick Relief From Tech Headaches
    Replies: 6
    Last Post: 24-03-2007, 09:05 PM

Posting Permissions

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