Emanoel 0 Posted January 12 Hi, I want to create an srt file (as you know how to schedule a srt file, for example, 00: 00: 29,633 -> 00: 00: 32,133). The problem is that I do not know a way to count the time at the beginning of the film and record the time of each text. TimerInit () and TimerDiff () only specify the time difference. Please tell me a solution so that I can record the exact time of each text (hr:min:sec,ms). Indicate that I have the text and just want to know the text change through PixelSearch and save the time in a file. Tell me if you know a better way to do this 🥺 Share this post Link to post Share on other sites
Jos 2,164 Posted January 12 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Nine 922 Posted January 12 (edited) Look at _Date_Time_GetLocalTime Edited January 12 by Nine Not much of a signature, but working on it... Spoiler  Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations  Fast and simple WCD IPC  GIF Animation (cached)    Share this post Link to post Share on other sites
Emanoel 0 Posted January 12 Thanks! but is there any way to contain milliseconds? Share this post Link to post Share on other sites
Nine 922 Posted Tuesday at 10:09 PM (edited) ; #STRUCTURE# =================================================================================================================== ; Author ........: Paul Campbell (PaulIA) ; =============================================================================================================================== Global Const $tagSYSTEMTIME = "struct;word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds;endstruct" It does, look at the $tagSYSTEMTIME Edited Tuesday at 10:12 PM by Nine Not much of a signature, but working on it... Spoiler  Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations  Fast and simple WCD IPC  GIF Animation (cached)    Share this post Link to post Share on other sites
abberration 53 Posted Tuesday at 11:25 PM I think I know what this person is trying to accomplish, but it is probably way out of his/her league. He (assuming gender, will use this for the rest of my post) is trying to create a script to create or edit subtitle files for movies. He wants to read the text on a player like VLC for the point in the movie he wants to insert a subtitle. To do this, he will probably need to work with FFMpeg or something similar that can return the time at the selected frame. If he could accomplish this, it wouldn't be too hard to write into a text file with a .srt extension. But what he asked about in his first post is not impossible (reading the timecode on the media player). I have seen an AutoIt OCR UDF, which might work, but again this is probably out of his league. There are lots of freeware subtitle editors he could use. I had a subtitle that was encoded at one frame rate and the movie at another. Everything was fine at the beginning of the file, but progressively thrown off as the film went on. I used the subtitle editor to adjust for the framerate of the actual film and the subtitles lined up for the whole film. I also edited a different subtitle for another film to add in missing subtitles. These editors work great. This is what I would suggest he do - find a freeware that can do what he wants. Emanoel: Try this website: https://listoffreeware.com/free-open-source-subtitle-editor-windows/ Easy MP3 | Software Installer | RAID Calculator Share this post Link to post Share on other sites
Emanoel 0 Posted Wednesday at 10:04 PM I found "VideoSubFinder" program for this case. Now I can extract timing srt from hardsub videos. Thank you for your answer 😉🌹 Share this post Link to post Share on other sites