Search found 111 matches
- 27 Nov 2017, 06:45
- Forum: Ask For Help
- Topic: Reading chatlog line
- Replies: 3
- Views: 558
Re: Reading chatlog line
Sometimes, but just sometimes, i need to write 3 messages to make it register new line, is it possible that file size doesnt become bigger or what?
- 27 Nov 2017, 05:59
- Forum: Ask For Help
- Topic: Reading chatlog line
- Replies: 3
- Views: 558
Re: Reading chatlog line
I have this, but sometimes it doesn't work well so I would like to use another way if possible FilePath = %A_MyDocuments%\chatlog.txt File := FileOpen(FilePath, "r") OldLogFileSize := 0 File.Seek(0, 2) Loop { LogFileSize := File.Length if (LogFileSize > OldLogFileSize) { Loop { if File.AtEOF Break T...
- 27 Nov 2017, 05:37
- Forum: Ask For Help
- Topic: Reading chatlog line
- Replies: 3
- Views: 558
Reading chatlog line
I need a script that will continuously check chatlog.txt file and if file size increased, output penultimate line of it, or last one that contains text
- 27 Nov 2017, 05:23
- Forum: Ask For Help
- Topic: Click on message from webpage
- Replies: 7
- Views: 1643
Re: Click on message from webpage
Try .Click() with empty brackets
- 27 Nov 2017, 05:14
- Forum: Ask For Help
- Topic: How to combine must of one command with autohotkey? Topic is solved
- Replies: 1
- Views: 420
Re: How to combine must of one command with autohotkey? Topic is solved
Code: Select all
$F1::Send, ^x ; cut
$F2::Send, ^c ; copy
$F3::Send, ^v ; paste
Code: Select all
$F1::
Send, ^x ; cut
return
$F2::
Send, ^c ; copy
return
$F3::
Send, ^v ; paste
return
- 27 Nov 2017, 02:54
- Forum: Ask For Help
- Topic: Ini read and output the Key name that has largest amount Topic is solved
- Replies: 16
- Views: 3172
Ini read and output the Key name that has largest amount Topic is solved
Hey people!
I would like to get "C" because it has the largest value in "INFO" selection.. How can I do that?
I would note that values are continuously changing
[INFO]
A=1
B=3
C=5
[INFOB]
D=20
I would like to get "C" because it has the largest value in "INFO" selection.. How can I do that?
I would note that values are continuously changing
[INFO]
A=1
B=3
C=5
[INFOB]
D=20
- 23 Nov 2017, 21:46
- Forum: Ask For Help
- Topic: Multiple strReplace Topic is solved
- Replies: 2
- Views: 774
Re: Multiple strReplace Topic is solved
Okay, thank you!
- 23 Nov 2017, 20:41
- Forum: Ask For Help
- Topic: Multiple strReplace Topic is solved
- Replies: 2
- Views: 774
Multiple strReplace Topic is solved
Hi,
How can I replace multiple strings at once? I'm creating new lines with same code.. i'm sure it's not correct.
(I want to remove "[" and "]" from Name)
How can I replace multiple strings at once? I'm creating new lines with same code.. i'm sure it's not correct.

