Search found 1169 matches

by Descolada
19 May 2024, 22:24
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 36
Views: 14375

Re: [v2] FindText - Capture screen image into text and then find it

redrum with the v2 tool you first capture the screenshot, then press CaptureS button, select the correct screenshot from right-side list view, and click on the screenshot at the place you want to get the Text from. What do you want use use GetRange for? Once you've Captured the Text you don't need ...
by Descolada
18 May 2024, 08:34
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 378
Views: 55982

Re: UIA v2

@redrum that is correct, you can't automate it with UIA. Try FindText or other image-based approaches, or just hard-coded coordinates.
by Descolada
16 May 2024, 20:20
Forum: Scripts and Functions (v1)
Topic: UIAutomation with a focus on Chrome
Replies: 554
Views: 122671

Re: UIAutomation with a focus on Chrome

Ralf_Reddings200244 Your example looks correctly writte, but just in case - have you tried Click? listEl := el.FindFirstBy("name='Parallel Lines - R45'") listEl.Click() Although I've found that with Qt windows it's easier to get information than actually interact with them. It may very well be that...
by Descolada
16 May 2024, 09:00
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede what exactly remains the problem with SetTitleMatchMode. It works as expected for me: #include WinEvent.ahk #Requires AutoHotkey v2 SetTitleMatchMode 3 WinEvent.Show((*) => ToolTip("MatchMode 3", 100, 100, 1), "Notepad ahk_exe notepad.exe") SetTitleMatchMode 2 Persistent() When Notepad is...
by Descolada
15 May 2024, 13:38
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede I've updated the library as follows: 1) Added WinEvent.Exist, which activates on either window creation, showing, or name change, and not activated again until the same window doesn't match WinTitle criteria any longer 2) WinEvent.Restore also activates on restoring from maximized state 3...
by Descolada
14 May 2024, 05:41
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede WinGetTitle is most likely throwing an error because you haven't used DetectHiddenWindows "On" . Remember, "Create" means the event is triggered once a window is created but isn't necessarily visible; "Show" would mean the window is visible and DetectHiddenWindows wouldn't need to be turn...
by Descolada
14 May 2024, 04:41
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede there is no such internet address which clearly and 100% describes them, as I would need to write all that myself. 1) "Create" means window creation, at which point the window might still be invisible. This means you can sometimes capture window events before the window is shown and do so...
by Descolada
13 May 2024, 22:20
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede no. If you use WinEvent.Pause(0) then only events that aren't paused will restart. If Event1 is active and Event2 is paused, then after using WinEvent.Pause(1) no events will be active, and after WinEvent.Pause(0) only Event1 will be active. If you also pause Event1 while WinEvent is paus...
by Descolada
13 May 2024, 22:15
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 378
Views: 55982

Re: UIA v2

@songdg no there isn't such a method, and I won't add it either because it is outside the scope of this library. There are other libraries capable of doing that :)
by Descolada
13 May 2024, 12:10
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede that behavior is actually by design, although I'm not 100% sure it should be. oHook.IsPaused tells you whether that event hook is paused or will still be paused if WinEvent itself is reactivated. Lets say you have two event hooks Event1 and Event2, and Event2 is paused. You now call WinEv...
by Descolada
13 May 2024, 11:47
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

Archimede it has no return value, it just stops monitoring for the event. There are multiple ways of doing that: npHook := WinEvent.Show(NotepadCreated, "ahk_exe notepad.exe") npHook.Stop() ; you can use the returned object WinEvent.Stop("Show", "ahk_exe notepad.exe") ; or stop it using the WinTitl...
by Descolada
13 May 2024, 06:18
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

- to set the function call and, into the called function, filter the window name is simple, but requires many execution time; I tried to write WinEvent to account for that and it shouldn't require more execution time than normal. - to set only window ( eg, no menu or other ) to call the function ( ...
by Descolada
13 May 2024, 04:57
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

@Archimede what exactly is missing? Currently WinEvent supports the same window criteria as the native window functions (eg WinExist), so you can filter those windows out by using WinTitle criteria.
by Descolada
11 May 2024, 13:22
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

@Archimede thanks for the feedback, that should be fixed now :)
by Descolada
08 May 2024, 14:56
Forum: Ask for Help (v2)
Topic: UIA Viewer Issues
Replies: 1
Views: 172

Re: UIA Viewer Issues

avedium Have you tried MenuSelect instead of UIA though? The code would be something like this: MenuSelect("Aloha Configuration Center : Quality Dining Burger King ahk_exe AeMShell.exe", , "Reports", "Aloha Configuration Center", "Data Distribution") As for the UIA approach... Notice in UIAViewer t...
by Descolada
08 May 2024, 10:15
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 378
Views: 55982

Re: UIA v2

reddyshyam please post concrete example code and the website address which I could test (and which fails) in Brave browser, because as I've shown what you are doing should work, and if it isn't then probably something unknown is going on. roeleboele that is exactly how you can use variables in the ...
by Descolada
07 May 2024, 00:12
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 378
Views: 55982

Re: UIA v2

Anyone know why I'd be getting an error message with this? #include .\Lib\UIA.ahk #include .\Lib\UIA_Browser.ahk #0:: { cUIA := UIA_Browser(wTitle="A") ;obviously more code here } Warning: This variable appears to never be assigned a value. Specifically: local wTitle 031: } 037: { ▶ 038: cUIA := UI...
by Descolada
06 May 2024, 12:17
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 378
Views: 55982

Re: UIA v2

reddyshyam can you post example code that replicates the problem? The following worked on this page just as expected: #include UIA.ahk chromeEl := UIA.ElementFromHandle("UIA v2 - Page 19 - AutoHotkey Community - Google Chrome ahk_exe chrome.exe") chromeEl.FindElement({Type:"Edit", Name:"Subject", m...
by Descolada
06 May 2024, 11:27
Forum: Scripts and Functions (v2)
Topic: [alpha] WinEvent - easily detect window open, close, move, and more
Replies: 47
Views: 3295

Re: [alpha] WinEvent - easily detect window open, close, move, and more

shipaddicted your example code didn't work because I hadn't accounted for the window title to change: so far WinEvent.Active was only activated when the foreground window changed, not when the title changed (eg when switching tabs in Chrome). This should be fixed now. I don't think you can get an i...

Go to advanced search