photonbuddy Posted August 2, 2022 Share Posted August 2, 2022 Hi All, I am writing a script that allows me to set a star rating and add file comments to a file using the Details tab in Explorers File Properties page. I haven't found a way to do this behind the scenes, so use mouse control and text sending. This was working great on video files of most types, but it appears as these 2 options don't apply to some video file types, such as .mkv. I decided that if I couldn't write to the video file, I'd write to the image thumbnail for the video. Here, I ran into 2 issues. Firstly, I use a program called FastPreview, which adds a thumbnail of the image to the right-click menu. This program adds a tab in the file properties page. As other programs might do similar things, I looked for a way to find the details tab. I did this by reading the controls in the tab until I got the details tab. This works, but is a bit finicky, and I can't find a hotkey to go to the details tab. Does anyone know of a way to get to the details tab without knowing where it might actually reside on the tab bar? Second issue is that the column divider between the Property column and Value column is different for a video file and an image file. Is there a way to find out how wide the Property column of the Details tab actually is? Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
rudi Posted August 9, 2022 Share Posted August 9, 2022 for images https://exiftool.org/ is a powerfull command line capable tool, IIRC it can also handle (at least some) video formats. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Zedna Posted August 10, 2022 Share Posted August 10, 2022 (edited) For working with Tabs you can use ControlCommand() + CurrentTab/TabRight/TabLeft commands or more precise UDFs functions _GUICtrlTab_xxx() from #Include <GuiTab.au3> I recommend to use these functions: ControlGetHandle() _GUICtrlTab_GetItemCount() _GUICtrlTab_GetItemText() _GUICtrlTab_FindTab() _GUICtrlTab_GetCurSel() _GUICtrlTab_SetCurSel() Edited August 10, 2022 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now