Jump to content

Simple script fails in Win7


Recommended Posts

$i = 1

While $i = 1
If WinExists("Popup", "") Then
WinClose("Popup", "") 
    EndIf
    Sleep(5000)
    
Wend

I've tried running this as an .exe in Win7 with admin privelages and it still doesn't work. What's the deal here?

Edited by Silverel
Link to comment
Share on other sites

Does the 'Popup' window have any text? If so, then when you say WinExists("Popup", "") that means that you're asking for a window named Popup which has no text. At least that's my theory.

Link to comment
Share on other sites

This works flawlessly in XP and Vista environments, I was just curious if there was anything specific about Win7 that would cause it to fail. My disadvantage here is that I can't actually write the script on the Win7 machine. :mellow:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...