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