Search found 90 matches

by crypter
28 Jul 2021, 20:08
Forum: Ask for Help (v1)
Topic: Play sound file on word input Topic is solved
Replies: 13
Views: 658

Re: Play sound file on word input Topic is solved

i have this code i need it to read from text file the words it has to play Sounds2PlayFolder := "C:\Users\lapto\OneDrive\Desktop\playsound" ; Location of *.mp3 files to play. PlayList := [] Loop, Files, %Sounds2PlayFolder%\*.mp3 , R PlayList.Push(A_LoopFileFullPath) SoundID := 5 SplitPath, % PlayLis...
by crypter
28 Jul 2021, 19:52
Forum: Ask for Help (v1)
Topic: Play sound file on word input Topic is solved
Replies: 13
Views: 658

Re: Play sound file on word input Topic is solved

i have one mp3 for each word from the sentence "AutoHotkey is a free open source scripting language." and i need to select the text file with this sentence and play every mp3 that matches the words in their file name like sound play: AutoHotkey.mp3 is.mp3 a.mp3 free.mp3 open.mp3 source.mp3 scripting...
by crypter
28 Jul 2021, 19:10
Forum: Ask for Help (v1)
Topic: Play sound file on word input Topic is solved
Replies: 13
Views: 658

Play sound file on word input Topic is solved

I need a script to play a mp3 file based on a word input or a word from a text file. When the word is "hello" in the text file the script plays the mp3 "hello.mp3" when there is a period like "." the script stops playing mp3 for 1 second. It basically plays the mp3 based on words matching the mp3 fi...
by crypter
20 Jul 2021, 21:05
Forum: Ask for Help (v1)
Topic: create a word frequency counter Topic is solved
Replies: 16
Views: 2089

Re: create a word frequency counter Topic is solved

i found a script about it it's solved here: FileRead, H, % A_ScriptDir "\tempfile.txt" ;FileDelete, % A_ScriptDir "\tempfile.txt" words := [] while pos := RegExMatch(H, "(\b[[:alpha:]]{2,}\b)(?!.*\b\1\b)", m, A_Index=1?1:pos+StrLen(m)) words[m] := words[m] ? words[m] + 1 : 1 for word, count in words...
by crypter
20 Jul 2021, 18:24
Forum: Ask for Help (v1)
Topic: create a word frequency counter Topic is solved
Replies: 16
Views: 2089

create a word frequency counter Topic is solved

i have this code that, lets you select a file, then match a regex and is supposed to write what words it finds. this is the regex but could be flawed RegExMatch(%WordCount%, "(*UCP)(?is)(\b[[:alpha:]]{2,}\b)(?!.*\b\1\b)", 3) i want it to open a text file with a lot of text then write in another file...
by crypter
13 Jul 2021, 16:07
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

Re: youtube video title extractor from input youtube link Topic is solved

thank you i have another problem. the links i wrote in the source text file are randomly generated it means many of them don't exist. if i add a link that exists on the first line it works but if i add the link on the 8th line (after many invalid links) it gives a empty file result, nothing written ...
by crypter
13 Jul 2021, 11:25
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

Re: youtube video title extractor from input youtube link Topic is solved

just short ... example to see title, filename, ID, description, duration ;- see title, ID, description, duration URL=https://www.youtube.com/watch?v=JhjIXKvncw0 FL1=%a_scriptdir%\Title_Name.txt runwait,%comspec% /c youtube-dl.exe %url% -s -e --get-description --get-duration --get-filename --encodin...
by crypter
13 Jul 2021, 09:08
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

Re: youtube video title extractor from input youtube link Topic is solved

i have this code FileSelectFile, SourceFile, 3,, Pick a text or HTML file to analyze. if (SourceFile = "") return ; This will exit in this case. SplitPath, SourceFile,, SourceFilePath,, SourceFileNoExt DestFile := SourceFilePath "\" SourceFileNoExt " Extracted Links.txt" if FileExist(DestFile) { Msg...
by crypter
12 Jul 2021, 20:25
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

