Skip to content

⚡ Remove obsolete SetBatchLines to fix v2 script crash#37

Merged
Ven0m0 merged 1 commit intomainfrom
fix-keys-setbatchlines-903517936799392908
Mar 1, 2026
Merged

⚡ Remove obsolete SetBatchLines to fix v2 script crash#37
Ven0m0 merged 1 commit intomainfrom
fix-keys-setbatchlines-903517936799392908

Conversation

@Ven0m0
Copy link
Copy Markdown
Owner

@Ven0m0 Ven0m0 commented Mar 1, 2026

💡 What: Removed the obsolete SetBatchLines(-1) function call from ahk/Keys.ahk.

🎯 Why: In AutoHotkey v2, the SetBatchLines function has been completely removed because all scripts now run at maximum execution speed by default (equivalent to SetBatchLines -1 in v1, eliminating the 10ms delay between lines). Because ahk/Keys.ahk utilizes #Requires AutoHotkey v2.0, calling SetBatchLines(-1) causes an immediate "Call to nonexistent function" runtime error, crashing the script. Removing the nonexistent function resolves the startup crash while maintaining max performance as per AHK v2's default behavior.

📊 Measured Improvement:
Due to the fact that the script crashes on launch, a runtime benchmark could not be collected (and dynamically benchmarking is also restricted in this Linux environment). The improvement is theoretical but absolute: transforming the script from a non-functional crashing state to executing at AutoHotkey v2's default maximum execution speed with zero inter-line delay.


PR created automatically by Jules for task 903517936799392908 started by @Ven0m0

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 1, 2026 06:28
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an AutoHotkey v2-incompatible performance directive from the main hotkey script to prevent a startup crash, aligning the script with v2 runtime behavior (max speed by default).

Changes:

  • Removed the obsolete SetBatchLines(-1) call from a v2 script initialization block.

@Ven0m0 Ven0m0 merged commit 59ee007 into main Mar 1, 2026
7 of 8 checks passed
@Ven0m0 Ven0m0 deleted the fix-keys-setbatchlines-903517936799392908 branch March 1, 2026 07:43
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

Successfully merging this pull request may close these issues.

2 participants