Jump to content

Recommended Posts

Posted

Hello i have a simple error, who can help me or resolve this problem? this is the script:

WinWait("WhosOn","Scan Complete.S")If Not WinActive("WhosOn","Scan Complete.S")

Then WinActivate("WhosOn","Scan Complete.S")

WinWaitActive("WhosOn","Scan Complete.S")

Send("{ENTER}")

on attachment the msgbox that appear.

errauto.bmp

Posted (edited)

I dont see the error-message :think:, but from the source I would guess theres an endif missing. I would do something more like this:

WinWait("WhosOn","Scan Complete.S")
while WinActive("WhosOn","Scan Complete.S") = 1
WinActivate("WhosOn","Scan Complete.S")
wend
Send("{ENTER}")

but maybe I just dont understand the code :(....

Edited by Polyphem
This post will be edited again by Polyphem: Tomorrow, 11:55 AM
Posted

I dont see the error-message :think:, but from the source I would guess theres an endif missing. I would do something more like this:

WinWait("WhosOn","Scan Complete.S")
while WinActive("WhosOn","Scan Complete.S") = 1
WinActivate("WhosOn","Scan Complete.S")
wend
Send("{ENTER}")

but maybe I just dont understand the code :(....

i use sciTE--> scriptwriter do you know?

Posted (edited)

Yep, I use that too. From the screenshot you could even better do

WinWait("WhosOn")
while WinActive("WhosOn") = 0
WinActivate("WhosOn")
wend
Send("{ENTER}")

as I dont see the "Scan Complete.S" on it.

Edit: Ups, sorry, it's winactive = 0

Edited by Polyphem
This post will be edited again by Polyphem: Tomorrow, 11:55 AM
Posted

Yep, I use that too. From the screenshot you could even better do

WinWait("WhosOn")
while WinActive("WhosOn") = 0
WinActivate("WhosOn")
wend
Send("{ENTER}")

as I dont see the "Scan Complete.S" on it.

Edit: Ups, sorry, it's winactive = 0

VERY VERY GOOD NOW IS CORRECT IT WORK VERY WELL THANK YOU SO MUCH....

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
  • Recently Browsing   0 members

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