When trying to type into a HTML textbox/text area, if there are to many keys typed to quickly, autohotkey will experience a fatal error, it will almost completely freeze the entire system.
Code: Select all
Faulting application name: Eclipse.exe, version: 1.0.0.25, time stamp: 0x5a509bb7
Faulting module name: MSHTML.dll, version: 11.0.16299.371, time stamp: 0x55561f7e
Exception code: 0xc0000602
Fault offset: 0x000000000055c329
Faulting process id: 0x6eac
Faulting application start time: 0x01d3eebf5a7c1580
Faulting application path: C:\Users\chris.miller1\Box Sync\Eclipse - personal\vdrive\web\Eclipse.exe
Faulting module path: C:\WINDOWS\SYSTEM32\MSHTML.dll
Report Id: c3bd0b49-5020-4c25-9099-64785e97130a
Faulting package full name:
Faulting package-relative application ID:
Code: Select all
gui_KeyDown(wParam, lParam, nMsg, hWnd) {
if (Chr(wParam) ~= "[A-Z]" || wParam = 0x74) ; Disable Ctrl+O/L/F/N and F5.
return
wb := getDOM()
pipa := ComObjQuery(wb, "{00000117-0000-0000-C000-000000000046}")
VarSetCapacity(kMsg, 48), NumPut(A_GuiY, NumPut(A_GuiX
, NumPut(A_EventInfo, NumPut(lParam, NumPut(wParam
, NumPut(nMsg, NumPut(hWnd, kMsg)))), "uint"), "int"), "int")
Loop 2
r := DllCall(NumGet(NumGet(1*pipa)+5*A_PtrSize), "ptr", pipa, "ptr", &kMsg)
; Loop to work around an odd tabbing issue (it's as if there
; is a non-existent element at the end of the tab order).
until wParam != 9 || wb.Document.activeElement != ""
ObjRelease(pipa)
if r = 0 ; S_OK: the message was translated to an accelerator.
return 0
}
It also seems to have to do with how fast your computer is. When I spam type keys on my keyboard on my i7, I can type hundreds of keys and then it will finally crash, however, many of my users are on an i3/i5 and they experience this crash pretty quickly.
I've got two screen capture videos of the issue in action
https://drive.google.com/open?id=1f-MGc ... yc-VOwtfpH
https://drive.google.com/open?id=1xicg_ ... R94BnLDAg0