Re: youtube video title extractor from input youtube link Topic is solved

MsgBox, % YouTubeTitle("https://youtu.be/dQw4w9WgXcQ") return YouTubeTitle(url) { hObject := ComObjCreate("WinHttp.WinHttpRequest.5.1") hObject.Open("GET", url) hObject.Send() RegExMatch(hObject.ResponseText, "(?<=title>).*?(?= - YouTube</title>)", title) return title } can you make it get the yout...
by crypter
12 Jul 2021, 18:52
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

Re: youtube video title extractor from input youtube link Topic is solved

@boiler, I'm using AHK 1.1.33.09 in Windows 10 and just see a blank MsgBox. I tried some different YouTube URLs and got it to work once (https://www.youtube.com/watch?v=CICIOJqEb5c - although it didn't handle an apostrophe) but now it won't do it again. I copied the script over to another laptop al...
by crypter
12 Jul 2021, 14:24
Forum: Ask for Help (v1)
Topic: youtube video title extractor from input youtube link Topic is solved
Replies: 25
Views: 2566

youtube video title extractor from input youtube link Topic is solved

is it possible to create a script that extracts the title of the youtube video based on input of a youtube video link
by crypter
11 Jul 2021, 20:04
Forum: Ask for Help (v1)
Topic: add from col 7 number to col 5 number in the next file Topic is solved
Replies: 32
Views: 1698

Re: add from col 7 number to col 5 number in the next file Topic is solved

thank you so much but this works by copying the same data over to the 4 source text files, i need the data the files have already in them. this copies over the same list source1.txt to the other source text files but with different y. i need it to be every source text file different content and stil...
by crypter
11 Jul 2021, 06:13
Forum: Ask for Help (v1)
Topic: add from col 7 number to col 5 number in the next file Topic is solved
Replies: 32
Views: 1698

Re: add from col 7 number to col 5 number in the next file Topic is solved

Smile_ wrote:
11 Jul 2021, 05:44
@just me
What I think he wants, is to replace the ynn of the next file with ynn + hnn + 10 of the previous one not always the first.
Ya that's it
by crypter
11 Jul 2021, 05:18
Forum: Ask for Help (v1)
Topic: add from col 7 number to col 5 number in the next file Topic is solved
Replies: 32
Views: 1698

Re: add from col 7 number to col 5 number in the next file Topic is solved

You defined all your text files? TxtFiles := [ "source1.txt" , "source2.txt" , "source3.txt" , "source4.txt" , "source5.txt" ] this is what i have and the files every time i run it they add up the same equal amount on every file #NoEnv #MaxMem 1024 SetBatchLines, -1 TxtFiles := ["listA.txt" , "list...
by crypter
11 Jul 2021, 04:06
Forum: Ask for Help (v1)
Topic: add from col 7 number to col 5 number in the next file Topic is solved
Replies: 32
Views: 1698

Re: add from col 7 number to col 5 number in the next file Topic is solved

Smile_ wrote:
11 Jul 2021, 02:33
At the section you uncommented, replace File.Write(FileOut) with FileObj.Write(FileOut).
now it adds (from source1.txt) to the "y" of the file source2.txt and not to all text files

i have source3.txt, source4.txt, source5.txt where the "y" doesn't add up
by crypter
10 Jul 2021, 08:22
Forum: Ask for Help (v1)
Topic: add from col 7 number to col 5 number in the next file Topic is solved
Replies: 32
Views: 1698

Re: add from col 7 number to col 5 number in the next file Topic is solved

just me wrote:
10 Jul 2021, 05:41
The file object provides a fast ReadLine() method. I tested with your two sample files.
the msg box shows the right result but the script doesn't write the result to files

i uncomment the 4 lines

Go to advanced search