Search found 21 matches

by k0stell0
10 Apr 2024, 01:37
Forum: Ask for Help (v2)
Topic: How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?
Replies: 8
Views: 609

Re: How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?

Hi XMCQCX , I was trying to take your code up a notch and use it to rename a branch of MP4 files in a folder. Naturally, I came across Loop Files, executing ExifTool for each file and then renaming the file. While it works, I found it somewhat slow, especially when a folder contains hundreds of file...
by k0stell0
09 Apr 2024, 03:58
Forum: Ask for Help (v2)
Topic: How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?
Replies: 8
Views: 609

Re: How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?

Thanks a lot for your reply, XMCQCX Looks like ExifTool can do what I need. I've been trying to modify your code to avoid using JSON and saving the output file, but I run into some issues. I managed to get the required parameters and also found RunWaitOne function that is supposed to be returning th...
by k0stell0
08 Apr 2024, 22:33
Forum: Ask for Help (v2)
Topic: How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?
Replies: 8
Views: 609

How to get video file metadata (Media Created Date, Frame Rate, Frame Width)?

Hi everyone,

I wonder if there is a way to get video file metadata such as Media Created Date, Frame Rate, and Frame Width, using Autohotkey.
I found FileGetAttrib function, but it has a limited number of attributes it can read.

Any help would be highly appreciated 🙏
by k0stell0
05 Apr 2024, 01:23
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2

Thanks a lot @Descolada
Your code works for me too. The issue was that I used Click() instead of ControlClick().
I still don't fully understand the difference between them, but at least it's working now. :bravo:
by k0stell0
04 Apr 2024, 23:12
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2

Thanks for your prompt reply Descolada I tried adding WinWait, but it didn't work. So I decided to try a simple 5 sec Sleep timer, but it was the same. The context menu opens up and I can see it, unfortunately, I'm still getting "No matching window found" error. Is there any other workaround I could...
by k0stell0
03 Apr 2024, 23:29
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2

Hi Descolada I'm stuck trying to access a menu in Davinci Resolve. Please see the code below. I used this method multiple times before, but this particular menu gives me "No matching window found" error. It looks like I'm missing something obvious. I would highly appreciate if you could point me in ...
by k0stell0
21 Mar 2024, 19:43
Forum: Scripts and Functions (v2)
Topic: Extend Your Scripts/Programs with Lua!
Replies: 6
Views: 2635

Re: Extend Your Scripts/Programs with Lua!

Hi Delta Pythagorean , Thanks a lot for sharing your work. I wonder if you can help with the following. I have some Lua scrips for Davinci Resolve, and I also use Taran Van Hemert's macro keyboard, which is basically AHK v2 script. So, I'm trying to execute those Lua scripts by pressing a key on tha...
by k0stell0
21 May 2023, 19:17
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2

Thanks a lot, Descolada 🙏 Using your code I found that state := 1048576 is part of 1048580 and consists of: Focusable(1048576) and Focused (4) I tried using if Element.LegacyIAccessiblePattern.State & UIA.LegacyIAccessible.State.Focused but it doesn't determine whether it's checked or not. I assume ...
by k0stell0
20 May 2023, 19:44
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2

Thanks a lot, Descolada I didn't realise there's a new UIAViewer if I launch UIA.ahk directly. So, I was able to get access to the required element by path, but it only has LegacyIAccessible patterns. There's a "LegacyIAccessible pattern" section in your GitHub Wiki, but after digging into it I stil...
by k0stell0
20 May 2023, 02:28
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 385
Views: 58836

Re: UIA v2 beta

Hi Descolada Thanks a lot for your work, I switched to UIA v2 and everything works good so far. I'm having a bit of a problem accessing an element that has no identifiers I can use, so after searching for some time and checking your GitHub Wiki, I found that there's another way to access an element ...
by k0stell0
20 May 2023, 00:28
Forum: Ask for Help (v1)
Topic: Help With Double Keypress Topic is solved
Replies: 6
Views: 1699

Re: Help With Double Keypress Topic is solved

Hi guys, I'm trying to use single and double press on the same key to send different keys. I tested the code below and it works for me most of the time, but due to a lack of knowledge in AHK, I can't adapt it to my needs. ^F1::KeyWait('F1'), Run(KeyWait('F1', 'DT.3') ? 'msedge' : 'firefox') Could an...
by k0stell0
18 Dec 2022, 17:30
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Thanks for your help Descolada . I played with FindText over the weekend, but still couldn't make it work every time. So, I created a loop that goes through all folders in that panel, checks the name of each folder and does what I need if the name is right. Maybe it's not the best way to do it, but ...
by k0stell0
14 Dec 2022, 19:14
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Hi guys, Is there a reliable way to click on bins located in Media Tab? Please see the image attached. Ideally, I would prefer to find them by name or automation ID. Unfortunately, UIAViever can't see anything in the "Media Folder" panel. Maybe I'm doing something wrong. I also tried to use FindText...
by k0stell0
11 Dec 2022, 16:05
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Thanks a lot, guys. :clap: Your help has been invaluable to me. I got my script working exactly the way I wanted.
by k0stell0
08 Dec 2022, 03:17
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Thanks a lot for your help guys. I learned so much from you. If it's not too much trouble, can you please help me with the code below? Davinci has a lot of checkboxes I need to click on, so I was hoping to check their current state before clicking. Otherwise, I can disable something instead of enabl...
by k0stell0
06 Dec 2022, 16:01
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Hey @Descolada
Thanks a lot for sharing that function. I also use multiple hotkeys in Davinci.
Could you please explain a bit about how to use it?
Do I need to call it in each hotkey? Or just once at the beginning of my script file?
Sorry for dummy questions, I just recently started to use AHK.
by k0stell0
07 Nov 2022, 02:08
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Thanks a lot for your help guys :thumbup: It's finally working for me :dance:
by k0stell0
06 Nov 2022, 22:15
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

Hi SteveMylo , Thanks a lot for your time and help. I tried your code over the weekend, unfortunately, it still doesn't click on 25 for me. It just moves to the top of the drop-down list and then closes it without changing the frame rate. I'm trying to change from 50 to 25 fps, so I assume UIA shoul...
by k0stell0
30 Oct 2022, 23:19
Forum: Ask for Help (v1)
Topic: Interacting with DaVinci using UIAutomation
Replies: 74
Views: 9804

Re: Interacting with DaVinci using UIAutomation

UIAutomation physically has to see the 25. Otherwise it will never find it. So yes you have to scroll up or down Hi Steve, I inspected the Clip Attributes windows and from my understanding UIAutomation can see all values in that ComboBox. Please see the screenshot below. Frame Rates.jpg I just can'...

Go to advanced search