Search found 12 matches

by Bodhi
05 Mar 2021, 16:37
Forum: Ask for Help (v1)
Topic: WebSocket Server API for AHK
Replies: 1
Views: 814

Re: WebSocket Server API for AHK

Any developments since this post? I'm also looking for an AHK websocket server but all I find are clients.
by Bodhi
22 Jan 2021, 21:28
Forum: Ask for Help (v1)
Topic: Check if Acc (MSAA) object has been destroyed
Replies: 1
Views: 425

Re: Check if Acc (MSAA) object has been destroyed

I found this MS documentation that might be a clue, but I am just scratching the surface of IAccessible. I've been using this fn to validate iAccessible objects but it doesn't account for destroyed IAccessible objects (proxies?) IsAcc(oAcc){ if (ComObjType(oAcc, "Name") == "IAccessible"){ return tru...
by Bodhi
16 Dec 2020, 18:30
Forum: Ask for Help (v1)
Topic: Acc search menu and submenus
Replies: 4
Views: 322

Re: Acc search menu and submenus

Thanks. It was the recursive logic that was giving me trouble. It's been a while since I did it in js and was a bit rusty. Here's the basic structure I came up with in case it helps someone else: DoActionByName(oParent, vText) { ;menu object, menuitem name (recursive version) children := Acc_Childre...
by Bodhi
16 Dec 2020, 13:55
Forum: Ask for Help (v1)
Topic: Check if Acc (MSAA) object has been destroyed
Replies: 1
Views: 425

Check if Acc (MSAA) object has been destroyed

I'm using the Acc library. Looking for a clean way to check if an Acc object still exists. I guess technically the acc object still exists even though the element it references has been destroyed, but I think you get the gist. In my case the Acc object is a context popup menu that gets destroyed/re-...
by Bodhi
13 Dec 2020, 18:21
Forum: Ask for Help (v1)
Topic: Acc search menu and submenus
Replies: 4
Views: 322

Re: Acc search menu and submenus

It’s a nonstandard menu, hence the need for Acc and not the usual ahk suspects. My function works, just need a recursive search to check any sub menus.
by Bodhi
13 Dec 2020, 00:54
Forum: Ask for Help (v1)
Topic: Acc search menu and submenus
Replies: 4
Views: 322

Acc search menu and submenus

I have menus with submenus that I need to search using Acc. I have no problem getting the Acc menu object and searching the names of its children and then doing the child's default action. However, I need to search all submenus as well. I looked at some of the Acc tools like AccViewer to see if I co...
by Bodhi
20 Nov 2020, 14:24
Forum: Ask for Help (v1)
Topic: Event handler/listener for a control's state possible?
Replies: 3
Views: 1102

Event handler/listener for a control's state possible?

I need to trigger a function when a control's state changes. I'm able to get the control state without issue. The state can change without user intervention, so watching mouse clicks won't work in this case. Is there a way to watch the control's state without using a timer? I'm hoping there's a more...
by Bodhi
27 Oct 2020, 19:06
Forum: Ask for Help (v1)
Topic: Workaround for DoDefaultAction on a hidden/unavailable menu item
Replies: 0
Views: 200

Workaround for DoDefaultAction on a hidden/unavailable menu item

Is there a way to press (the default action of) a menu item while it's state is invisible and unavailable (0x8081)? It works as expected via ACC DoDefaultAction when it's visible, but I'd like to keep the menu hidden from the user if possible. The menu is non standard (Qt), so none of the regular me...
by Bodhi
27 Oct 2020, 14:23
Forum: Scripts and Functions (v1)
Topic: Window Spy my alternative
Replies: 18
Views: 8858

Re: Window Spy my alternative

@gregster Yep, that was it. Save as... from the download link context menu did the trick. Thanks!
by Bodhi
27 Oct 2020, 12:40
Forum: Scripts and Functions (v1)
Topic: Window Spy my alternative
Replies: 18
Views: 8858

Re: Window Spy my alternative

I'm getting an error when trying to run v4.46. I'm running ahk_L 64-bit in win10 pro. I pasted the raw code into Scite4ahk. Any help is appreciated. AhkSpy.ahk --------------------------- Error at line 4784. Line Text: Static oStyles, oEx Error: This line does not contain a recognized action. The pr...
by Bodhi
06 Oct 2020, 15:24
Forum: Ask for Help (v1)
Topic: Invoke hidden menu item without hWnd (Qt5)
Replies: 0
Views: 215

Invoke hidden menu item without hWnd (Qt5)

Is there a way to invoke a menu item with limited info? It does have a name, which gives me hope that it can be found/referenced somehow. It's in a Qt5 app, which I understand can make it difficult, if not impossible. I'm trying to learn all the different ways to interact with an app's UI (MSAA, UIA...

Go to advanced search