Skip to content

Error detecting script type #21

@DeathWrench

Description

@DeathWrench
Error: PCRE execution error.

Specifically: -8

	---- C:\Program Files\AutoHotkey\UX\inc\identify.ahk
	003: {
	005: p := 1, count_1 := count_2 := 0, version := marks := ''
▶	006: While (p := RegExMatch(code, identify_regex, &m, p))
	006: {
	007: p += m.Len()

Call stack:
C:\Program Files\AutoHotkey\UX\inc\identify.ahk (6) : [RegExMatch] While (p := RegExMatch(code, identify_regex, &m, p))
C:\Program Files\AutoHotkey\UX\inc\identify.ahk (6) : [IdentifyBySyntax] While (p := RegExMatch(code, identify_regex, &m, p))
C:\Program Files\AutoHotkey\UX\launcher.ahk (72) : [GetLaunchParameters] i := IdentifyBySyntax(code)
C:\Program Files\AutoHotkey\UX\launcher.ahk (139) : [IdentifyAndLaunch] lp := GetLaunchParameters(ScriptPath, !(whichMode := args.HasProp('which')))
C:\Program Files\AutoHotkey\UX\launcher.ahk (59) : [Main] IdentifyAndLaunch(ScriptPath, A_Args, switches)
C:\Program Files\AutoHotkey\UX\launcher.ahk (16) : [] Main()
> Auto-execute

When I try to run this script I get this error above:

#SingleInstance, Force
#MaxThreadsPerHotkey 2
#UseHook On
!F4::
WinGetActiveTitle, active_id_name
WinGet, active_id, PID, A
WinClose, %active_id_name%
Process, Close, %active_id%
return
F12::
WinGet, WindowID, ID, A
WinSet, Style, -0xC40000, ahk_id %WindowID%
WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
Return
:*:w::{Blind}{Up down}
:*:s::{Blind}{Down down}
:*:a::{Blind}{Left down}
:*:d::{Blind}{Right down}
:*:e::{Blind}{Enter down}
*~w up::
If !GetKeyState("w","p")
Send {Blind}{Up up}
*~a up::
If !GetKeyState("a","p")
Send {Blind}{Left up}
*~s up::
If !GetKeyState("s","p")
Send {Blind}{Down up}
*~d up::
If !GetKeyState("d","p")
Send {Blind}{Right up}
*~e up::
If !GetKeyState("e","p")
Send {Blind}{Enter up}

image

Compiling this script to .exe with these settings fixes the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions