Search found 90 matches

by leosouza85
17 Apr 2023, 00:53
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Hi Descolada ! I have an Idea: Why not make the functions after and before? that will search the first object after or before a specified one Example: cUIA.WaitElementExistByName("Submit").after("Full Editor & Preview").click() cUIA.WaitElementExistByName("Submit").before("Post Reply").click() Its n...
by leosouza85
07 Feb 2023, 23:28
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Thanks. el.WaitElementExist("ControlType=Button AND AutomationId='AppIdentityBuyButton'", 30000).Click("") ; timeout 30 seconds Is this wrong for a timeout? It doesn't seem to proceed even after the 30 seconds have passed. You should write like that: el.WaitElementExist("ControlType='Button' AND Au...
by leosouza85
23 Jan 2023, 07:06
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

@leosouza85, I think I understood the problem you are describing and I've thought about your proposed solution for a bit. Group (name = television) -Button (name = television c1) --Text (name = television c1c1) Essentially what you want from this is for nameless elements to have some unique identif...
by leosouza85
21 Jan 2023, 14:45
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

hi Descolada In UIA Tree, we have a lot of Elements without any Name, usually children of something that have a name... lets suppose we have the following: Group (name = television) -Button (name = "") --Text (name = "") Maybe there will be a good thing if UIA Interface gives the name of the parent ...
by leosouza85
21 Jan 2023, 14:44
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 453747

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

gregster wrote:
21 Jan 2023, 14:28
@leosouza85, is your post really related to this topic, Chrome.ahk? To me, it seems pretty offtopic...
Man!!!!! Im so sorry!!!! Wrong topic
by leosouza85
13 Jan 2023, 08:38
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Hi, @Descolada I've noticed, the function SmallestElementFromPoint, only works when the mouse cursor is an arrow, when hovering a link (the arrow turns into a hand and when hovering a edit, the mouse turns into a caret) the code will not work: Example: MouseGetPos, OutputVarX, OutputVarY Msgbox % cU...
by leosouza85
11 Dec 2022, 01:09
Forum: General Discussion
Topic: Are you experimenting ask ChatGPT AHK questions?
Replies: 0
Views: 646

Are you experimenting ask ChatGPT AHK questions?

It is fantastic, here some samples: How can i edit a word document using autohotkey com object? To edit a Microsoft Word document using AutoHotkey COM Object, you can follow these steps: Open AutoHotkey and create a new script. In the script, add the following line to load the AutoHotkey COM Object ...
by leosouza85
10 Sep 2022, 10:41
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIA for Chromium windows (Skype, Discord etc)

I think I've had a breakthrough for the annoying problem of getting UIA access to Chromium windows such as Skype and Discord! The secret appears to be to get the Chrome_RenderWidgetHostHWND1 control and then use that hwnd to get the element! I've added a new method UIA_Interface.ElementFromChromium...
by leosouza85
01 Sep 2022, 13:34
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

@pto, I finally got around to updating UIA_Browser, so I removed language-specific elements altogether (among other things, for example timeouts were changed from 10s to indefinite, because it was causing problems with slow internet...). It means CustomNames shouldn't be necessary anymore and Reloa...
by leosouza85
01 Sep 2022, 09:32
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Hi Descolada I was thinking about the necessity of the sleep before clicking something that exists but is not clickable yet. Did you tested the following hipothesys? 1 - waitelementexist 2 - then a loop trying to focus the element and test if it is focused 3 - and then click I dont know if it is tru...
by leosouza85
24 Aug 2022, 06:28
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

@Descolada
HI! found a possible bug in UIA Viewer.

When inspecting elements, uia viewer uses the resolution of the first monitor, so if i have a second monitor on diferent resolution it does not show the bounding rectangle in the correct place.
by leosouza85
17 Aug 2022, 12:22
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

@leosouza85, I think this has happened to me too for a few times, but it has went away after moving the mouse a while and hasn't been reproducable. Since this hasn't happened in other apps, I think this might be a Chrome bug. Are you able to reproduce it? Yes, right now, with chrome in this right f...
by leosouza85
15 Aug 2022, 10:03
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Descolada Hi, on some instances of Chrome, independent of the website I'm visiting, UIAViwer only catches the document window, it will not go bellow that. But TreeInspector works fine. At my work this happens always, and at home sometimes. Maybe there is some bug?! I'm using the last version with m...
by leosouza85
13 Aug 2022, 14:05
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Descolada wrote:
13 Aug 2022, 03:32
@leosouza85, I added a very basic macro creating tool to UIAViewer. I hope it does what you wanted :)
Thank you so much! This will speed up code so much!!!
by leosouza85
11 Aug 2022, 19:51
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Descolada I have an idea for a function on UIAViewer Press F2 to copy current hovered element name and type to the clipboard (so we dont need to pause and then go on UIAViewer to copy it Press F3 and it will copy the following text to clipboard: el.WaitElementExistByNameAndType("%Name%#,%Type%").Cl...
by leosouza85
09 Aug 2022, 22:15
Forum: Scripts and Functions (v1)
Topic: Hotstringer, create hotstrings on the fly! (even for images and formated text)
Replies: 1
Views: 548

Re: Hotstringer, create hotstrings on the fly! (even for images and formated text)

V2 - Released ChangeLog: - Control + 2 to delete a Hotstring - If you create a hotstring that already exists (in the script), it will overwrite it - The code will not execute if you leave the inputbox blank - Hotstrings will not be triggered on the script's inputbox https://www.youtube.com/watch?v=f...
by leosouza85
05 Aug 2022, 23:01
Forum: Scripts and Functions (v1)
Topic: Hotstringer, create hotstrings on the fly! (even for images and formated text)
Replies: 1
Views: 548

Hotstringer, create hotstrings on the fly! (even for images and formated text)

Hello, this is a very simple script that I have made. You can make hotstrings on the fly, without doing any ahk code. The hotstrings created works even if you close and reopen the script. Demonstration: https://www.youtube.com/watch?v=eLzkUoaMxCE How to use: 1 - Select the object that you want to cr...
by leosouza85
31 Jul 2022, 13:53
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Hello @Descolada . Taking advantage that you are online. I am using an element search by Name and ControlType , but using a variable for Name . Where LanguagueTarget is the variable. Does the library accept variable names? cEl.FindFirstBy("NAME=%LanguagueTarget% AND ControlType=Button").Click("left...
by leosouza85
31 Jul 2022, 13:49
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 544
Views: 116474

Re: UIAutomation with a focus on Chrome

Hello @Descolada . Taking advantage that you are online. I am using an element search by Name and ControlType , but using a variable for Name . Where LanguagueTarget is the variable. Does the library accept variable names? cEl.FindFirstBy("NAME=%LanguagueTarget% AND ControlType=Button").Click("left...

Go to advanced search