Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error detecting script type #21

Open
DeathWrench opened this issue Oct 18, 2024 · 0 comments
Open

Error detecting script type #21

DeathWrench opened this issue Oct 18, 2024 · 0 comments

Comments

@DeathWrench
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant