[BUG] #MaxThreadsBuffer invalid

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
arcticir
Posts: 694
Joined: 17 Nov 2013, 11:32

[BUG] #MaxThreadsBuffer invalid

13 Oct 2018, 10:34

In the following example, every time you press "RALT", no matter how much time it takes, "ID" will only +1.
However, if the "Critical" command is used, the hotkey of the period will change from "ignore" to "cache".

Code: Select all

#MaxThreadsPerHotkey 1
#MaxThreadsBuffer off
#Persistent
id:=0
CreateClass("tt")
CreateWindowEx(0,"tt",,0,0,0,0,0,0,0,0,0)
RAlt::
ToolTip ++id
KeyWait "ralt"
return


CreateClass(name,func:="CreateClass_proc",back:=16,hIcon:=0){
	UnregisterClass(&name,A_ModuleHandle)
	c:=struct(r:="UINT cbSize;UINT style;LPDWORD lpfnWndProc;int cbClsExtra;int cbWndExtra;HINSTANCE hInstance;HICON hIcon;HCURSOR hCursor;HBRUSH hbrBackground;LPCSTR lpszMenuName;UINT lpszClassName;HICON hIconSm;"
		,{cbSize:sizeof(r),style:3,lpfnWndProc:func is "integer" ?func:CallbackCreate(func,"f",4),cbClsExtra:0,cbWndExtra:0
			,hInstance:A_ModuleHandle,hIcon:hIcon,hCursor:LoadCursor(0,32512),hbrBackground:back
			,lpszMenuName:0,lpszClassName:&name,hIconSm:hIconSm=""?hIcon:hIconSm})
	return  RegisterClassEx(c[""])
}

CreateClass_proc(h,m,w,l){
    Critical		;<<<<Murderers
	return DefWindowProc(h,m,w,l)
}
I only tested the DLL thread.
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: [BUG] #MaxThreadsBuffer invalid

19 Oct 2018, 16:12

I don't think this is AHK_H specific, can you test the script in AHK_L v2.100?
arcticir
Posts: 694
Joined: 17 Nov 2013, 11:32

Re: [BUG] #MaxThreadsBuffer invalid

21 Oct 2018, 07:37

There are some difficulties... :shock:

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 22 guests