Skip to content

Commit

Permalink
fix: no comObj
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Dec 1, 2023
1 parent c2ca88f commit ddc582b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/RabbitCaret.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ GetCaretPos(&caret_x?, &caret_y?, &caret_w?, &caret_h?) {
caret_h := 0

; Acc caret
static acc_lib := DllCall("LoadLibrary", "Str", "oleacc", "Ptr")
try {
static acc_lib := DllCall("LoadLibrary", "Str", "oleacc", "Ptr")
local hwnd := WinExist("A")
local iid := Buffer(16, 0)
local riid := NumPut("Int64", 0x11CF3C3D618736E0, iid)
Expand Down Expand Up @@ -74,8 +74,8 @@ GetCaretPos(&caret_x?, &caret_y?, &caret_w?, &caret_h?) {
}

; UIA2
static uia_lib := ComObject("{e22ad333-b25f-460c-83d0-0581107395c9}", "{34723aff-0c9d-49d0-9896-7ab52df8cd8a}")
try {
static uia_lib := ComObject("{e22ad333-b25f-460c-83d0-0581107395c9}", "{34723aff-0c9d-49d0-9896-7ab52df8cd8a}")
; https://github.com/tpn/winsdk-10/blob/9b69fd26ac0c7d0b83d378dba01080e93349c2ed/Include/10.0.16299.0/um/UIAutomationClient.h#L15415
; GetFocusedElement
ComCall(8, uia_lib, "Ptr*", &focused_element := 0)
Expand Down

0 comments on commit ddc582b

Please sign in to comment.