AHK Says that I am missing a closing braket on line 10

Ask gaming related questions (AHK v1.1 and older)
_AlbertGuo
Posts: 1
Joined: 26 Dec 2020, 22:39
Contact:

AHK Says that I am missing a closing braket on line 10

26 Dec 2020, 23:14

Code in question is here

Code: Select all

^!p::Pause
Esc::ExitApp

^!r::
    Loop
    {
        Sleep, 100
        Loop, 12
        {
            /* reload page to join the VIP server */
            Sendinput, {^r}

            Loop
            {
            	/* check if that start button has appeared, if so, start the game */
                target := 0x1780B5
                MouseMove, 969, 876
                MouseMove, 968, 876
                PixelGetColor, startbutton, 971, 876
                Sleep, 500
            }
            Until startbutton = %target%

            MouseClick

            /* Move towards starting area */
            Send, {a down}
            Sleep, 50
            Send, {e}
            Sleep, 250
            Send, {a up}
            Send, {s down}
            Sleep, 200
            Send, {s up}
        }
    }
    return
ahkbin link as well: https://p.ahkscript.org/?p=474bb910

Sorry if this question was very basic, I am just starting out.
User avatar
Ocelot
Posts: 8
Joined: 04 Oct 2020, 16:21

Re: AHK Says that I am missing a closing braket on line 10

27 Dec 2020, 00:35

/* reload page to join the VIP server */

Was causing the issue. In the future you can use ; to comment out lines. Probably remove the other ones too in case you get the same error again.

; This lime will be commented out so you can type whatever.
MouseMove, 969, 876 ; Putting it after code will make everything after it a comment on this line.
MouseMove, 968, 876 ; Putting it after code will make everything after it a comment on this line.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 47 guests