Search found 10 matches

by Bodhi
16 Dec 2020, 18:30
Forum: Ask For Help
Topic: Acc search menu and submenus
Replies: 4
Views: 144

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
Topic: Check if Acc (MSAA) object has been destroyed
Replies: 0
Views: 38

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
Topic: Acc search menu and submenus
Replies: 4
Views: 144

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
Topic: Acc search menu and submenus
Replies: 4
Views: 144

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
Topic: Event handler/listener for a control's state possible?
Replies: 3
Views: 141

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
Topic: Workaround for DoDefaultAction on a hidden/unavailable menu item
Replies: 0
Views: 77

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
Topic: Window Spy my alternative
Replies: 18
Views: 3932

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
Topic: Window Spy my alternative
Replies: 18
Views: 3932

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
Topic: Invoke hidden menu item without hWnd (Qt5)
Replies: 0
Views: 77

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