[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

01 Oct 2018, 07:29

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)
}

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 79 guests