(I want to remove "[" and "]" from Name)
Code: Select all
Name := "[IM]Apple"
Name := strReplace(Name,"]")
Name := strReplace(Name,"[")
MsgBox % Name
- 23 Nov 2017, 19:53
- Forum: Ask For Help
- Topic: help
- Replies: 5
- Views: 938
Re: help
Well that code is not exactly what I was looking for but does what it's supposed to in some cases. Thanks! Look, this is what I have: Name := "[AA]Monkey[CC]" RegExMatch(Name, "\[\w+\]\K\w+", NameNoTag) MsgBox % NameNoTag So if Name is [Alex], result will be empty which is bad, as well as Bill[the]C...
- 23 Nov 2017, 16:47
- Forum: Ask For Help
- Topic: help
- Replies: 5
- Views: 938
Re: help
Thanks, but in my case e.g. name "ab" should be valid and "[abc]" invalid..
- 23 Nov 2017, 14:43
- Forum: Ask For Help
- Topic: help
- Replies: 5
- Views: 938
help
Name = [Alex]
If name is does not contain anything between [] or does not contain [] at all
do something
else if name contains something in[] (e.g name: "[AB]Alex[AC]")
do something else
How can I do that?
If name is does not contain anything between [] or does not contain [] at all
do something
else if name contains something in[] (e.g name: "[AB]Alex[AC]")
do something else
How can I do that?
- 23 Nov 2017, 14:39
- Forum: Ask For Help
- Topic: .ini +1 Topic is solved
- Replies: 4
- Views: 741
Re: .ini +1 Topic is solved
Solved, thank you
- 23 Nov 2017, 12:29
- Forum: Ask For Help
- Topic: .ini +1 Topic is solved
- Replies: 4
- Views: 741
Re: .ini +1 Topic is solved
Thank you very much..
Now I have the problem when KEY contains "[ ]" value will become ERROR and it will write new key instead of overwriting it ( I use variable for key)
Now I have the problem when KEY contains "[ ]" value will become ERROR and it will write new key instead of overwriting it ( I use variable for key)
Code: Select all
[ABV]
[AA]BB[CC]=1
[AA]BB[CC]=1
- 23 Nov 2017, 11:03
- Forum: Ask For Help
- Topic: .ini +1 Topic is solved
- Replies: 4
- Views: 741
.ini +1 Topic is solved
How can use a variable to write .ini file? like if previous Key value is 1, then make it 2 next time and increase by 1 everytime, Thanks!
- 22 Nov 2017, 19:22
- Forum: Ask For Help
- Topic: hotkey problem
- Replies: 1
- Views: 346
hotkey problem
^numpad1:: SendPlay,^a^c{backspace}{enter} Sendplay, {f6}/astream %Inprogress%{enter} Sleep, 1000 Sendplay, {f6}Currently listening to "%SongName%"{enter} If Clipboard != SendPlay, {f6}%clipboard% return This works for me but not for my friend, like nothing happens at all but this works ^numpad1::M...
- 20 Nov 2017, 20:51
- Forum: Ask For Help
- Topic: Get text content out of HTM file
- Replies: 10
- Views: 1588
Re: Get text content out of HTM file
Code: Select all
FileRead, File, JReport.htm
FileAppend, %File%, AutohotkeyTemp1.txt
- 20 Nov 2017, 18:44
- Forum: Ask For Help
- Topic: Get text content out of HTM file
- Replies: 10
- Views: 1588
Re: Get text content out of HTM file
Code: Select all
SetWorkingDir, %A_ScriptDir%
URLDownloadToFile, https://autohotkey.com/boards/viewtopic.php?f=5&t=40288, JReportLT.htm
FileRead, File, JReportLT.htm
FileDelete, JReportLT.htm
MsgBox % File
- 20 Nov 2017, 02:00
- Forum: Ask For Help
- Topic: Sound detection Topic is solved
- Replies: 11
- Views: 2307
Re: Sound detection Topic is solved
#Warn, All, Off Loop { While(!IsAudioPlaying()) Sleep, 1000 MsgBox, % "Sound Detected" ;or TrayTip,, % "Sound Detected", 1 } return IsAudioPlaying() { AudioLevel := 0.0 VA_IAudioMeterInformation_GetPeakValue(VA_GetAudioMeter(), AudioLevel) return (Round(AudioLevel, 4) > 0) } ;----------------------...
- 18 Nov 2017, 22:31
- Forum: Ask For Help
- Topic: Sound detection Topic is solved
- Replies: 11
- Views: 2307
Re: Sound detection Topic is solved
Sorry but I don't really know how exactly to do it.. I'm on windows 7,so what would be the code to get msgbox when sound is detected? 

- 18 Nov 2017, 22:15
- Forum: Ask For Help
- Topic: Sound detection Topic is solved
- Replies: 11
- Views: 2307
Re: Sound detection Topic is solved
Thank you both.. So how can I have message pop up when sound is detected? 
