Jump to content

I can't find the error


Recommended Posts

If $text Not =("FolderView") Then
            $pos2 = WinGetPos("Control Panel")
        ;$position[0] is x-pos, $position[1] is y-pos
            sleep(500)
            MouseClick("left",$pos2[0]+184, $pos2[1]+141,1,0)
            sleep(1000)
            $pos2 = WinGetPos("Control Panel")
        ;$position[0] is x-pos, $position[1] is y-pos
            sleep(500)
            MouseClick("left",$pos2[0]+98, $pos2[1]+172,2,0)
            sleep(1000)
        EndIf

The error from Scite is

Windows Config 2.4.6.au3(124,12) : ERROR: syntax error

If $text Not

~~~~~~~~~^

Link to comment
Share on other sites

  • Developers

If Not ($text = "FolderView") Then

-or -

If $text <> "FolderView" Then

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...