Search found 171 matches

by Loop
28 Sep 2022, 16:48
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hi, What does this error message mean I am on a web page, click on buttons, then I scroll a bit and new buttons appear and then this error message appears --------------------------- Test.ahk --------------------------- Error in #include file "C:\PORT\ahk\Lib\UIA_Interface.ahk": 0x80131509 - UIA_E_I...
by Loop
26 Sep 2022, 08:57
Forum: Ask for Help (v1)
Topic: My hotkey does not work Topic is solved
Replies: 2
Views: 342

Re: My hotkey does not work Topic is solved

Thank you! I have not really thought about it.
by Loop
25 Sep 2022, 17:00
Forum: Ask for Help (v1)
Topic: My hotkey does not work Topic is solved
Replies: 2
Views: 342

My hotkey does not work Topic is solved

HI My script looks something like this. but it doesn't work, I think -SetTitleMatchMode has no effect. SetTitleMatchMode, 1 #if WinActive("ahk_class Notepad") ^+l::MsgBox, notepad Return #if SetTitleMatchMode, 2 #If WinActive(" - AutoHotkey Community -") ^+l::MsgBox, chrome or firefox Return #If Wha...
by Loop
07 Sep 2022, 15:58
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

if the image is an element identifiable by UIA
No, unfortunately not! The only distinguishing factor is ControlType=image
Thanks, for the suggestion
by Loop
07 Sep 2022, 09:36
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

many thanks Descolada I have the following problem, I move the mouse over a button after 1sec, then a Pic appears to the right of the button, on this picture I must make a left click. My script works: AudioWalker := UIA.CreateTreeWalker(UIA.CreateCondition("ControlType=Button AND Name='Voicemail'"))...
by Loop
06 Sep 2022, 14:35
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hello,
i want to move mouse on an element without clicking, how can I do that?
Thx
by Loop
24 Aug 2022, 17:25
Forum: Ask for Help (v1)
Topic: Select / Highlight entire line in an edit control Topic is solved
Replies: 6
Views: 1492

Select / Highlight entire line in an edit control Topic is solved

Hello, does anyone know a way to highlight a whole line in an edit control. e.g. line 5

Thanks
by Loop
20 Aug 2022, 17:56
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hello, today tried to expand all the Replies under a youtube video, only the first works, my treewalker does not work. Thanks in advance FirstComment := el.FindFirstBy("ControlType=Text AND Name='\d+ REPLIES'",,"RegEx") FirstComment.HighLight(2000) CommentWalker := UIA.CreateTreeWalker(UIA.CreateCon...
by Loop
19 Aug 2022, 15:37
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Thank you, works perfectly!
by Loop
19 Aug 2022, 14:35
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Thanks! A small gif animation appeared, that was the reason, i was able to solve the problem. I want to get values from a ComboBox, how can I do that? My idea takes too long time and not reliable AllVal := "" Loop { Chrome.FindFirstBy("ControlType=ComboBox AND AutomationId='SalesSelection'").SetFocu...
by Loop
18 Aug 2022, 17:14
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hello, I would like to click on an image that is next to String "Next page". The place is highlighted correctly but right click made on coordinate 0,0 and Dimension.t is 0. Is my Code wrong? SearchText := chrome.FindFirstBy("ControlType=Text AND Name='Next page'") PicAndTextWalker := UIA.CreateTreeW...
by Loop
16 Aug 2022, 13:40
Forum: Ask for Help (v1)
Topic: WinHTTPRequest status 403
Replies: 3
Views: 1025

Re: WinHTTPRequest status 403

Thanks, i solved my problem with Chrome.ahk
by Loop
09 Aug 2022, 15:07
Forum: Ask for Help (v1)
Topic: Is there a way to exclude timers from pausing? Topic is solved
Replies: 5
Views: 808

Is there a way to exclude timers from pausing? Topic is solved

My script looks like this: CoordMode, ToolTip i := 1 SetTimer, Timer, 500 Loop { ToolTip % "Loop count: " . A_Index, 0, 0, 1 Sleep, 500 } Timer: ToolTip % "Timer count: " . i++, 200, 0, 2 Return F6::Pause Now when I pause my script, the loop should pause but timer should keep running. Does anyone ha...
by Loop
04 Aug 2022, 08:28
Forum: Ask for Help (v1)
Topic: Giving parameters to an OnExit function
Replies: 1
Views: 271

Giving parameters to an OnExit function

I am using Chrome.ahk library, if any error occurs during execution, chrome instance should be terminated. Unfortunately it does not work like that: OnError("ExitChrome") ExitChrome(e, PageInst, ChromeInst){ try PageInst.Call("Browser.close") catch ChromeInst.Kill() MsgBox, % e.Message return true }...
by Loop
29 Jul 2022, 14:44
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hi, Descolada in the first post is one letter "t" too much, UIA_Element.Hightlight(displayTime:=2000, color:="Red", d:=4) I have a ComboBox on a web page, I can set the value cUIA.FindFirstByType("ComboBox").SetValue("Test123") , but as soon as I click send button, I get the message that the field i...
by Loop
21 Jun 2022, 17:22
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Please excuse the inconvenience!
I have translated the string "Address and search bar" into local language then it works for me too
by Loop
20 Jun 2022, 16:10
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 129310

Re: UIAutomation with a focus on Chrome

Hi, SetUrl does not work with the latest version. The same script works with version from 9 Jun. But here GetAllTabs does not work Has it changed anything? #NoEnv #SingleInstance force SetTitleMatchMode, 2 #include <UIA_Interface> #include <UIA_Browser> #include <UIA_Constants> browserExe := "chrome...

Go to advanced search