Search found 57 matches

by mora145
11 Feb 2024, 22:49
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

Hi @Descolada
How I can avoid the error: failed to find the browser!? I have a lot of this
by mora145
26 Jan 2024, 02:03
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

@mora145 there isn't, but you can check the element for children with if Element.Children.Length and continue walking the tree if needed. Or if you know that you only need to skip "About this result" then perhaps el.WalkTree("-1", {Type:"Link", not:{Name:"About this result"}}) or el.WalkTree("-2", ...
by mora145
26 Jan 2024, 00:35
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

Descolada Hi man! You can help me with this? I have: try{ hello := pointer.FindElements({Name:"About this result", Type:"Button"}) } if(hello.Length > 0){ for el in hello { webPage := el.WalkTree("-1",{Type:"Link"}) Screenshot_77.png The hello element is the red box, I find it, but webPage, just re...
by mora145
19 Jan 2024, 00:19
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

@mora145 you are trying to Dump an array, which doesn't have that functionality. Instead you can loop through all the elements inside the array and show their contents: for el in pointer MsgBox el.DumpAll() @Spitzi if the table rows/cells are inspectable with UIAViewer then you could try looking at...
by mora145
15 Jan 2024, 16:17
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

@Descolada
Other problem here:
I obtain the elements, but when I will Dump it, produce a exception.
Screenshot_74.png
Screenshot_74.png (59.27 KiB) Viewed 1636 times
Screenshot_75.png
Screenshot_75.png (15.23 KiB) Viewed 1636 times
by mora145
15 Jan 2024, 11:46
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

@mora145 you are doing everything correct, but Chrome is not (yet for another unknown reason). You can use finalElement := UIA.ContentViewWalker.GetLastChildElement(page) or finalElement := page[-1] as workarounds. I see. There are times when Chrome is illogical. Thanks Descolada and for staying tu...
by mora145
15 Jan 2024, 11:01
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 59779

Re: UIA v2

Hi, I'm trying obtain the last child element of this father element. The page is https://therealacademy.org/ Screenshot_72.png page := cUIA.GetCurrentDocumentElement() MsgBox page.DumpAll() finalElement := UIA.TreeWalkerTrue.GetLastChildElement(page) MsgBox finalElement.DumpAll() But I continue obta...
by mora145
27 Dec 2023, 03:51
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

Descolada wrote:
25 Dec 2023, 08:55
@mora145, I think it's because the ListItem is not a sibling element, but is a parent. Try instead hola := element.FindByPath("p", "ControlType=ListItem")
I see. So just work with 'brothers' elements.
by mora145
24 Dec 2023, 03:49
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

Hi Descolada Im trying to find a ListItem using the FindByPath() function, but not work. image.png Here is my code: element := cUIA.FindFirstBy("Name='ds4' AND ControlType=Text") hola := element.FindByPath("-1", "ControlType=ListItem") Element pointer is finded correctly but the list not. The debugg...
by mora145
08 Feb 2023, 19:12
Forum: Ask for Help (v1)
Topic: How to get the path of a file object? Topic is solved
Replies: 8
Views: 1340

Re: How to get the path of a file object? Topic is solved

Code: Select all

file := "C:\TestFolder\test.txt"
Loop, %file%
    FilePath := A_LoopFileDir
    MsgBox, % FilePath
The text box should show "C:\testFolder".

I don't know if that's what you needed, but I'll leave it here, I was looking for a way to get the path without using regular expressions.
by mora145
30 Jan 2023, 20:42
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

@mora145, I guess if FindByPath isn't working out at all, then you could use as a workaround hello.FindByPath("p.10") ? Or something like this might work as well: TextTW := cUIA.CreateTreeWalker("Type=Text") MsgBox, % TextTW.GetLastChildElement(hello.FindByPath("p")).Dump() I make that phoneButton:...
by mora145
29 Jan 2023, 05:21
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

@mora145, if you Dump hello := chrome.FindFirstBy("Name="phoneButton) , do you get the correct output of Type: 50005 (Hyperlink) Name: "דברו איתי" Value: "tel:072-3301774" LocalizedControlType: "link" ? Ye, I obtain the correct. You could try hello.FindByPath("p").DumpAll() to verify that the text ...
by mora145
29 Jan 2023, 04:55
Forum: Scripts and Functions (v1)
Topic: DeepL autotranlation in AutoHotKey
Replies: 0
Views: 872

DeepL autotranlation in AutoHotKey

Hello friends. Here I leave a small video about a script that I use to quickly translate text from English to any language you set in DeepL. Requeriments: Descolada Lib: https://github.com/Descolada/UIAutomation You will need create a folder in AutoHotKey system folder, named Lib, and you need place...
by mora145
29 Jan 2023, 04:20
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

Hi Descolada, I have a problem getting an element. I spent all day trying to get the text from path 1.2.16, but I keep getting an empty element like this: Screenshot_29.jpg This is what my DumpAll returns when I get the window. 1.2.15 Type: 50005 (Hyperlink) Name: "דברו איתי" Value: "tel:072-3301774...
by mora145
11 Jan 2023, 15:12
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

Excelentísimo! Gracias @Descolada. Prometo que haré una donación cuando reciba algún dinero. Gran trabajo con tu librería. Eres lo máximo explicando, gracias por tu tiempo.
by mora145
11 Jan 2023, 09:57
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 127004

Re: UIAutomation with a focus on Chrome

Hi @Descolada

I am trying to use FindFirstWithOptions but I can't get it to work. Do you have an example in AHK that can help me?
by mora145
08 Dec 2022, 09:50
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 614
Views: 137562

Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)

I am trying to do some scrolling in this window. I can't get it to scroll correctly but it's the screen behind me that moves. How can I do it? Screenshot_81.jpg Get all elements having innertext unfollow, now you can use element[x].focus it will automatically scroll to the element and focus that el...
by mora145
07 Dec 2022, 18:26
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 614
Views: 137562

Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)

I am trying to do some scrolling in this window. I can't get it to scroll correctly but it's the screen behind me that moves. How can I do it? Screenshot_81.jpg Get all elements having innertext unfollow, now you can use element[x].focus it will automatically scroll to the element and focus that el...
by mora145
07 Dec 2022, 01:14
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 614
Views: 137562

Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)

Hello I am just starting to use Rufaydium. Thanks for keeping this library active and updated :) There are many videos showing your library and the documentation is excellent. So I guess that's why almost nobody requires support. I love the simplicity and that it can be used in the background, not l...
by mora145
06 Dec 2022, 12:06
Forum: Ask for Help (v1)
Topic: Wait for HotKeys after of Input Dialog Box Topic is solved
Replies: 2
Views: 438

Re: Wait for HotKeys after of Input Dialog Box Topic is solved

mikeyww wrote:
06 Dec 2022, 11:46
You could use the Hotkey command to enable or disable the hotkeys when you wish. Alternatively, #If can be used to set a context for them.
Ty :) is done

Go to advanced search