AHKv2.0 Reload \\ Sleep \\ Threads

Get help for the alpha version of AutoHotkey v2 here. Please state the v2 version you are working with in the title when making a new topic.
Posts: 276
Joined: 29 Jan 2014, 14:40

AHKv2.0 Reload \\ Sleep \\ Threads

11 Mar 2014, 10:16

I read the ideas that will realized in v2.0 and direction is right.
Simple and synonymous syntax.
Expression anywhere.
Try / Catch - simple mechanism.

And of course I start migrate to v2.0

1. Reload
In v2.0 some problem with reloading - time to time I got some Errors - reloading impossible - the same script v1.0 (_L) reloaded unlimited times.
2. Sleep
Sleep work by fits and starts instead of v1.0 (_L). I rewrite all my time dependent AHK codes to C (.dll library) but still when use Sleep no smooth running.
I think 1. and 2. are result by threading in AHK interpreter. I mention if hotkeys and timers Sleep not work well and script consume much CPU and RAM compared to v1.0 (_L) with same functionality.
AHKv2.0 alpha forever.
Posts: 6897
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: AHKv2.0 Reload \\ Sleep \\ Threads

11 Mar 2014, 16:43

Reloading, sleep and threads all work the same in every version of AutoHotkey. However, v2 behaves as though SetBatchLines -1 was used (the command has been removed). Does your script have these problems in v1 if you use SetBatchLines -1?

Return to “AutoHotkey v2 Help”

Who is online

Users browsing this forum: No registered users and 1 guest